Jan 232008

I had some problems with my registery permissions a while ago, I couldn’t delete any thing any more, so I was looking for something that could reset my registery permissions to defaults. Here is the solution that worked for me

If you want to reset the entire registry permissions to defaults follow these steps

Note:- Before Doing any changes to registry plesae take a backup and start your changes

First you need to download SubInACL from here

SubInACL is a command-line tool that enables administrators to obtain security information about files, registry keys, and services, and transfer this information from user to user, from local or global group to group, and from domain to domain.

Create a file with the name reset.cmd under C:\Program Files\Windows Resource Kits\Tools folder

Now you need to Edit the reset.cmd file and add the following lines

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

Save and exit your file

Now you need to open command prompt run the following command

cdcd “C:\Program Files\Windows Resource Kits\Tools”

after this press enter and enter the following command


after entering this please press enter

fter a few minutes by processing subinacl, the permission will be reset

Incoming search terms:

  40 Responses to “Reset the entire registry permissions to defaults”

  1. have same problem. cant install new program, im even thingking to reinstall my windows. I’ll try this out. thx

  2. I have been searching for weeks for an answer to this question, I have tried every thing, even tried to reset entries manually myself in the registry to no avail. When I tried to set file associations I kept getting “Rinndll32 has stopped working” error when I tried to go tho the file to set to open a peticular file type, PPS and PPT tp be precise. This till I follwed these directions, IT WORKED first time. The file associations where reset and I could reassociate the extentions to the file I wanted. GREAT JOB to the author… I saved the instructions to recommend it on other websites… Thanks a million…

  3. Thanks for posting this,

    it helped me out a lot :)

  4. Ty Ty TY .. I could sometimes repair the keys by reseting the permissions manually and sometimes that didnt even work. This seems to have solved the problem.

    TY TY TY

  5. Thanks for posting solution
    I have been searching for problem more then 10 day’s

  6. You are a life saver and my newest hero!

  7. Ok. every thing is going good, untill i have to put cd “C:\Program Files\Windows Resource Kits\Tools” in the command prompt. it says “The filename, directory name, or volume label syntax is incorrect.” Please help! thank you

  8. “cdcd is not recognized as an internal or external command, operable program or batch file…”


  9. Nevermind. The author made a typo I guess… supposed to be the command “cd”
    Got it working now! Thanks for this article!

  10. Okay, you’re my newest hero too. I had gotten my Vista registry so screwed up by manually editing permissions b/c of trouble installing things (like MS Office, go figure!) This took a while to run but worked like a charm! Marry me?

  11. I am running windows 7 and this is my problem…
    First I don’t know where to begin the editing and th eprogram will not open.

    It says invalid argument!

    subinacl/help to get the usage information
    SubInAcl/help syntax to understand SubInAcl syntax

    Can anyone help?

  12. it worked fine on windows 7 :) thnx a lot
    a side-note if your pc doesnt let you install the program, install it on another pc and just copy subinacl.exe, off course cd the directory that the exe is at.

  13. I was trying to set up our local workgroup on the network and i guess accidently changed the permissions to make half the programs on my computer stop working. This will fix all the permissions for things like Office right?

  14. blah, I thought this was going to work but even this program can’t reset some permission, I get over 1000 failed attempts. I wonder what else I can do?

  15. “I am running windows 7 and this is my problem…
    First I don’t know where to begin the editing and th eprogram will not open.

    It says invalid argument!

    subinacl/help to get the usage information
    SubInAcl/help syntax to understand SubInAcl syntax

    Can anyone help?”

    Yes, you need a different command for 64 bit, which is probably your problem.
    The file is located in the x86 folder on Vista and 7 64.

    Use this instead:
    “cd C:/Program Files (x86)/Windows Resource Kits/Tools”
    Don’t type the quotes.

  16. Well, once again I’m screwed. My registry is screwed up so badly that I cannot open any exe files, so that download will do me no good :(

  17. If your unable to open exe files, means that your system is most likely infected by a virus/malware. You should boot in safe mode and launch a file association .bat fix.

  18. Hi there, I’ve recently got a new PC with Windows 7 Home 64 on there, and I noticed it had an “Administrator” User on it initially. I made my own account under “Darren” and managed to change it to administrator. However, I first checked out permissions errors because I play online games, and sometimes I take screenshots in games. If I’m in-game and I take a screenshot it’d usually automatically save to the game folder, but it never. So I used Search in the start menu, broadened my search to C:/ and I’ve found the recent screenshots, or some of them. I’ve noticed they’re in a different folder and inaccessible (I cannot open these as the icon isn’t a Windows Preview logo, it’s like a globe, as if I have to access the internet to see this) and I cannot delete the file as it comes up some error “Error 0×80004002: No such interface supported” and then I read that this might be a permissions problem. I’ve downloaded this file SubinACL and it’s installed fine, but I go to this tools folder.. How do I make a new File? I can only make a new folder when I go to “Create New”. Most drawn out explanation ever, I’m sorry. I hope someone can help.. Sorry for seeming like a newbie!

  19. I followed all the steps that you show up there with the exception of

    Now you need to open command prompt run the following command
    cdcd “C:\Program Files\Windows Resource Kits\Tools”
    after this press enter and enter the following command
    after entering this please press enter
    fter a few minutes by processing subinacl, the permission will be reset

    using the microsoft instructions below to try to install sp3

    I went back to windows updates but it seemed to hang up so restarted my puter. Came back to no sound, frozen icons, no windows installer, no system restore, no copy and paste between applications, no RPC Server Unavailable, no Internet Explorer, no Windows Media Player, no way to restart and services because I have access denied.

    So my question is if I enter at the command prompt
    cd “C:\Program Files\Windows Resource Kits\Tools”

    (a step not shown in the microsoft reference)

    and then enter reset.cmd

    will my services be restored?

    Or do it all over but include the step?

    cd “C:\Program Files\Windows Resource Kits\Tools”

    I followed these instructions:

    Download and then install the Subinacl.exe file. To do this, visit the following Microsoft Web site:

    Start Notepad.

    Copy and then paste the following text into Notepad.
    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
    subinacl /subdirectories %windir%\*.* /grant=administrators=f /grant=system=f
    secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose

    Save this Notepad file as Reset.cmd.

    Double-click the Reset.cmd file to run the script.


  20. how do you edit the “reset.cmd” file? because i’m not good at this please help me!!

  21. yeah … n reset cmd cant open -.-”

  22. wait … i dragged the “reset.cmd” file into the command prompt 0_0 “C:\Program Files\Windows Resource Kits\Tools” then i jus clicked n dragged … 0_0

  23. In windows7 when i try to open “Set File Associations . . .” an error says “Internet has stopped working . . .” and i cannot open it.

  24. We were dealing with a hand-me-down computer that wouldn’t save any changes or download anything all week. After the previous owner had ravishly deleted everything in sight in attempt to make it “clean” we had nothing to lose. After doing some research and guessing that resetting the registry might fix it, we followed these directions. It was a total success! The computer is now usable and ready to be filled. Thanks so much for this resource!

  25. Big Thank You was having issues with no sound from internet pages and installing audio programs that needed to write to drivers32 in the registry, tried all the usual then tried this now happily working:)

  26. i screwed up pretty badly, was going to change the default installation folder because I was running out of space on my main harddrive. Everything is fucket up and i cant launch any programs anymore because it says that it cant find the file :S
    cant even open the regedit or install any programs anymore
    any1 know what to do?
    should i reinstall windows?

  27. Yup fixed my problem!

    I had fussed for days trying to get the installation to work.

    I tried multiple installs after changing security settings for the c: drive, installing as administrator, restricted user, etc, etc, … Tried changing permission in the applicable registry entry that was objecting. Cheez, I was almost ready to reload xp and start again thinking that everything was so corrupted that I couldn’t recover.

    Thanks so much.

  28. this didnot reset all the permissions within the hive. I was hopeful, but it did not work. many of the keys, thoudands, refuded to be reset. This all started when my computer installed adobe acrobat reader x over adobe acrobat x professional. Now nothing will install or uninstall.

  29. Sorry, But i have to say that it didn’t worked for me …

    i have changes permissions for USBSTOR subkey in regedit in Windows 7 to deny for all users (even for administrators and power users) and now i have tried number of times and ur metod also but still the result is same.

    When i m accessing the key it says “Error preventing this key from being opened.”
    Details :Acces is denied.

    Can any one please help me …….

    Lot of thanks in advance……..

  30. I get many failed modifications. I’m on the third run, and each time a get more successes. Maybe in some occasions, this fix has to be run numerous times?

  31. Am running Win XP, SP3. In Explorer, every time I try to open .inf, .txt, .hlp, .log, .inf files I get an “access Denied” error message. These files have important info in them. Does anyone have a fix for this problem. THANKS

  32. Vista 64 SP2 did not recognize the ‘reset.cmd or “Reset.cmd’ command.

  33. thanks…
    it works…




    • Download the SUBinAcl Program From MS
      Install it to create the Directory that you will Navigate to W/ CMD

      Then To Create the reset.cmd File

      In Windows Explorer Go to >Tools > Folder Options
      Go tot the View Tab
      Move the Radio Button Down to “Show Hidden Files Folders 7 Drives”
      Un-Check the Box for “Hide Extensions For Know File Types”

      This Will Show you ALL Of the File Name
      R Click on the Reset.cmd.txt File that You Created w/ Notepad
      Chnge its name to reset.cmd
      You will get a confirmation Message

      Now Run CMD As Administrator
      Navigate To the C:Program Files (x86) Windows Resource Kits Tools
      Type reset.cmd
      You will Have to Wait a While for the Process to Finish

      Hope this helps


  35. I am trying to reset my registry for a Vista 64 bit so I tried the 64 bit Program File command prompt, but I don’t know how to “edit” the reset.cmd into the file because it says I need administrator permission even though I am the administrator. Help?

  36. The “subinacl.exe” tool does obviously not help in any case. I found another solution.

    I got an error with an adobe msi setup. “Could not open key ***”.

    With additional help of Process Monitor and regedit tool I found out the subkey ACLS of
    SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\F6EA17F6B92B77F40B024A3F89C71C46 where totally abesent. “ACESS DENIED”

    I could not do anything, not even open the key with regedit. Later I found hundred of similar destroyed sub keys.

    Ok, I found the solution myself. Again subinacl did not fix this. Here’s what I did:

    A) a take ownership
    1) Right click on a key a level above your problem sub keys, in my case “Components”, click “Permissions” (sorry for mistranslation)
    2) Click Add “” in my case “Thomas” and click “OK”
    3) Click “Extended” and go to the “owner” tab
    4) Select your Account Name and the checkbox replace owners of subcontainer
    5) Now the key is accessible for normal ACL actions

    B) repair / reset ACL’s, subinacl could also help from now on
    1) Close dialog and go one level up, in my case “S-1-5-18″ und right click on the key
    2) Click “Permissions”
    3) Go to first tab
    4) Activate second checkbox (inherit permissions to sub objects), click OK
    5) Thats it, now any subkey of your ‘master key’ is set to the same permissions as the master key

    Please note that these stepes require some expert knowledge and may damage you system. Be carefully and backup your system before.


  37. Lol thanks dude, works great even Windows 7 64 bit. Took time about 1 Hour and 30 minutes

  38. After I have done this, excactly as you said. But after it, I could not open a single program anymore. Fortunately I left my cmd open, and I could open regedit.exe with cmd. Then I just pressed edit-> permissions. And granted full permissions for everyone for every group, because now I did not had any. After that I could open programs again, but some still are buggy. The Windows Live Mail and Word both can’t open files. Also after I did this, the right mouse menu was emty exept for copy and paste. Any ideas what went wrong???

  39. cdcd “C:\Program Files\Windows Resource Kits\Tools”

    One too many “cd” at the start

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>