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
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