Windows 8 and 8.1 Forums

Take Ownership - Add to Context Menu in Windows 8

  1. #80

    Jogjakarta, Indonesia
    Posts : 29
    Windows 8.1 Pro 64-Bit Spring Update

    It also made ​​me confused, the picture was Describes Path cmd.exe
    C:\Windows\System32\cmd.exe, Have taken ownership I just thought that part of this Script

    [HKEY_CLASSES_ROOT\exefile\shell\runas] @="Take Ownership" "HasLUAShield"="" "NoWorkingDirectory"=""  [HKEY_CLASSES_ROOT\exefile\shell\runas\command] @="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F" "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F && pause"
    Will takeown All File .exe

    If you do not understand Once again I'm sorry if it makes you more confused

      My System SpecsSystem Spec

  2. #81

    Posts : 21,862
    64-bit Windows 10

    If you are asking what it does, it will take ownership of only that specific .exe file that you right click on, and click on "Take Ownership".
      My System SpecsSystem Spec

  3. #82

    Hello and thanks for the scripts. I have a question and a contribution.

    When I was messing around with my Appdata folder (for an offline Win8.1 installation,) and I took ownership, for some reason it wasn't working on a majority of the folder. In addition, the Pause option did not work either so I couldn't get any details. It ran for long enough to let me know it changed something but not nearly the time this folder requires (3-5 seconds.)

    I removed the HasLUAShield value, and the command worked as I expected (running for 10+ minutes.) (And, yes, I did want it to follow my junctions.)

    I replaced HasLUAShield and it seems to work perfectly on everything else I've tried, including drivers in system32. Is this perameter for elevated rights? Why do you think it wouldn't run on the offline appdata folder?

    If it matters, I used the /a /c /l and /q options (see next post.)

    Win7x64 Ultimate/Win8.1x64 Pro - Admin:No UAC
      My System SpecsSystem Spec

  4. #83

    Posts : 21,862
    64-bit Windows 10

    Hello Melaney,

    The HasLUAShield value is just to add the UAC shield on the icon. It's only cosmetic, and serves for no other function.

    By default, you (the account the AppData is for) and Administrators should already be the owner of AppData and it's contents.

    Did the command prompt not pause using step 4, and just closed when finished? If it got an error or you pressed a key by mistake it may have closed it.
      My System SpecsSystem Spec

  5. #84


    "Grant Admin Ownership"
    : This is a modified version of Take Ownership. I added an icon, and it only shows up when you Shift+right click on your target. It's attached here for anyone to use/modify.

    It gives ownership to the Administrators Group
    instead of the current user in order to clean up the nasty little problems that creep up from changing ownership on the same set of files from many locations (i.e. your personal files.)

    What's nice about this is that you are the owner of the files no matter where you log in from. It's also nice for system files because it reduces the the potential for causing conflicts. However, I could see Microsoft screaming about the possible security holes with system files being owned by ALL Administrators in a system. Personally, I don't worry about stuff like that. It's like locking your bathroom before going to sleep so a burglar doesn't hide there. You'll regret it when you smack your nose on the door at 3a.m!

    ***Update: This command will replace Shawn's tweak if you're running in a normal account. It will not conflict or replace his command if you're running in the Hidden Administrator account. So use my attachments below for Normal Accounts, or Hidden Administrator accounts as labeled. (see Sawn's post for discussion.)

    *Update: Attached my "Take Ownership" command which has an added icon, and the Shift+Right Click option. There is one for Normal Accounts and one for Hidden Administrator account.

    Hope it's handy. Let me know what you think.

    Hidden Administrator accounts. Download Both
    Grant Admin Ownership.reg (for hidden Administrator Account)
    Take ownership - for Hidden Administrator Account.reg

    Normal Accounts (Administrator or Standard) Pick one
    Take ownership - for normal accounts.reg
    This is the one you probably want --->Grant Admin Ownership + Restore .exe files - for Normal Accounts.reg
    Last edited by mmmelaney; 27 Apr 2014 at 19:02.
      My System SpecsSystem Spec

  6. #85

    Posts : 21,862
    64-bit Windows 10

    Yeah, Administrators group would be better. I'll update now.

    The runas2 with .exe files don't work. I've only had them work if it used runas and replaced "Run as administrator" though.
      My System SpecsSystem Spec

  7. #86

    Did you actually apply my reg script and try it? I tested it on Win7x64 and Win8.1.1x64. I will say that my "Run As Admin" is not extended though. Not sure if that's the key. I am also running in the hidden Administrator profile on both OS's. Shouldn't make a difference I would think.
      My System SpecsSystem Spec

  8. #87

    Posts : 21,862
    64-bit Windows 10

    The runas2 for .exe files will work if you are signed in to built-in elevated "Administrator" account. It being an elevated account is why it worked in it, and no other account.

    It won't work in any other account though. I tested it on an .exe in the Program Files folder that is owned by System, and it didn't change the owner while signed in to a normal administrator account.
      My System SpecsSystem Spec

  9. #88

    You're quick!

    I see then. I guess I will add an update to my post about the admin account.

    This, by the way, is one of the reasons I always "steal" the Administrator account and make my own. UAC in Win8 is like Mary Poppins on crack!
      My System SpecsSystem Spec

  10. #89

    Posts : 21,862
    64-bit Windows 10

    Nar, not fast. It was the same since Vista, but I just double checked in Windows 8.1 Update to make sure nothing had changed.
      My System SpecsSystem Spec

Page 9 of 14 FirstFirst ... 7891011 ... LastLast
Take Ownership - Add to Context Menu in Windows 8

Similar Threads
Tutorial Forum
Add or Remove Item from “New” Context Menu Windows 8.1 Pro
I have spent enough time googlin, I give up. My best guess is, this is a recent update change. I dont recall ever having the option to create a new contact or journal document which is nice, nor do I know what program I may have installed that did this. But I would really like to know, how I can...
Optimize Drive - Add to Context Menu in Windows 8
How to Add "Optimize Drive" to Context Menu of Drives in Windows 8 and 8.1 Optimize Drives, previously called Disk Defragmenter, helps to optimize the different types of drives that PCs use today. No matter which type of drive your PC uses, Windows automatically chooses the optimization that's...
How can I add 'Any Folder' to the windows context menu
When I used windows XP Microsoft made available some very useful tweaks called 'Powertoys'. One of those tweaks was called 'Send To'. This added 'Any Folder' to the right click context menu which allowed you to browse to the exact location you wanted to copy or move a file or folder to. For...
Windows 8 Context Menu Slow
Whenever I right click on desktop the menu appears to be slow when compared to my previous C2D machine. So deleted "igfxcui" key from the Shell Context Menu which was located in HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers Is there any issue due to the deletion in future use?...
Performance & Maintenance
Start Menu Context Menu Customization
Hi All, I have seen screenshots where people have network connections when they right click on the start menu. I am trying to figure out how to add it. Any ideas? My Context Menu: Others' Menu:...
MMC Snap-ins - Add Cascading Context Menu in Windows 8
How to Add a "MMC Snap-ins" Cascading Desktop Context Menu in Windows 8 This tutorial will show you how to add or remove a cascading (expandable) MMC snap-ins menu to the desktop context menu for all users in Windows 8. You must be signed in as an administrator to be able to add or remove the...
Sign out - Add to Desktop Context Menu in Windows 8
How to Add "Sign out" to Desktop Context Menu in Windows 8 and 8.1 This will show you how to add or remove Sign out (log off) to the desktop context menu of all users in Windows 8. You must be logged in as an administrator to be able to do this tutorial. EXAMPLE: Sign out in Desktop...

Eight Forums Android App Eight Forums IOS App Follow us on Facebook