Change the values named YOURUSERNAME to be the Windows user account that you are logged in with.
Copy and paste the following contents into reset.cmd (or download it from this location on my file server and rename it from to reset.cmd).
In the cmd prompt, type notepad reset.cmd and click yes to open Notepad.exe and create a new text file named reset.cmd.
If you are running an OS other than Windows Vista, go to the Start menu, choose Run, type cmd and click OK.
If you are running Windows Vista, click on the Start menu, choose All Programs, then Accessories, then right-click on the item named Command Prompt and choose Run as administrator.
By default it will install to c:\Program Files\Windows Resource Kits\Tools.
Download the SubInACL tool and install it.
Run SubInACL (SubInACL.exe) with Batch file to reset registry permission.