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

1 comment:

  1. Hi ,

    This is Denny, the creator of this free automated employee
    provisioning/termination app-- Z-hire. I wrote this app for the TechNet community a year ago.

    Since you run a very informative blog, I would like your help
    spread the word. Since my application is free, i need supporters from the
    community. It would means a lot if you can help.

    Here is a link to my app
    http://www.zohno.com


    Thanks
    Denny

    ReplyDelete