Take Ownership Shortcut

Page 22 of 45 FirstFirst ... 12202122232432 ... LastLast

  1. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #210

    leftygt said:
    Hi Shawn

    Thanks for your help.I tried unlocker, but its telling me there is no "unlocking handle"?
    You might see if temporarily moving the contents back to the original location may allow you to then be able to un-share and delete it.

    If not, then I would recommend to go ahead and post this issue in the Network & Sharing forum area to see what we may be able to do to help with there it since it's not related with this tutorial. This way you will get more specific help with it. :)
    Last edited by Brink; 18 Feb 2012 at 09:03. Reason: Added quote
      My Computer


  2. Posts : 1
    Windows 7 Home Premium 32bit.
       #211

      My Computer


  3. Posts : 1
    WINDOWS 7 HOME EDITION 32 BIT
       #212

    Thanks... it worked... was trying for since million years... ( I think So) thanks again...
      My Computer


  4. Posts : 1
    Windows 7 Home Premium 64 bit
       #213

    THANKS A MILLION


    I had problems with iTunes showing the error message (-42404) part of iTunes not installed correctly etc.
    I was advised to look at your posting re this problem - I downloaded the TAKE OWNERSHIP prog, followed your instructions and PROBLEM SOLVED.
    Many, many thanks - Apple offered no such advice - I was tearing my hair out.
    WELL DONE ONCE AGAIN.
    Regards
    Signman3
    :)
      My Computer


  5. Posts : 19
    windows7 ultimate x32
       #214

    via cmd


    Code:
     @echo off
    reg query "HKU\S-1-5-19\Environment"
    If Not %ERRORLEVEL% EQU 0 (
     cls & echo Schadenfreude..
     Pause & Exit
    )
    Cls
    
    echo  Take Ownership:
    reg delete "HKCR\*\shell\runas" /f
    reg add "HKCR\*\shell\runas"         /ve                        /d "Take Ownership" /f
    reg add "HKCR\*\shell\runas"         /v "HasLUAShield"          /d ""               /f
    reg add "HKCR\*\shell\runas"         /v "NoWorkingDirectory"    /d ""               /f
    reg add "HKCR\*\shell\runas"         /v "Position"              /d "middle"         /f
    reg add "HKCR\*\shell\runas\command" /ve                        /d "cmd.exe /c takeown /f \"%%1\" && icacls \"%%1\" /grant *S-1-3-4:F /c /l & pause" /f
    reg add "HKCR\*\shell\runas\command" /v "IsolatedCommand"       /d "cmd.exe /c takeown /f \"%%1\" && icacls \"%%1\" /grant *S-1-3-4:F /c /l & pause" /f
     reg delete "HKCR\Directory\shell\runas" /f
     reg add "HKCR\Directory\shell\runas"         /ve                     /d "Take Ownership" /f
     reg add "HKCR\Directory\shell\runas"         /v "AppliesTo"          /d "NOT (System.ItemPathDisplay:=\"C:\Users\" OR System.ItemPathDisplay:=\"C:\ProgramData\" OR System.ItemPathDisplay:=\"C:\Windows\" OR System.ItemPathDisplay:=\"C:\Windows\System32\" OR System.ItemPathDisplay:=\"C:\Program Files\" OR System.ItemPathDisplay:=\"C:\Program Files (x86)\")" /f
     reg add "HKCR\Directory\shell\runas"         /v "HasLUAShield"       /d ""       /f
     reg add "HKCR\Directory\shell\runas"         /v "NoWorkingDirectory" /d ""       /f
     reg add "HKCR\Directory\shell\runas"         /v "Position"           /d "middle" /f
     reg add "HKCR\Directory\shell\runas\command" /ve                     /d "cmd.exe /c takeown /f \"%%1\" /r /d y && icacls \"%%1\" /grant *S-1-3-4:F /t /c /l /q & pause" /f
     reg add "HKCR\Directory\shell\runas\command" /v "IsolatedCommand"    /d "cmd.exe /c takeown /f \"%%1\" /r /d y && icacls \"%%1\" /grant *S-1-3-4:F /t /c /l /q & pause" /f
    reg delete "HKCR\dllfile\shell\runas" /f
    reg add "HKCR\dllfile\shell\runas"         /ve                     /d "Take Ownership" /f
    reg add "HKCR\dllfile\shell\runas"         /v "HasLUAShield"       /d ""               /f
    reg add "HKCR\dllfile\shell\runas"         /v "NoWorkingDirectory" /d ""               /f
    reg add "HKCR\dllfile\shell\runas"         /v "Position"           /d "middle"         /f
    reg add "HKCR\dllfile\shell\runas\command" /ve                     /d "cmd.exe /c takeown /f \"%%1\" && icacls \"%%1\" /grant *S-1-3-4:F /c /l & pause" /f
    reg add "HKCR\dllfile\shell\runas\command" /v "IsolatedCommand"    /d "cmd.exe /c takeown /f \"%%1\" && icacls \"%%1\" /grant *S-1-3-4:F /c /l & pause" /f
     reg delete "HKCR\Drive\shell\runas" /f
     reg add "HKCR\Drive\shell\runas"         /ve                     /d "Take Ownership" /f
     reg add "HKCR\Drive\shell\runas"         /v "AppliesTo"          /d "NOT C:"         /f
     reg add "HKCR\Drive\shell\runas"         /v "HasLUAShield"       /d ""               /f
     reg add "HKCR\Drive\shell\runas"         /v "NoWorkingDirectory" /d ""               /f
     reg add "HKCR\Drive\shell\runas"         /v "Position"           /d "middle"         /f
     reg add "HKCR\Drive\shell\runas\command" /ve                     /d "cmd.exe /c takeown /f \"%%1\" /r /d y && icacls \"%%1\" /grant *S-1-3-4:F /t /c /l /q & pause" /f
     reg add "HKCR\Drive\shell\runas\command" /v "IsolatedCommand"    /d "cmd.exe /c takeown /f \"%%1\" /r /d y && icacls \"%%1\" /grant *S-1-3-4:F /t /c /l /q & pause" /f
    reg delete "HKCR\exefile\shell\runas" /f
    reg add "HKCR\exefile\shell\runas"         /v "HasLUAShield"    /d ""            /f
    reg add "HKCR\exefile\shell\runas\command" /ve                  /d "\"%%1\" %%*" /f
    reg add "HKCR\exefile\shell\runas\command" /v "IsolatedCommand" /d "\"%%1\" %%*" /f
    :: or "/grant administrators:F" instead "/grant *S-1-3-4:F"
    
    pause & exit
    Last edited by nalbe; 18 Mar 2017 at 02:52. Reason: fixed
      My Computer


  6. Posts : 1
    Windows 7 Professional X64
       #215

    This is truly wonderful.

    For a while I was dual booting windows but the "older" version of Windows 7 was no longer needed.

    Getting rid of the disk space was nearly impossible until I found this.

    Thanks!
      My Computer


  7. Posts : 2
    Win 7
       #216

    Hey guys, any idea where the reg file / install is and how one may go about altering the value for the maximum number of folders to perform Take Ownership on at once? I know your can just do a whole drive and wait that way, but its just a bunch of cmd operations, shouldn't be capped like that :/
      My Computer


  8. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #217

    Hello Jobo, and welcome to Seven Forums.

    That would be the 15 selected limit that's universal in Windows 7. You can use the tutorial below to set this to be unlimited instead. :)

    Context Menu Items Missing - Fix when more than 15 Files are Selected

    Hope this helps,
    Shawn
      My Computer


  9. Posts : 2
    Win 7
       #218

    Shawn, thats perfect... too easy

    Cheers!
      My Computer


  10. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #219

    You're most welcome Jobo. :)
      My Computer


 
Page 22 of 45 FirstFirst ... 12202122232432 ... LastLast

  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 18:12.
Find Us