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

Page 2 of 40 FirstFirst 123412 ... LastLast

  1. Posts : 28,495
    64-bit Windows 10 Pro build 17650
    Thread Starter
       20 Jul 2015 #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 ComputersSystem Spec


  2. Posts : 113
    Windows 10 Enterprise 1709 16299.15 and off we go
       20 Jul 2015 #11

    Hi Shaun,

    Now it works.
    Click image for larger version. 

Name:	Take owership 003 2015-07-20_16-44-35.png 
Views:	134 
Size:	6.9 KB 
ID:	25279

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


  3. Posts : 28,495
    64-bit Windows 10 Pro build 17650
    Thread Starter
       20 Jul 2015 #12

    Great news.
      My ComputersSystem Spec

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


  5. Posts : 28,495
    64-bit Windows 10 Pro build 17650
    Thread Starter
       25 Jul 2015 #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 ComputersSystem Spec

  6.    25 Jul 2015 #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 ComputerSystem Spec


  7. Posts : 28,495
    64-bit Windows 10 Pro build 17650
    Thread Starter
       25 Jul 2015 #16

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

  8.    25 Jul 2015 #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 ComputerSystem Spec


  • Posts : 28,495
    64-bit Windows 10 Pro build 17650
    Thread Starter
       25 Jul 2015 #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 ComputersSystem Spec

  •    25 Jul 2015 #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 ComputerSystem Spec


  •  
    Page 2 of 40 FirstFirst 123412 ... 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 Xbox Windows Phone


    Related Threads
    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, and click/tap on New to open the New context menu. This...
    System protection (if turned on) is a feature that allows you to perform a system restore that takes your PC back to an earlier point in time, called a system restore point. This can be handy if your PC isn't working well and you recently installed...
    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 to quickly create new files, folders, and shortcuts. You can right...
    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 script host (Wscript.exe), and may also use the .vb file extension. The...
    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 05:54.
    Find Us