Page 1 of 26 12311 ... LastLast
    Take Ownership - Add to Context Menu in Windows 10

    Take Ownership - Add to Context Menu in Windows 10

    How to Add 'Take Ownership' to Context Menu in Windows 10
    Published by
    2015-01-28
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 17,362

    Show Printable Version 


    How to Add 'Take Ownership' to Context Menu in Windows 10

    information   Information
    This tutorial will show you how to add Take Ownership to the context menu of all files, folders, and drives for all users in Windows 10.

    This will allow you to be able to instantly take ownership of a file, folder (and all contents), or drive (and all contents) by changing the owner to the current user and grant the Owner_Rights SID (current owner) full access permission.

    You must be an administrator to be able to add, remove, and use the "Take Ownership" context menu.

    Note   Note
    Application files (ex: EXE, CMD, MSI) will continue to have Run as administrator instead of Take Ownership in their context menu.


    When you right click or press and hold on a file, folder, or drive, and click/tap on Take Ownership, you may be prompted by UAC for permission to do so first.

    If a user is signed in as an administrator, then the user would just click/tap on Yes to approve and take ownership. The owner of the file, folder, or drive would be changed to the current administrator user account. Permissions would be set to allow the Owner_Rights SID (current owner) full control of the file, folder, or drive.

    If a user is signed in as a standard user, then the user would need to enter a selected administrator's password to approve and take ownership. The owner of the file, folder, or drive would be changed to the selected administrator account, and not the standard user. Permissions would be set to allow the Owner_Rights SID (current owner) full control of the file, folder, or drive.


    The Take Ownership context menu will not be available when you right click on the C: drive, C:\Program Files folder, C:\Program Files (x86) folder, C:\ProgramData folder, C:\Users folder, and C:\Windows folder. This was done because taking ownership of these system folders can make Windows unstable since it would also take ownership of all the folder's content at the same time.

    You will still be able to use the Take Ownership context menu on files inside the folder locations above though.

    If you would like to have a custom location(s) of your own to not have the context menu, then please feel free to post a request in this tutorial thread. I'll be happy to post back with a custom .reg file for it.

    warning   Warning
    This context menu will only work with English Windows 10 installations.

    If you have a different language, then please post a reply with what language you have instead. I'll be happy to post back a translated version for you.


    EXAMPLE: Take Ownership in Context Menu
    Name:  Drive.jpg
Views: 265757
Size:  23.9 KBName:  File.jpg
Views: 265500
Size:  19.7 KBName:  Folder.jpg
Views: 265640
Size:  21.3 KB



    Here's How:

    1. Do step 2 (add), step 3 (add w/pause), or step 4 (remove) below for what you would like to do.


     2. To Add "Take Ownership" to Context Menu

    A) Click/tap on the Download button below to download the .reg file below, and go to step 5 below.

    Add_Take_Ownership_to_context_menu.reg

    download


     3. To Add "Take Ownership" with Pause to Context Menu

    Note   Note
    This option pauses the command when you use the "Take Ownership" context menu to be able to see the command results. This can be handy to verify if changing ownership and permissions was successfully processed or not.
    Click image for larger version. 

Name:	pause_command.jpg 
Views:	4707 
Size:	149.8 KB 
ID:	11253

    A) Click/tap on the Download button below to download the .reg file below, and go to step 5 below.

    Add_Take_Ownership_with_Pause_to_context_menu.reg

    download


     4. To Remove "Take Ownership" from Context Menu

    A) Click/tap on the Download button below to download the .reg file below, and go to step 5 below.

    Remove_Take_Ownership_from_context_menu.reg

    download


    5. Save the .reg file to your Desktop.

    6. Double click/tap on the downloaded .reg file to merge it.

    7. If prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

    8. When finished, you can delete the downloaded .reg file if you like.


    That's it,
    Shawn



  1. Joined : Oct 2014
    In a trailer down by the river
    Posts : 54
    Windows 10 Enterprise 1607 14393.447 and going
       2015-07-20 #1

    Pause version doesn't seem to work with 10240 version
      My System SpecsSystem Spec


  2. Joined : Oct 2013
    Posts : 17,362
    64-bit Windows 10 Pro build 15007
       2015-07-20 #2

    Hey mate,

    It's working for me in build 10240. What are you seeing instead?
      My System SpecsSystem Spec


  3. Joined : Oct 2014
    In a trailer down by the river
    Posts : 54
    Windows 10 Enterprise 1607 14393.447 and going
       2015-07-20 #3

    Hi Shaun,

    Command works but no pause message.
      My System SpecsSystem Spec


  4. Joined : Oct 2013
    Posts : 17,362
    64-bit Windows 10 Pro build 15007
       2015-07-20 #4

    You should see a "Press any key to continue" message at the bottom. Did you use the download under step 3?
      My System SpecsSystem Spec


  5. Joined : Oct 2014
    In a trailer down by the river
    Posts : 54
    Windows 10 Enterprise 1607 14393.447 and going
       2015-07-20 #5

    Brink said: View Post
    You should see a "Press any key to continue" message at the bottom. Did you use the download under step 3?
    Yes sir I did.
    Code:
    [-HKEY_CLASSES_ROOT\*\shell\runas]
    
    [HKEY_CLASSES_ROOT\*\shell\runas]
    @="Take Ownership"
    "HasLUAShield"=""
    "NoWorkingDirectory"=""
    Position="middle"
    
    [HKEY_CLASSES_ROOT\*\shell\runas\command]
    @="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F /c /l && pause"
    "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F /c /l && pause"
    
    
    [-HKEY_CLASSES_ROOT\Directory\shell\runas]
    
    [HKEY_CLASSES_ROOT\Directory\shell\runas]
    @="Take Ownership"
    "HasLUAShield"=""
    "NoWorkingDirectory"=""
    Position="middle"
    
    [HKEY_CLASSES_ROOT\Directory\shell\runas\command]
    @="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t /c /l /q && pause"
    "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t /c /l /q && pause"
    
    
    [-HKEY_CLASSES_ROOT\dllfile\shell\runas]
    
    [HKEY_CLASSES_ROOT\dllfile\shell\runas]
    @="Take Ownership"
    "HasLUAShield"=""
    "NoWorkingDirectory"=""
    Position="middle"
    
    [HKEY_CLASSES_ROOT\dllfile\shell\runas\command]
    @="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F /c /l && pause"
    "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F /c /l && pause"
    
    
    [-HKEY_CLASSES_ROOT\Drive\shell\runas]
    
    [HKEY_CLASSES_ROOT\Drive\shell\runas]
    @="Take Ownership"
    "HasLUAShield"=""
    "NoWorkingDirectory"=""
    Position="middle"
    
    [HKEY_CLASSES_ROOT\Drive\shell\runas\command]
    @="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t /c /l /q && pause"
    "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t /c /l /q && pause"
    
    
    [-HKEY_CLASSES_ROOT\exefile\shell\runas]
    
    [HKEY_CLASSES_ROOT\exefile\shell\runas]
    "HasLUAShield"=""
    
    [HKEY_CLASSES_ROOT\exefile\shell\runas\command]
    @="\"%1\" %*"
    "IsolatedCommand"="\"%1\" %*"
      My System SpecsSystem Spec


  6. Joined : Oct 2013
    Posts : 17,362
    64-bit Windows 10 Pro build 15007
       2015-07-20 #6

    That's the correct one with pause included in the commands.

    Try removing the context menu and adding it again to see if that may sort it in case something may have been changed by something after it was added the first time.

    If you did, then does your registry match what's in the .reg?
      My System SpecsSystem Spec


  7. Joined : Oct 2014
    In a trailer down by the river
    Posts : 54
    Windows 10 Enterprise 1607 14393.447 and going
       2015-07-20 #7

    Shaun,

    Yeah, I disabled and enabled.

    I don't understand, here is the reg setting.
    Click image for larger version. 

Name:	Take owership 001 2015-07-20_16-44-35.png 
Views:	854 
Size:	15.1 KB 
ID:	25269
    Click image for larger version. 

Name:	Take owership 002 2015-07-20_16-44-35.png 
Views:	826 
Size:	16.6 KB 
ID:	25270
      My System SpecsSystem Spec


  8. Joined : Oct 2013
    Posts : 17,362
    64-bit Windows 10 Pro build 15007
       2015-07-20 #8

    I noticed that you have a different language. Substitute administrators in the commands for your language instead and see if that sorts it.
      My System SpecsSystem Spec


  9. Joined : Oct 2014
    In a trailer down by the river
    Posts : 54
    Windows 10 Enterprise 1607 14393.447 and going
       2015-07-20 #9

    Brink said: View Post
    I noticed that you have a different language. Substitute administrators in the commands for your language instead and see if that sorts it.
    I tried it, but I can use any English command and it will work so this didn't
      My System SpecsSystem Spec


 
Page 1 of 26 12311 ... LastLast


Similar Threads
Tutorial Category
Restore Point Context Menu - Add in Windows 10
How to Add a 'Create Restore Point' Context Menu in Windows 10 System Restore uses a feature called system protection that regularly creates and saves information about your PC's drivers, programs, registry, system files, and settings as restore...
Tutorials
New context menu - Add or Remove in Windows 10
How to Add or Remove the New context menu in Windows 10 The New context menu allows users to quickly create new files, folders, or shortcuts in the current location. You can right click or press and hold on your desktop or in any folder window,...
Tutorials
Batch File - Add to New Context Menu in Windows 10
How to Add Windows Batch File to New Context Menu in Windows 10 A .bat file is a batch file that consists of a series of commands to be executed by the command line interpreter, stored in a plain text file. The New context menu allows users...
Tutorials
VBScript File - Add to New Context Menu in Windows 10
How to Add VBScript Script File to New Context Menu in Windows 10 A .vbs file is a VBScript (Visual Basic Script) file written in the VBScript scripting language that can be executed within Windows or Internet Explorer via the Windows-based...
Tutorials
BAT files - Add Open with Context Menu in Windows 10
How to Add or Remove Open with Context Menu to BAT files in Windows 10 A .bat file is a batch file that consists of a series of commands to be executed by the command line interpreter, stored in a plain text file. The Open with context menu...
Tutorials
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 14:38.
Find Us
Twitter Facebook Google+



Windows 10 Forums