Quote:
Originally Posted by dragowulf
I couldn't get it to work. I kept getting a syntax error on line 1 char 5.
My batch...:
Code:
NET STOP AeLookupSvc
NET STOP BITS
NET STOP UxSms
NET STOP DPS
NET STOP WdiServiceHost
NET STOP WdiSystemHost
NET STOP TrkWks
NET STOP fdPHost
NET STOP FDResPub
NET STOP hideserv
NET STOP IKEEXT
NET STOP iphlpsvc
NET STOP PolicyAgent
NET STOP Spooler
NET STOP LanmanServer
NET STOP ShellHWDetection
NET STOP wcncsvc
NET STOP WSearch
NET STOP WinHttpAutoProxySvc
|
I cut and pasted your commands to a batch file, inserted a pause command between each line and it ran ok. Going a step further I downloaded the Windows server 2003 Resource kit (rtools.exe)
http://www.microsoft.com/downloads/d...displaylang=en from MickeySoft in order to get the sleep.exe utility which I added to the Windows/System32 folder. Using Win 7 Pro 64 btw.
Replacing the pause in the batch file with [sleep 5](tweakable) gives the system time to gracefully shut down the processes before issuing the next command. Works fine this way. Enjoy!