Windows 8 and 8.1 Forums


Take Ownership - Add to Context Menu in Windows 8

  1. #60


    Posts : 52
    windows 8.1 and server 2012 R2


    Quote Originally Posted by Brink View Post
    Hello quavadisuk,

    If you wanted the command prompt to pause, did you use the download in step 3?
    hey Brink, just wanted you to know .exe files context menu won't show take ownership, however if exe files are in folder then it might work. any workaround for this problem to have it show in context menu of .exe files?

    also I wanted to add the take ownership for win 7 is different, although it shows up in win 8 context menu but it has no affect on files if I were to run win7 add ownership reg file.

      My System SpecsSystem Spec

  2. #61


    Posts : 22,500
    64-bit Windows 10


    Hello m18xr2,

    For .exe files, it was an either have the "Run as administrator" or "Take Ownership", but not both option.

    I opted to keep "Run as administrator" since that would be used more for .exe files than "Take Ownership". However, if you would prefer to have "Take Ownership" instead, then I'll add an option in the tutorial here shortly to include .exe files.


    UPDATE: Ok. An option to add "Take Ownership" for .exe files has now been added.
    Last edited by Brink; 08 Feb 2014 at 13:41.
      My System SpecsSystem Spec

  3. #62


    Posts : 52
    windows 8.1 and server 2012 R2


    Quote Originally Posted by Brink View Post
    Hello m18xr2,

    For .exe files, it was an either have the "Run as administrator" or "Take Ownership", but not both option.

    I opted to keep "Run as administrator" since that would be used more for .exe files than "Take Ownership". However, if you would prefer to have "Take Ownership" instead, then I'll add an option in the tutorial here shortly to include .exe files.


    UPDATE: Ok. An option to add "Take Ownership" for .exe files has now been added.
    did Microsoft purposely do this or is it a bug? perhaps they may fix this issue in windows 8.1, can anyone confirm?
      My System SpecsSystem Spec

  4. #63


    Posts : 22,500
    64-bit Windows 10


    I suppose that you could technically call it a bug since you can only have one affective "Run as" entry for a file extension. If you try to add both, one or the other will not work.

    It's the same in Vista, Windows 7, and Windows 8/8.1.
      My System SpecsSystem Spec

  5. #64


    Posts : 52
    windows 8.1 and server 2012 R2


    Quote Originally Posted by Brink View Post
    I suppose that you could technically call it a bug since you can only have one affective "Run as" entry for a file extension. If you try to add both, one or the other will not work.

    It's the same in Vista, Windows 7, and Windows 8/8.1.
    well, my window 7 .exe files can show both take ownership and run as admin.. reason I mention it was a bug for 8/8.1 was cause my win7 OS could show both..
      My System SpecsSystem Spec

  6. #65


    Posts : 22,500
    64-bit Windows 10


    It can easily show both, but does both actually work?

    The one method I've seen out on the internet that had both, the "Take Ownership" display, but didn't actually work when I wen back to verify the owner and permission settings.

    If you like, could you export the HKEY_CLASSES_ROOT\exefile key from your Windows 7 registry, and upload it here? This will show what method was used to have both, and if it may work or not.
      My System SpecsSystem Spec

  7. #66


    Posts : 52
    windows 8.1 and server 2012 R2


    Quote Originally Posted by Brink View Post
    It can easily show both, but does both actually work?

    The one method I've seen out on the internet that had both, the "Take Ownership" display, but didn't actually work when I wen back to verify the owner and permission settings.

    If you like, could you export the HKEY_CLASSES_ROOT\exefile key from your Windows 7 registry, and upload it here? This will show what method was used to have both, and if it may work or not.
    I think it worked and I was pretty certain that it did. what lead me to believe 8 and 8.1 were different due to the fact that 8 had a much more complicated way to grant access in take ownership or grant full access control to users. remember removing library and homegroup via registry? grant access control was easily done in 7 where as in 8 would take extra few steps to make it work.

    I just tested it with deleting a file in system32 on my win7 machine. deleting defrag.exe wouldnt work but after taking ownership it worked and allowed me to delete the file.

    the attachment thing isn't working for me, i uploaded onto 4shared.. ** REMOVED LINK **

    exefile.rar
    Last edited by Brink; 10 Feb 2014 at 13:35. Reason: attached uploaded file
      My System SpecsSystem Spec

  8. #67


    Posts : 22,500
    64-bit Windows 10


    Thank you. You did successfully upload the file, but just forgot to attach it afterwards.

    Here's what is has for Run as administrator below. This is normal, except the part in red is not needed. The runas key is what elevates this to be able to "Run as administrator" when clicked on.

    Code:
    [HKEY_CLASSES_ROOT\exefile\shell\runas]
    @="Run as Administrator"
    "HasLUAShield"=""
    "MuiVerb"="Run as Administrator"
    
    [HKEY_CLASSES_ROOT\exefile\shell\runas\command]
    @="\"%1\" %*"
    "IsolatedCommand"="\"%1\" %*"

    Here's what it has for Take Ownership below. This would essentially be the same as running the command in a normal command prompt instead of an "elevated" command prompt. If the user is not running elevated (ex: like the built-in Administrator), then they would not be able to successfully take ownership and grant "full control" permission to the Administrators group using this. It would be the same as getting an access denied message trying to do the same in a normal unelevated command prompt.

    Since this is not under the runas key in the registry, it doesn't run it elevated. The problem is, only Run as administrator or Take Ownership can be under runas and not both.

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


    As a test of proof. While signed in a normal administrator account (not built-in Administrator), go to the Dism.exe system file in the C:\Windows\System32 folder, and verify that the default owner is still Trusted Installer.

    Next, use the Take Ownership context menu on the Dism.exe file, then check to se if the owner has been changed. It should not be since it's not under the runas key.
      My System SpecsSystem Spec

  9. #68


    Posts : 52
    windows 8.1 and server 2012 R2


    how do I verify what the default owner of a file is? the only thing I notice changes was, prior take ownership a file, only trusted installer has full access box checked in file properties in security tab. after taking ownership it, administrator (me) has full access box checked as well.

    so basically I am not taking ownership of the file, I am just granting access to admin user? but I still have full access to it :s
      My System SpecsSystem Spec

  10. #69


    Posts : 22,500
    64-bit Windows 10


    Are you signed in to the built-in "Administrator" account, have disabled UAC, or set to elevate all administrator accounts privilege level?

    You would basically check using OPTION FOUR in the tutorial below to see who the owner of the file is before (to see default) and after using your "Take Ownership" to see if changed the owner to be your account afterwards. If not, then it didn't work.

    Take Ownership of a File, Folder, Drive, or Registry Key in Windows 8

    Technically, you should not even be able to change permission settings using your Take Ownership unless your account already has access permission.
    Last edited by Brink; 04 Mar 2014 at 12:11. Reason: link
      My System SpecsSystem Spec

Page 7 of 14 FirstFirst ... 56789 ... LastLast
Take Ownership - Add to Context Menu in Windows 8
Related Threads
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...
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...
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 in Performance & Maintenance
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?...
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: http://cdn.thenextweb.com/wp-content/blogs.dir/1/files/2012/11/Capture.png Others' Menu:...
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...
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