Add Take Ownership to Context Menu in Windows 10  

Page 2 of 58 FirstFirst 12341252 ... LastLast
  1. Brink's Avatar
    Posts : 56,881
    64-bit Windows 10 Pro for Workstations build 21376
    Thread Starter
       #10

    Ok. If you're not seeing "Press any key to continue" in the command prompt when using the pause context menu, then it's failing before reaching the pause command.

    I have updated the .reg file in step 3. Please see if that helps. :)

    Are you getting a UAC prompt when using the context menu?
      My Computers

  2. Zardoc's Avatar
    Posts : 395
    Windows 10 Enterprise
       #11

    Hi Shaun,

    Now it works.
    Add Take Ownership to Context Menu in Windows 10-take-owership-003-2015-07-20_16-44-35.png

    I also found why it's not working in French. The only command that it doesn't recognise is YES "y" it should be "o" for oui.

    Like so for French:
    Code:
    Windows Registry Editor Version 5.00
    
    ; Created by: Shawn Brink
    ; https://www.tenforums.com
    ; Tutorial: https://www.tenforums.com/tutorials/3841-take-ownership-add-context-menu-windows-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 & 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 o && icacls \"%1\" /grant administrators:F /t /c /l /q & pause"
    "IsolatedCommand"="cmd.exe  /c takeown /f \"%1\" /r /d o && 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 o && icacls \"%1\" /grant administrators:F /t /c /l /q & pause"
    "IsolatedCommand"="cmd.exe  /c takeown /f \"%1\" /r /d o && 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

  3. Brink's Avatar
    Posts : 56,881
    64-bit Windows 10 Pro for Workstations build 21376
    Thread Starter
       #12

    Great news.
      My Computers


  4. Posts : 12
    Windows 10
       #13

    Hi guys, I am using this to take ownership of a disk yet I am still unable to delete a folder on the disk. Ideas ?
      My Computer

  5. Brink's Avatar
    Posts : 56,881
    64-bit Windows 10 Pro for Workstations build 21376
    Thread Starter
       #14

    Hello Xelot, and welcome to Ten Forums. :)

    It depends on what folder it is, and if it's currently being used or open.

    If you like, see if the free program FileASSASSIN or Unlocker may be able to delete it.
      My Computers


  6. Posts : 12
    Windows 10
       #15

    I'm not sure how it came to be but it's a folder called xelot (this is my windows username) and it contains a folder called Music, both folders are otherwise empty. It's on one of my storage disks (non OS). I also notice another storage disk has the same thing now, except it has Music and Documents, again all empty. There is only the one account (i'm the only one who uses the pc) so it is admin etc of course.

    At first, it came up "you'll need to provide administrator permission to delete this folder", so I clicked Continue, then it said "You require permission from SYSTEM to make changes to this folder".

    Since using the Take Ownership method (also doing this manually through properties and advanced permissions window), it is the same scenario except it is saying "You require permission from (pcname)\xelot to make changes to this folder".

    It makes no sense! I am on that account, I couldn't even be on another account if I wanted to as I said there is only one.
      My Computer

  7. Brink's Avatar
    Posts : 56,881
    64-bit Windows 10 Pro for Workstations build 21376
    Thread Starter
       #16

    It sounds like you may have set "File History" to backup there?
      My Computers


  8. Posts : 12
    Windows 10
       #17

    Updated previous post with more info + I haven't touched file history - checking it now I can confirm it is off.

    Unlocker has done the trick and the folder has gone. thanks!

    Is there any way of permanently getting rid of the "you need to provide admin privs to do anything here" prompts? It comes up all the time when I am working with files on the main C drive, I have turned off UAC as those prompts are also annoying but I am stuck with these prompts it seems.

    Security is not even an issue on the system as it is not connected to the internet.
      My Computer

  9. Brink's Avatar
    Posts : 56,881
    64-bit Windows 10 Pro for Workstations build 21376
    Thread Starter
       #18

    Good news. You could enable and sign in with the built-in Administrator account to have full access all the time.

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


  10. Posts : 12
    Windows 10
       #19

    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.
      My Computer


 
Page 2 of 58 FirstFirst 12341252 ... LastLast

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 14:31.
Find Us




Windows 10 Forums