Resetting Registry and File Permissions

Discussion in 'Malware Removal FAQ' started by chaslang, Sep 17, 2008.

Thread Status:
Not open for further replies.
  1. chaslang

    chaslang MajorGeeks Admin - Master Malware Expert Staff Member

    Reset Registry and File Permissions


    WARNING: This process is only for Windows 2000; Windows Server 2003; Windows XP. Do not run if you have a different version of Windows.

    Important: This task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:

    How to back up and restore the registry in Windows


    1. Download and then install SubInACL (SubInACL.exe) file from Microsoft.
    2. Click Start, Run and enter notepad and click OK to bring up the Windows Notepad program.
    3. Copy and then paste the following text into Notepad.
      Code:
      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
      
    4. Save this Notepad file as Reset.cmd to your desktop. Be sure the Save as type is set to all files.
    5. Once you have save it properly, double-click the Reset.cmd file to run the script.
      • Note This script file may take a long time to run. Additionally, you have to run this script as an administrator.
    6. Now reboot your computer! You must do this before the above will take effect.
    The above is based on original info from http://support.microsoft.com/kb/949377
     
    Last edited: Jul 11, 2009
Thread Status:
Not open for further replies.

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds