Add Take Ownership to Context Menu in Windows 10  

Page 3 of 64 FirstFirst 123451353 ... LastLast

  1. Posts : 68,668
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #20

    Xelot said:
    Roger that, I may end up doing that but as it would be some hassle switching from this user profile is there no way to get the normal admin account to have full access ?

    I'm sure on windows 7 you didn't have to use the built-in admin account to avoid having these kind of prompts.
    You could try this below to elevate administrators.

    User Account Control (UAC) - Elevate Privilege Level
      My Computers


  2. Posts : 6
    W10
       #21

    Hello Brink, great work you do!

    For me "Take Ownership" is not working correctly. When I want to delete a folder I get the first message, see Screenshot 1. That's normal because I don't own the folder yet.

    Add Take Ownership to Context Menu in Windows 10-1.png

    Then I select "Take Ownership" from the context menu and then I try to delete the folder again I get another message, see Screenshot 2.

    Add Take Ownership to Context Menu in Windows 10-2.png

    The owner changed, but I'm still not the owner of the folder.
    Last edited by Brink; 29 Jul 2015 at 07:30. Reason: attached your images
      My Computer


  3. Posts : 68,668
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #22

    Hello Ubimo,

    Since you do not have an English Windows installed, that would be the problem. You will need to change the y (yes) commands in bold red below from the .reg file with your language version of them. Afterwards, save and merge the .reg again.

    Code:
    Windows Registry Editor Version 5.00
    ; Created by: Shawn Brink
    ; https://www.tenforums.com
    ; Tutorial: https://www.tenforums.com/tutorials/3...dows-10-a.html
    
    [-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"
    "IsolatedCommand"="cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F /c /l"
    
    [-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"
    "IsolatedCommand"="cmd.exe /c takeown /f "%1" /r /d y && icacls "%1" /grant administrators:F /t /c /l /q"
    
    [-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"
    "IsolatedCommand"="cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F /c /l"
    
    [-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"
    "IsolatedCommand"="cmd.exe /c takeown /f "%1" /r /d y && icacls "%1" /grant administrators:F /t /c /l /q"
    [-HKEY_CLASSES_ROOT\exefile\shell\runas]
    [HKEY_CLASSES_ROOT\exefile\shell\runas]
    "HasLUAShield"=""
    [HKEY_CLASSES_ROOT\exefile\shell\runas\command]
    @=""%1" %*"
    "IsolatedCommand"=""%1" %*"
      My Computers


  4. Posts : 6
    W10
       #23

    I did as you said, copied your code to a .reg file, replaced the three bold, red "y" to my language ("j").
    I think you missed one "y" in the 8th line from the bottom up. I tried everything. Nothing is working.

    Then I tried to run this and other commands from the .reg in console: cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F /c /l
    The answer was: File or folder not found
    I think there is somewhere the problem?

    Edit:
    I did some research on the takeown command and found out that the "y" after the /d option is valid, even in my language.

    Edit2:
    It seems the take ownership command changes the ownership to another account which is my account but I do not have the permission to delete the folder. Weird...

    Edit3:
    Just for your info, I disabled UAC via Windows 10 Manager, I hope this is no problem.
      My Computer


  5. Posts : 68,668
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #24

    In that case, see if you may be able to successfully take ownership and set permissions using OPTION FOUR below.

    https://www.tenforums.com/tutorials/3...dows-10-a.html
      My Computers


  6. Posts : 6
    W10
       #25

    Dear Brink, thank you for the fast responses.
    As you can see the "take ownership" command already added me as owner, but I only have the permission to read or run. I can set it manually to full access but it would be more comfortable to do this with one click from the context menu. I think I have to flip some switches in the .reg file...

    Add Take Ownership to Context Menu in Windows 10-3.png
      My Computer


  7. Posts : 68,668
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #26

    I see the problem. This is a protected OS file/folder. Those you need to do manually.
      My Computers


  8. Posts : 6
    W10
       #27

    Aha, ok, thanks for the help :)
      My Computer


  9. Posts : 68,668
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #28

    Anytime. :)
      My Computers


  10. Posts : 2
    Windows 10 Pro
       #29

    Re Take Ownership - Add to Context Menu in Windows 10


    Take Ownership in the Context Menu worked great for me. My only problem seems to be with persistence. When I reboot the computer I'm back to square one and I have to take ownership and/or change the Permissions for HomeUsers all over again. Is there anything I can do to maintain persistence? Thanks much. Stan
      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 06:03.
Find Us




Windows 10 Forums