Take Ownership Shortcut

Page 9 of 45 FirstFirst ... 789101119 ... LastLast

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

    You're welcome. I'm happy to hear that you got it sorted. :)
      My Computer


  2. Posts : 4
    windows 7
       #81

    It works. Thanks a lot!

    Daniel
      My Computer


  3. Posts : 343
    Windows 7
       #82

    this seems to be broken when also using the open elevated command window tweak, it appears to not auto elevate correctly for some reason.

    edit,

    strange i must've been using an older version or something
      My Computer


  4. Posts : 72,051
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #83

    Hello Danial,

    Yes, you have a older version. The current download had been updated not to long ago to cleanly remove and replace the Open Command Window Here as Administrator context menu item. :)
      My Computer


  5. Posts : 343
    Windows 7
       #84

    i modified it some more to add the LUA shield to directories xD

    elevated cmd windows im not to worried about, i can launch them from total commander just by running that elevated xD
      My Computer


  6. Posts : 72,051
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #85

    Good idea. Updated downloads with to have the icon as well.
      My Computer


  7. Posts : 48
    Windows 7 Ultimate x64
       #86

    Does this replace the "Run as Administrator" option?
      My Computer


  8. Posts : 343
    Windows 7
       #87

    no.
      My Computer


  9. Posts : 48
    Windows 7 Ultimate x64
       #88

    squall leonhart said:
    no.
    Hmmm.. I don't see it anymore when I right click.
      My Computer


  10. Posts : 343
    Windows 7
       #89

    hmm, you're right, run as admin is broken D:

    but i know i had a self elevating take ownership item that worked fine with the run as admin command not so long ago.

    seems to be because it replaces the run as key for exe's.

    i recommend removal of take ownership over exe files?

    Code:
    Windows Registry Editor Version 5.00
    
    [-HKEY_CLASSES_ROOT\*\shell\runas]
    
    [HKEY_CLASSES_ROOT\*\shell\runas]
    @="Take ownership"
    "HasLUAShield"=""
    "NoWorkingDirectory"=""
    
    [HKEY_CLASSES_ROOT\*\shell\runas\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\runas]
    
    [HKEY_CLASSES_ROOT\Directory\shell\runas]
    @="Take ownership"
    "HasLUAShield"=""
    "NoWorkingDirectory"=""
    
    [HKEY_CLASSES_ROOT\Directory\shell\runas\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"
    
    [-HKEY_CLASSES_ROOT\dllfile\shell]
    
    [HKEY_CLASSES_ROOT\dllfile\shell\runas]
    @="Take ownership"
    "HasLUAShield"=""
    "NoWorkingDirectory"=""
    
    [HKEY_CLASSES_ROOT\dllfile\shell\runas\command]
    @="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
    "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
      My Computer


 
Page 9 of 45 FirstFirst ... 789101119 ... 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 17:05.
Find Us