Schedule a program on many machines at once
Top  Previous  Next


[Settings_Begin]
BatchSettings.Delimiter=TAB
BatchSettings.MarkerCol=4
[Settings_End]

[Machines_Begin]
\\SRV02
\\SRV09
\\WKS0001
\\WKS0020
\\WKS0021
[Machines_End]

[Batch_Begin]
DOS copy "c:\program files\myprogram\myfile.exe" %servername%\admin$   
DOS at %servername% 11:05 /interactive /every:m,t,w,th,f c:\winnt\myfile.exe
[Batch_End]

About the script

·[Machines] section: contains a list of servers / workstations to schedule the program on.  
·[Batch] section: the copy command uses the default hidden administrative share (which is mapped to %systemroot%, usually c:\winnt). The at command sets the program to run at 11:05 each weekday. Full path to the program must be specified.  

Use the DOSR command to instantly run commands / programs on remote machines.