I'm creating a scheduled task to restart the same three services on different servers. I need the commands to add 10 second pauses between each stop/start.
ex:
sc \Server1 stop "Service1"
-- 10 second pause
sc \Server1 start "Service1"
-- 10 second pause
sc \Server1 stop "Service2"
-- 10 second pause
sc \Server1 start "Service2"
-- 10 second pause
sc \Server2 stop "Service1"
-- 10 second pause
sc \Server2 start "Service1"
-- 10 second pause
sc \Server2 stop "Service2"
-- 10 second pause
sc \Server2 start "Service2"