Friday, February 24, 2012

Resetting Windows Registry key to default permission

Download and Install SunInACL at http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=23510

1. Create a file using notepad in C:\Program files\windows resource kits\tools

copy the following to it:



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


2. save file with the name reset.cmd



3. open command prompt as admin

4. run the following command:
cd c:\Program files\windows resource kits\tools

5. press enter

6. type the following:
reset.cmd

7. press enter

8. The process will take several minutes

Once it is finished the permission will be set to default