implodium Posted September 30, 2005 Share Posted September 30, 2005 @rockstarjeremy : Thanks for that code ! I really like to solve stuff via vbs, i don't have to use any3rd party application to automate stuff for me (yes i know about AutoIt and others,i'm just trying to use all the native support i can get). BTW: Do you know a good tutorial/faq about use of WMI under VBS ? There'sa lot of useful things that can be done (mainly reading system performancecounters) for various pieces of hardware. I've managed to rip vbs script that usesWMI to access a wireless NIC (read-only) and have re-wrote it to work asstandalone script. Link to comment Share on other sites More sharing options...
nmX.Memnoch Posted October 2, 2005 Share Posted October 2, 2005 (edited) I use this in my cmdlines.txt; Disable System Restore Service[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\srservice]"Start"=dword:00000004Of course that is in a .reg file that is called from cmdlines.txt,Be sure to add the following command to your CMDLINES.TXT (either before or after the .reg file import...doesn't matter)NET STOP "System Restore Service"That will stop the service. Just disabling the service will leave it running until the next reboot or until it's been manually stopped either in the Services MMC or with the command above. Edited October 2, 2005 by nmX.Memnoch Link to comment Share on other sites More sharing options...
cyberyeye Posted October 2, 2005 Share Posted October 2, 2005 winnt.sif method works fine and really easy to do:[systemRestore] DisableSR=1 CreateFirstRunRp=0And in my regfile (cmdlines.txt) I also add the regkey for stopping the SR service.That's it at least for me..... Link to comment Share on other sites More sharing options...
-.-PhanTom-.- Posted October 17, 2005 Share Posted October 17, 2005 Hmmm I added both the WINNT.INF entry and did the cmdlines.txt thing... but still sstem rstore is not disabled upon first boot....hmmmm Link to comment Share on other sites More sharing options...
cyberyeye Posted October 17, 2005 Share Posted October 17, 2005 Ok here's my method....CDXP--$OEM$----cmdlines.txt----cmdlines.reg---$OEM$-----------$1--------------install--------------RunOnceEx.cmd--I386----winnt.sif1. In cmdlines.reg i put ALL my tweak, including off course the "Stop System Restore Service":; Desactivation of System Restore Service[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\srservice]"Start"=dword:000000042. In cmdlines.txt i put this line:[COMMANDS]"REGEDIT /S cmdlines.reg"3. In my RunOnceEx.cmd I import a second time my reg tweak:REG ADD %KEY%\055 /VE /D "Configuration de Windows XP" /fREG ADD %KEY%\055 /V 1 /D "regedit /s %cdrom%\SETUP\SOFT\Regtweak.reg" /fObviously this regtweak.reg contains also the strop SR tweak:[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\srservice]"Start"=dword:000000044. Into winnt.sif put these line:[systemRestore] DisableSR=1 CreateFirstRunRp=0Here' a little part of my winnt.sif for example:[GuiUnattended]AdminPassword= EncryptedAdminPassword=No OEMSkipRegional=1 OEMSkipWelcome=1 TimeZone=105[userData] ComputerName="PC-BUREAU" FullName="Proprietaire" OrgName="/" ProductKey=your serial num here.[Display] BitsPerPel=16 Xresolution=1024 YResolution=768 Vrefresh=75[systemRestore] DisableSR=1 CreateFirstRunRp=0[TapiLocation] CountryCode=33 Dialing=Tone[RegionalSettings] InputLocale=040c:0000040c LanguageGroup=1 Language=0000040c UserLocale=0000040c[identification] JoinWorkgroup=WORKGROUP[Networking] InstallDefaultComponents=Yesthat's it, and its works fine ^^ 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