Jump to content

How to disable SystemRestore in WINNT.SIF?


Recommended Posts

After messing around with nlite, I discovered some new commands that apparently can be added to XP's WINNT.SIF that can disable SystemRestore:

[systemRestore]

DisableSR=1

CreateFirstRunRp=0

However I can not get this to work for me. Upon installing my UWXP image, SystemRestore is still enabled. Can anybody here verify that this does indeed work? Is placement within the WINNT.SIF important?

Link to comment
Share on other sites


I do not know if it can be done threw the Winnt.sif, but you could use a VBS script to disable System Restore.

This script will disable System Restore on all the HD on the computer.

Save As SRDisableAllHD.vbs

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\default")
Set objItem = objWMIService.Get("SystemRestore")
errResults = objItem.Disable("")

This script will disable System Restore on only C:\ Drive or any other drive letter that you place here.

errResults = objItem.Disable("C:\")

Save As SRDisableSingeHD.vbs

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\default")
Set objItem = objWMIService.Get("SystemRestore")
errResults = objItem.Disable("C:\")

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...