Windows 10: Add Take Ownership to Context Menu in Windows 10  

Page 3 of 32 FirstFirst 1234513 ... LastLast

  1. Posts : 20,872
    64-bit Windows 10 Pro build 16199
    Thread Starter
       25 Jul 2015 #20

    Xelot said: View Post
    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 ComputersSystem Spec

  2.    29 Jul 2015 #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.

    Name:  1.PNG
Views: 2480
Size:  15.2 KB

    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.

    Name:  2.PNG
Views: 2474
Size:  15.0 KB

    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 ComputerSystem Spec


  3. Posts : 20,872
    64-bit Windows 10 Pro build 16199
    Thread Starter
       29 Jul 2015 #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 ComputersSystem Spec

  4.    29 Jul 2015 #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 ComputerSystem Spec


  5. Posts : 20,872
    64-bit Windows 10 Pro build 16199
    Thread Starter
       29 Jul 2015 #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 ComputersSystem Spec

  6.    29 Jul 2015 #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...

    Click image for larger version. 

Name:	3.PNG 
Views:	73 
Size:	36.4 KB 
ID:	26523
      My ComputerSystem Spec


  7. Posts : 20,872
    64-bit Windows 10 Pro build 16199
    Thread Starter
       29 Jul 2015 #26

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

  8.    29 Jul 2015 #27

    Aha, ok, thanks for the help
      My ComputerSystem Spec


  9. Posts : 20,872
    64-bit Windows 10 Pro build 16199
    Thread Starter
       29 Jul 2015 #28

    Anytime.
      My ComputersSystem Spec


  10. Posts : 2
    Windows 10 Pro
       02 Aug 2015 #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 ComputerSystem Spec


 
Page 3 of 32 FirstFirst 1234513 ... LastLast

Related Threads
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,...
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...
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...
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...
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...
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 02:58.
Find Us