Wednesday, February 15, 2012

Windows 7 Reset registry permissions

If for some reason, and it better be a good one because this could totally hose your system. (AKA Back up your registry completely first). You need to reset all registry permissions back to having full access for administrator you can go here to this link http://www.windowsreference.com/security/reset-the-entire-registry-permissions-to-defaults/

If you need an even more drastic reset, including taking ownership of every single registry key (could be a very bad idea....) you can use this script instead of the one in the above link. Do so at your own risk...

subinacl /subkeyreg HKEY_LOCAL_MACHINE /setowner=administrators
subinacl /subkeyreg HKEY_CURRENT_USER /setowner=administrators
subinacl /subkeyreg HKEY_CLASSES_ROOT /setowner=administrators
subinacl /subdirectories %SystemDrive% /setowner=administrators

subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f
subinacl /subdirectories %SystemDrive% /grant=administrators=f

subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=system=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=system=f
subinacl /subdirectories %SystemDrive% /grant=system=f

using that script will force access to administrators for every registry key.... Not recommended, but the information might be useful to someone....

-Matt

No comments:

Post a Comment