Add Take Ownership to Context Menu in Windows 10  

Page 1 of 64 1231151 ... 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 Category: User Accounts
    25 Feb 2024
    Designer Media Ltd

    How to Add Take Ownership to Context Menu in Windows 10


    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 (for current owner) full access permission.

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

    When you right click or press and hold on a file, folder, or drive 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, folder, or drive 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, 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 this current owner (Owner_Rights SID) full control of the file, folder, or drive.

    The Take Ownership context menu will not be available when you right click or press and hold only on the specific C: 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 the Windows "C:" drive and these specific system folders can make Windows unstable as it would also take ownership of all their content at the same time.

    You will still be able to use the Take Ownership context menu on files and folders inside the locations above, and on all drives other than the C drive and FAT32 drives.

    Application files (ex: EXE, CMD, MSI) will have the Take Ownership context menu without replacing Run as administrator.

    Taking Ownership of a FAT32 drive will not work and you will get an error indicating so since file permissions are only supported on NTFS and ReFS drives.


    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.


    For a Windows 11 version of this tutorial, see:

    Add Take Ownership to Context Menu in Windows 11



    EXAMPLE: Take Ownership in Context Menu
    Add Take Ownership to Context Menu in Windows 10-file.jpg Add Take Ownership to Context Menu in Windows 10-folder.jpg Add Take Ownership to Context Menu in Windows 10-take_ownership_drive.png



    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 you want below, and go to step 5 below.

    Add_Take_Ownership_to_context_menu.reg

    Download

    OR

    Add_Shift+Right-Click_Take_Ownership_to_context_menu.reg

    Download


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

    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.

    Add Take Ownership to Context Menu in Windows 10-pause_command.jpg

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

    Add_Take_Ownership_with_Pause_to_context_menu.reg

    Download

    OR

    Add_Shift+Right-Click_Take_Ownership_with_Pause_to_context_menu.reg

    Download


    4 To Remove "Take Ownership" from Context Menu

    This is the default setting.

    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 When 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 Brink






  1. Posts : 516
    Windows 10 Enterprise
       #1

    Pause version doesn't seem to work with 10240 version
      My Computer


  2. Posts : 68,543
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #2

    Hey mate,

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


  3. Posts : 516
    Windows 10 Enterprise
       #3

    Hi Shaun,

    Command works but no pause message.
      My Computer


  4. Posts : 68,543
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #4

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


  5. Posts : 516
    Windows 10 Enterprise
       #5

    Brink said:
    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 Computer


  6. Posts : 68,543
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #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 Computers


  7. Posts : 516
    Windows 10 Enterprise
       #7

    Shaun,

    Yeah, I disabled and enabled.

    I don't understand, here is the reg setting.
    Add Take Ownership to Context Menu in Windows 10-take-owership-001-2015-07-20_16-44-35.png
    Add Take Ownership to Context Menu in Windows 10-take-owership-002-2015-07-20_16-44-35.png
      My Computer


  8. Posts : 68,543
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #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 Computers


  9. Posts : 516
    Windows 10 Enterprise
       #9

    Brink said:
    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 Computer


 

Tutorial Categories

Add Take Ownership to Context Menu in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
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 21:29.
Find Us




Windows 10 Forums