jeudi 2 avril 2015

Windows Task Scheduler : Stop and Start services with dependencies

I'm using windows 2012 r2 server and I need to schedule a backup like this :



Step 1 : Stop application service (net stop ...)


Triggered when Step 1 is finished Step 2 : Launch file copy (simple batch script)


Triggered when Step 2 is finished Step 3 : Start Appliation service (net start ...)



My difficulties here is to find a way to trigger the task. When I put everything in a batch script the backup start before the service is fully stopped (1 or 2 min to stop)..


Any ideas ?


Aucun commentaire:

Enregistrer un commentaire