View Single Post
  #3  
Old September 16th 18, 01:30 PM posted to alt.windows7.general
SC Tom[_3_]
external usenet poster
 
Posts: 4,089
Default Removing all registry, folder, and file restrictions (ownership, permissions, etc)



"Bill in Co" wrote in message
...
OK, I've about reached my limit with Windows 7 and its rules and
regulations. Since I am the only user and I am not on a network, I want
complete and unfettered access to all registry settings, folders, and
files on MY computer. Isn't there any utility program out there that can
do this automatically? (And please, I don't want to rehash the potential
security issues with this approach). I just want a simple utility
program, and would prefer not to to have to go through all the command
line stuff like TAKEOWN, ICACLS, etc, etc. And I want to do this for the
entire C: partition. And yes, I am aware of the security risks.


Here's the "Take Ownership" reg file that John mentioned. I haven't tried it
on the whole C: drive, but it works well for the large number of files I've
used it on:

==============================

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\comm and]
@="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\comm and]
@="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\co mmand]
@="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"

==========================================

Watch word wrap on the longer lines.
--

SC Tom


Ads