lukar Posted June 20, 2004 Share Posted June 20, 2004 I want to force windows not to install System Restore!Can I do this using winnt.sif ---> [components] section?What shoud I put there? Link to comment Share on other sites More sharing options...
bucketbuster Posted June 20, 2004 Share Posted June 20, 2004 Try nLite:http://nuhi.msfnhosting.com/http://www.msfn.org/board/index.php?showforum=89 Link to comment Share on other sites More sharing options...
tommy_vercetti Posted December 14, 2005 Share Posted December 14, 2005 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 More sharing options...
Shamwari Posted December 14, 2005 Share Posted December 14, 2005 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 More sharing options...
druiddk Posted December 14, 2005 Share Posted December 14, 2005 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 More sharing options...
Shamwari Posted December 14, 2005 Share Posted December 14, 2005 druiddk Thanks for the info, I will test this in our environment and report back. It just seems too easy to me to be true! Regards Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now