Could someone please enlighten me as to how do the following.
From time to time I need to shut down an application that runs as a service on a large number of servers, the service that requires shutting down can take anything from 30-60 mins and following a successful shutdown I need to run a súpplíed batch file that will that will run updates against this application.
Where I am stuck is on how to get a batch file to pick up on sc query "state stopped" on each server and if the service has stopped for the batch file to kick in.
So I am assuming the simplified order of this is.
2.Run sc query
3.If state stopped then run supplied_update.bat
4.If not wait or check again in 30 mins etc
This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.