Right click "Take Ownership" not working correctly


  1. Posts : 26
    Win7 Premium
       #1

    Right click "Take Ownership" not working correctly


    Asus laptop with Windows 7 Professional


    Right click "Take Ownership";
    changes Owner to "owner (ASUSI-PC\owner)", not "Administrators (ASUSI-PC\Administrators)" as expected?
    it does add "(Administrators (ASUSI-PC\Administrators)" with full permissions.


    Below is the second Reg Key I tried after uninstalling the first (first key had same result as second key)


    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\*\shell\takeownership]
    @="Take ownership"
    "HasLUAShield"=""
    "NoWorkingDirectory"=""

    [HKEY_CLASSES_ROOT\*\shell\takeownership\command]
    @="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
    "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

    [HKEY_CLASSES_ROOT\exefile\shell\takeownership]
    @="Take ownership"
    "HasLUAShield"=""
    "NoWorkingDirectory"=""

    [HKEY_CLASSES_ROOT\exefile\shell\takeownership\command]
    @="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
    "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

    [HKEY_CLASSES_ROOT\dllfile\shell\takeownership]
    @="Take ownership"
    "HasLUAShield"=""
    "NoWorkingDirectory"=""

    [HKEY_CLASSES_ROOT\dllfile\shell\takeownership\command]
    @="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
    "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

    [HKEY_CLASSES_ROOT\Directory\shell\takeownership]
    @="Take ownership"
    "HasLUAShield"=""
    "NoWorkingDirectory"=""

    [HKEY_CLASSES_ROOT\Directory\shell\takeownership\command]
    @="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
    "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
      My Computer


  2. Posts : 17,322
    Win 10 Pro x64
       #2

    Have you tried this one?

    Take Ownership Shortcut

    It looks a little different than the one you have showing,

    Code:
    Windows Registry Editor Version 5.00
    
    ; Created by: Shawn Brink
    ; https://www.sevenforums.com
    ; Tutorial: https://www.sevenforums.com/tutorials/1911-take-ownership-shortcut.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\" %*"
    That's the one under number 2 in the tutorial.
      My Computer


  3. Posts : 26
    Win7 Premium
    Thread Starter
       #3

    Thanks for your help

    This looks like what I have now, I would like Administrators to be the owner.

    "This will allow you to be able to instantly take ownership of a file, folder (and all contents), or drive (and all contents) by changing the owner to the current user and grant the Administrators group full access permission."

    Any other ideas?
      My Computer


  4. Posts : 4,776
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
       #4

    What are you trying to take ownership of and why? Changing ownership could screw up your system if used incorrectly. I'm not expert on the subject. In mu opinion there's no point in changing ownership unless you are trying to delete a stubborn folder/ file and for anything else you'd need to be able to restore original permissions in the event of problems. (Easier said than done)

    There are a couple of utilities that you could use instead of messing about with command lines and permissions dialog boxes.

    Right click "Take Ownership" not working correctly-take-ownership-1.jpg

    Right click "Take Ownership" not working correctly-take-ownership-2.jpg

    So what are you trying to accomplish exactly?
    Last edited by Callender; 28 Aug 2016 at 12:09. Reason: spelling
      My Computer


  5. Posts : 708
    Windows 7 x64
       #5

    I agree with Callender as this is no good to use Administrator.

    Use your own account-name, as you are the administrator already.

    For "Take Ownership" will be very troublesome.
    Already the UAC is there.
    And Administrator means leaving your home main door open.

    Let say, you install a program.
    In normal way, the prompt on UAC.
    In Administrator mode, ex; no prompt and you cannot control any malware to go right inside your core, where it is difficult to find.
    Should there be any problem, you need to use the Administrator mode to do.
    This is almost like using Administrator to do your normal computing.
    Should any other user hit a problem, then the Administrator will be doing extra work.
    Hence, this is why the Administrator cannot be seen, avoid unnecessary issue later on.

    Let the Administrator go to sleep, as your account is almost near to Administrator level, that is 1 level down.
    This is the differences between you, as 'mini' administrator (small cap 'a') and Administrator as full access.
    Do note is you are in the Administrator mode, and any malware are happy to get what they want.

    Quote: I'm not expert on the subject.
    imo, there are 2 things best leave it alone; Administrator mode AND Registry setting. As these 2 are the highest level.
      My Computer


  6. Posts : 714
    Win 7 Pro, SP1, x86, Win-11/Pro/64
       #6

    Take Ownership is Old School.
    Download and install "Grant Admin Full Control".
    I call that, Take Ownership on steroids!

    That program is the first thing I install on a new setup.

    Good luck!
    TechnoMage
      My Computer


  7. Posts : 26
    Win7 Premium
    Thread Starter
       #7

    Thanks to all that have helped
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 20:11.
Find Us