Page 3 of 26 FirstFirst 1234513 ... LastLast

  1. Joined : Oct 2013
    Posts : 17,362
    64-bit Windows 10 Pro build 15007
       2015-07-25 #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 System SpecsSystem Spec


  2. Joined : Jul 2015
    Posts : 6
    W10
       2015-07-29 #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: 2150
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: 2148
Size:  15.0 KB

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


  3. Joined : Oct 2013
    Posts : 17,362
    64-bit Windows 10 Pro build 15007
       2015-07-29 #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: Take Ownership - Add to Context Menu in Windows 10
    
    [-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 System SpecsSystem Spec


  4. Joined : Jul 2015
    Posts : 6
    W10
       2015-07-29 #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 System SpecsSystem Spec


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

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

    Owner of Files and Folders - Change in Windows 10
      My System SpecsSystem Spec


  6. Joined : Jul 2015
    Posts : 6
    W10
       2015-07-29 #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:	58 
Size:	36.4 KB 
ID:	26523
      My System SpecsSystem Spec


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

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


  8. Joined : Jul 2015
    Posts : 6
    W10
       2015-07-29 #27

    Aha, ok, thanks for the help
      My System SpecsSystem Spec


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

    Anytime.
      My System SpecsSystem Spec


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


 
Page 3 of 26 FirstFirst 1234513 ... 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:39.
Find Us
Twitter Facebook Google+



Windows 10 Forums