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

    Add Take Ownership to Context Menu in Windows 10

    How to Add Take Ownership to Context Menu in Windows 10

    Published by BrinkCategory: User Accounts
    28 Jan 2015 Last Updated: 2 Weeks Ago at 13:37

    Published by


    Brink's Avatar
    Administrator

    Posts: 24,290

    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 and folders for all users in Windows 10.

    This will allow you to be able to instantly take ownership of a file or folder (and all contents) by changing the owner to the current user and grant the Owner_Rights SID (for 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
    When you right click or press and hold on a file or folder and click/tap on Take Ownership, you will 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 or folder would be changed to the current user account. Permissions would be set to allow this current owner (Owner_Rights SID) full control of the file or folder.

    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 or folder would be changed to the selected administrator account and not the standard user. Permissions would be set to allow this current owner (Owner_Rights SID) full control of the file or folder.


    The Take Ownership context menu will not be available when you right click or press and hold on any drive, C:\Program Files folder, C:\Program Files (x86) folder, C:\ProgramData folder, C:\Users folder, and C:\Windows folder. This was done by design since taking ownership of these specific system folders can make Windows unstable as 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:  File.jpg
Views: 389008
Size:  19.7 KBName:  Folder.jpg
Views: 388987
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:	6805 
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.    20 Jul 2015 #1
    Join Date : Oct 2014
    In a trailer down by the river
    Posts : 111
    Windows 10 Enterprise 1709 16299.15 and off we go

    Pause version doesn't seem to work with 10240 version
      My ComputerSystem Spec
  2.    20 Jul 2015 #2
    Join Date : Oct 2013
    Posts : 24,290
    64-bit Windows 10 Pro build 17017
    Thread Starter

    Hey mate,

    It's working for me in build 10240. What are you seeing instead?
      My ComputersSystem Spec
  3.    20 Jul 2015 #3
    Join Date : Oct 2014
    In a trailer down by the river
    Posts : 111
    Windows 10 Enterprise 1709 16299.15 and off we go

    Hi Shaun,

    Command works but no pause message.
      My ComputerSystem Spec
  4.    20 Jul 2015 #4
    Join Date : Oct 2013
    Posts : 24,290
    64-bit Windows 10 Pro build 17017
    Thread Starter

    You should see a "Press any key to continue" message at the bottom. Did you use the download under step 3?
      My ComputersSystem Spec
  5.    20 Jul 2015 #5
    Join Date : Oct 2014
    In a trailer down by the river
    Posts : 111
    Windows 10 Enterprise 1709 16299.15 and off we go

    Quote Originally Posted by Brink 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 ComputerSystem Spec
  6.    20 Jul 2015 #6
    Join Date : Oct 2013
    Posts : 24,290
    64-bit Windows 10 Pro build 17017
    Thread Starter

    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 ComputersSystem Spec
  7.    20 Jul 2015 #7
    Join Date : Oct 2014
    In a trailer down by the river
    Posts : 111
    Windows 10 Enterprise 1709 16299.15 and off we go

    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:	1387 
Size:	15.1 KB 
ID:	25269
    Click image for larger version. 

Name:	Take owership 002 2015-07-20_16-44-35.png 
Views:	1377 
Size:	16.6 KB 
ID:	25270
      My ComputerSystem Spec
  8.    20 Jul 2015 #8
    Join Date : Oct 2013
    Posts : 24,290
    64-bit Windows 10 Pro build 17017
    Thread Starter

    I noticed that you have a different language. Substitute administrators in the commands for your language instead and see if that sorts it.
      My ComputersSystem Spec
  9.    20 Jul 2015 #9
    Join Date : Oct 2014
    In a trailer down by the river
    Posts : 111
    Windows 10 Enterprise 1709 16299.15 and off we go

    Quote Originally Posted by Brink 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 ComputerSystem Spec

 
Page 1 of 36 12311 ... LastLast


Similar Threads
Tutorial Category
Customization Add or Remove New context menu 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
Customization Add Create Restore Point Context Menu in Windows 10
How to Add a Create Restore Point Context Menu in Windows 10 System protection (if turned on) is a feature that allows you to perform a system restore that takes your PC back to an earlier point in time, called a system restore point. This can be...
Tutorials
Customization Add Batch File 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
Customization Add VBScript File 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
Customization Add Open with to Context Menu of BAT files 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 15:45.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums