"Jeff Layman" <> wrote in message news:jb7mph$vii$...
> There have been numerous posts in this NG about the problem of Win7
> preventing changes to, or doing something with a file, because the
> person trying it does not have the correct permission, even if that
> person has administrator status.
>
> The way round this is normally said to be opening the file properties,
> going to the security tab, and changing the permissions settings. It
> isn't that easy and sometimes doesn't seem to work.
>
> Has anyone installed the registry hack given here which supposedly makes
> the whole process a lot easier?
> http://www.howtogeek.com/howto/windo...menu-in-vista/
>
> Reading the comments on that page and in the forum it seems to work for
> most people, but for others it doesn't and may even screw some things up.
>
> Anyone here who has installed and used it - successfully or not?
>
> --
>
> Jeff
The reg file from that site is incomplete as it doesn't process exe files.
This reg file does process exe files, and adds a shield icon:
--------------------------------------------------
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"
------------------------------------------------------------
To remove the above:
------------------------------------------------------------
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\*\shell\takeownership]
[-HKEY_CLASSES_ROOT\exefile\shell\takeownership]
[-HKEY_CLASSES_ROOT\dllfile\shell\takeownership]
[-HKEY_CLASSES_ROOT\Directory\shell\takeownership]
------------------------------------------------------------