Restore default registry permissions


  1. Posts : 4
    Windows 7 Home Premium 64
       #1

    Restore default registry permissions


    Hi everybody, I'm not sure what messed up my registry keys but the administrators users can't open them anymore on my Windows 7 machine. So I'd like a method that reset them to the default settings.
    I found one way, which would be to set everything with Administrators full control, but that is hardly the default... what about SYSTEM and Users?
    I'm not sure I can try a repair installation, as I only have the Windows Vista to 7 upgrade dvd...

    Thanks
      My Computer


  2. Posts : 1,782
    Windows 7 Home Premium 64bit
       #2

    I found this on another site. It may or may not fix your problem


    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
    reset.cmd
    after entering this please press enter
    after a few minutes by processing subinacl, the permission will be reset
      My Computer


  3. Posts : 5,056
    Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
       #3

    You can run system restore to a point before all the trouble started, that'll restore the registry as well.

    As for permissions, you can change them for whichever key you want. Heres an illustration.

    Full Control Permission to Delete or Edit Restricted Windows Registry | Raymond.CC Blog

    A backup of various registry hives is stored in the folder C:\windows\system32\config\regback. Check the date, if it pre-dates the troubles, you can boot from the win7 dvd, navigate to the command prompt, then rename each of the hives in c:\windows\system32\config to .old or .bak extension, then copy the backed up hives in the regback folder to the config folder. Restart the computer.
      My Computer


  4. Posts : 4
    Windows 7 Home Premium 64
    Thread Starter
       #4

    mgorman87 said:
    First you need to download SubInACL ...
    Thanks but subinacl isn't available for windows 7, and I don't think all keys just need Administrators and System full permissions. There are other users too.

    Bill2 said:
    A backup of various registry hives is stored in the folder C:\windows\system32\config\regback
    No, the dates are too close.
      My Computer


  5. Posts : 1
    widows 7 64 bit
       #5

    Bill2 said:
    You can run system restore to a point before all the trouble started, that'll restore the registry as well.

    As for permissions, you can change them for whichever key you want. Heres an illustration.

    Full Control Permission to Delete or Edit Restricted Windows Registry | Raymond.CC Blog

    A backup of various registry hives is stored in the folder C:\windows\system32\config\regback. Check the date, if it pre-dates the troubles, you can boot from the win7 dvd, navigate to the command prompt, then rename each of the hives in c:\windows\system32\config to .old or .bak extension, then copy the backed up hives in the regback folder to the config folder. Restart the computer.
    Is there a way to make a bat file to do all of it automatically? and if so how ?

    Thanks for any help in advance ..yes I know that this is an old post but I am hopeful that someone could help me

    Gregpl
    Last edited by Gregpl; 27 Oct 2015 at 11:50. Reason: forgot part of message
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:22.
Find Us