Can somebody give me a script advice/example of how to restart services?
I have to restart 17 services, but the first 4 services have to be in the right order and after the restart command is given to one of the services, the next one should be started when the previous one is finished.
I know I can restart a service by net command, and I can build a delay by for example a ping command that repeats for an x amount of times, but I never know in advance how long it is going to take for a service to restart.
Thanks, Kindest regards, Marcel
On our BES we have these scripts
Startup
Shutdown
If you put the net stop commands in a batch file in the order that the services need to be stopped and started they will be processed one after another. The first service will stop, then the second, etc. The second and subsequent services (net stop commands) won't be processed until the previous one completes.
make it scripted and ensure this runs everyday at early mornings.