View Single Post
Old 06-26-2006, 06:41 AM   #1 (permalink)
Kadath
Muffled
 
Kadath's Avatar
 
Location: Camazotz
Scripting a service to stop and start

I searched this forum and the programming forum, but couldn't find this -- apologies if a repeat, etc.

I need to script the shutdown and startup of two services in Windows Server 2K3 as part of a backup procedure. I'm looking through the MSKB right now, but it's hard to find exactly what you're looking for there unless you have an error code. The procedure will be as follows:

Shut down Service A.
Shut down Service B.
Backup a directory.
Start Service B.
Start Service A.
__________________
it's quiet in here
Kadath is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73