Jump to content

System Restore, please help?


Recommended Posts


  • 1 year later...
I don't want to use nLite, and if somebody could tell me how to use this script in unatternded setup.

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\default")

Set objItem = objWMIService.Get("SystemRestore")
errResults = objItem.Disable("")
Link to comment
Share on other sites

Try a regtweak, we used to use the following before migrating to Local Group Policies. We apply retweaks using RunOnceEx:

[code][HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sr]
"Start"=dword:00000004
"ImagePath"=hex(2):5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
74,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,52,\
00,49,00,56,00,45,00,52,00,53,00,5c,00,73,00,72,00,2e,00,73,00,79,00,73,00,\
00,00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sr\Parameters]
"FirstRun"=dword:00000001[/code]

Regards
Link to comment
Share on other sites

You can disable it in the winnt.sif

By simply making an empty [SystemRestore] statement

[code][SystemRestore]

[GUIRunOnce]
command1 = "%SystemDrive%\D\BTS_DPs_finish.cmd"[/code]

You do NOT need the GUIRunOnce to disable System Restore (its just part of my example).
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...