CREATE A SYSTEM RESTORE IMAGE FIRST SO YOU CAN RESTORE THE REGISTRY
SHOULD YOU RUN INTO ANY ISSUES.

TURN OFF INTERNET.

CLOSE ALL OPEN PROGRAMES.

CLOSE ALL APPLICATIONS IN THE NOTIFICATION AREA (BOTTOM RIGHT,ICONS OF TASKBAR).

TURN OFF ANTIVIRUS AND ALL REAL TIME PROTECTION.

If you are running Windows Vista/7, click on the Start menu, choose All Programs, 
then Accessories, then right-click on the item named Command Prompt and choose 
Run as administrator.

If you are running an OS other than Windows Vista, go to the Start menu, choose Run, 
type cmd and click OK.

In the cmd prompt, type   notepad reset.cmd   and click yes to open Notepad.exe and create 
a new text file named reset.cmd (you will be asked to create new file).

Copy and paste the following contents into reset.cmd 

(32BIT X86)

cd /d "%programfiles%\Windows Resource Kits\Tools"

subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=YOURUSERNAME=f /setowner=administrators > %temp%\subinacl_output.txt

subinacl /keyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=YOURUSERNAME=f /setowner=administrators >> %temp%\subinacl_output.txt

subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators >> %temp%\subinacl_output.txt

subinacl /keyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators >> %temp%\subinacl_output.txt

subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators >> %temp%\subinacl_output.txt

subinacl /keyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators >> %temp%\subinacl_output.txt

subinacl /subdirectories %programfiles%\ /grant=administrators=f /grant=system=f /grant=users=e >> %temp%\subinacl_output.txt

subinacl /subdirectories %windir%\ /grant=administrators=f /grant=system=f /grant=users=e >> %temp%\subinacl_output.txt


(64BIT X64)

cd /d C:\Program Files (x86)\Windows Resource Kits\Tools

subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=YOURUSERNAME=f /setowner=administrators > %temp%\subinacl_output.txt

subinacl /keyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=YOURUSERNAME=f /setowner=administrators >> %temp%\subinacl_output.txt

subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators >> %temp%\subinacl_output.txt

subinacl /keyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators >> %temp%\subinacl_output.txt

subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators >> %temp%\subinacl_output.txt

subinacl /keyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators >> %temp%\subinacl_output.txt

subinacl /subdirectories %programfiles%\ /grant=administrators=f /grant=system=f /grant=users=e >> %temp%\subinacl_output.txt

subinacl /subdirectories %windir%\ /grant=administrators=f /grant=system=f /grant=users=e >> %temp%\subinacl_output.txt


Alternative should the above fail/permission errors after restart:


(32BIT X86)

cd /d "%programfiles%\Windows Resource Kits\Tools"

subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=YOURUSERNAME=f /grant=restricted=r /setowner=administrators

subinacl /keyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=YOURUSERNAME=f /grant=restricted=r /setowner=administrators

subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /setowner=administrators

subinacl /keyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /setowner=administrators

subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators

subinacl /keyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators 


(64BIT X64)

cd /d C:\Program Files (x86)\Windows Resource Kits\Tools

subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=YOURUSERNAME=f /grant=restricted=r /setowner=administrators

subinacl /keyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=YOURUSERNAME=f /grant=restricted=r /setowner=administrators

subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /setowner=administrators

subinacl /keyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /setowner=administrators

subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators

subinacl /keyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators 


Note:  The YOURUSERNAME value should match the name of your user folder at 
c:\Documents and Settings (or c:\users on Windows Vista and higher).  
You can also find the value to use for YOURUSERNAME by launching Task Manager 
and looking at the user name listed in the User Name column of the Processes tab.

Save and close reset.cmd. 
 
In the cmd prompt, type reset.cmd and press enter to run the SubInACL tool.  
This tool will take several minutes/hours to run, and it requires that the user account you are using has 
administrator privileges on the system.  This is why it is necessary to run it from an elevated cmd 
prompt on Windows Vista/7.  

Restart once the cmd window states finished/complete/done/flashing _ .

oNCE RESTARTED YOU MAY FIND CERTAIN APPLICATIONS FAIL TO START (GENRALLY ANTIVIRUS) 
SHOULD THIS HAPPEN THEN RUN THE ALTERNATIVE SCRIPT THEN IF THAT HAS NOT SOLVED THE 
ISSUE (AFTER RESTART) GO TO THE UNINSTALL PROGRAMES OPTION IN THE CONTROL PANEL 
AND SELECT THE REPAIR/UNINSTALL THEN REPAIR OPTION FOR THE AFECTED APPLICATION(S).
