Friday, November 16, 2012

Reset all the registry permissions to defaults

We can use SubInACL utility to reset all registry permission as default.

 Download SubInACL from Click Here
1.Go to  C:\Program Files\Windows Resource Kits\Tools folder
2.Create a file with the name reset.cmd
3. Now add the following lines in this file


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

4. Save and exit your file.
5. Now to open command prompt run the following command

    cd C:\Program Files\Windows Resource Kits\Tools
6. now press enter and enter the following command reset.cmd and enter again
    after a few minutes by processing subinacl, the permission will be reset.
7. restart the system

No comments:

Post a Comment