T
test
Greetings,
I want to maintain (stop/start) services on remote machine in orderly
fashion. The requirement is that the next service should only be
started/stopped when previous service has stopped/started completely.
I am using Windows xp. I am able to come up with something like below:
REM ** To stop services on remote machine **
start /wait sc \\server_name stop service_name1
start /wait sc \\server_name stop service_name2
REM ** To start services on remote machine **
start /wait sc \\server_name start service_name1
start /wait sc \\server_name start service_name2
Is it true that above command means that service_name2 will only
stop/
start when the first service i.e service_name1 gets stopped/started
completely?
Also, I have one more issue. Sometimes when the service is getting
stopped, it goes into a "intermediate" state as STOPPING. In this
case, I want to kill this service before sc command go on stopping
next services.
Can someone please help me here. I have searched enough and not able
to come to any conclusion.
TIA
I want to maintain (stop/start) services on remote machine in orderly
fashion. The requirement is that the next service should only be
started/stopped when previous service has stopped/started completely.
I am using Windows xp. I am able to come up with something like below:
REM ** To stop services on remote machine **
start /wait sc \\server_name stop service_name1
start /wait sc \\server_name stop service_name2
REM ** To start services on remote machine **
start /wait sc \\server_name start service_name1
start /wait sc \\server_name start service_name2
Is it true that above command means that service_name2 will only
stop/
start when the first service i.e service_name1 gets stopped/started
completely?
Also, I have one more issue. Sometimes when the service is getting
stopped, it goes into a "intermediate" state as STOPPING. In this
case, I want to kill this service before sc command go on stopping
next services.
Can someone please help me here. I have searched enough and not able
to come to any conclusion.
TIA