beermat: (Default)
[personal profile] beermat

Any Windows gurus know how to knock up a bit of (.BAT or WSH script?) to
stop a service
delete a registry key
restart that service

(need to force Automatic Update to go look at the new patches on our LAN SUS server by stopping the Automatic Update service from running, deleting the "LastWaitTimeout" key & then restarting the Automatic Update service)

Date: 2003-10-16 02:01 am (UTC)
From: [identity profile] hazeii.livejournal.com
You can in fact use the 'net' command to stop and start services. For the registry tweaking, you just put the regedit changes into a little text file and feed it into regedit...I forget the details, it'd widely around the 'net though.

So, in a batch file, 'net stop' the service, feed the text file into regedit, then 'net start' the service.

Profile

beermat: (Default)
greg elkin

January 2023

S M T W T F S
123 4567
891011121314
15161718192021
22232425262728
293031    

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 28th, 2025 01:28 pm
Powered by Dreamwidth Studios