How to Reset Windows Registry Permissions

Home / Guides / How to Reset Windows Registry Permissions

Updated @8.02.11

Sometimes when trying to install some software or even updating windows via hotfixes, a very annoying error message appear and tells you: “Access Denied”

There could be many reasons for this error but usually it is caused my misconfigured or corrupted registry permissions. No matter if you have administrative rights on that computer if a specific registry key does not contain access permission for your account, you will be denied.

We can easily reset registry permissions so that administrators get full access the way it was before the corruption. We this purpose we need two things,

1: subinacl     (which is a windows resource kit tool)

2: reset.cmd (which is the batch script)

The file reset.cmd contains the following lines:

cd /d “%ProgramFiles%\Windows Resource Kits\Tools”
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f
subinacl /subdirectories %SystemDrive%\ /grant=administrators=f /grant=system=f

Download the zip package containing the above 2 files and extract it somewhere. e.g. in (C:\)

After extracting the package, install the file subinacl.msi by double clicking it. then run the reset.cmd batch file. it will take some minutes to complete. At the end it will show the execution summary and quit.

Here is a screenshot after completing the reset process.

After the registry permissions are reset, try to install the problematic software again, in our case we just needed to register the jscript.dll. which was not being registered due to corrupted registry permissions for the user with administrative previlidges.

Yes!! it works now.

Download Registry Permissions Reset Package (135 KB)


Leave a Reply