Help
amitshah2003uk
Member Posts: 39 ■■□□□□□□□□
I have created a simple batch file called move.bat which basically moves a accounts file to a temporary folder:
MOVE C:\Program Files\account\account.mdb C:\Program Files\account\temp
I wish to create a scheduled task which runs this batch file on 80 domain computers. Without individualy setting up a schedule task on each PC.
How can I go about doing this on the domain controller. Can a schedule be set by group policy.
Any thoughts
Thanks for you help guys
MOVE C:\Program Files\account\account.mdb C:\Program Files\account\temp
I wish to create a scheduled task which runs this batch file on 80 domain computers. Without individualy setting up a schedule task on each PC.
How can I go about doing this on the domain controller. Can a schedule be set by group policy.
Any thoughts
Thanks for you help guys
Comments
-
undomiel Member Posts: 2,818This thread has a number of ideas how to implement what you're looking for
http://techexams.net/forums/viewtopic.php?t=35293
You need to grab psexec from the sysinternal tools. Create a list of the computers you want to execute it on. Then you can use psexec to execute this command on the list of computers:
schtasks /create /sc monthly /st 11:30:00 /tn "Monthly Move" /tr "c:\jobs\move.bat"
Open up a command prompt and do schtasks /create /? to see more about how to set up the schedule as you like it.Jumping on the IT blogging band wagon -- http://www.jefferyland.com/