Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Service Start-Up Recovery Option Question

Status
Not open for further replies.

joemadera

Technical User
Jun 27, 2006
14
US
Hello,

I have both Win2k and 2k3 servers I need to implement this on.

I need to put a script to execute when a service fails to start, only problem is that I am not sure of the syntax exactly.

I have tried making a .bat file that calls the script, tried calling the script directly, but nothing seems to work.
Under the Recovery tab for a service, there are several options if a service fails, one is to run a program.

I have tried under the --> Run Program option to put the path to both the script or the batch file that calls the script. i have tried with the path c:\service.vbs and c:\service.bat (service.bat is the .bat file that calls the script.)
I have also tried using -- > forcedos.exe and then in the command line parameters: wscript.exe service.vbs

Any help is greatly appreciated.

Thanks
 
Try the following including quotes:

"wscript.exe c:\path\service.vbs"


I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top