July 11th, 2012, 05:07 PM
Batch file help
I'm trying to create a batch file that I can run to schedule tasks remotely on about 50 pcs on my domain. The reason I'm doing it this way is because I currently don't have "permission" to log on to the domain controller. I've gotten the batch file to work and run locally but when trying to get it to run on a remote PC i get the message "ERROR: The target system must be running xp or above." All of the machines are running XP SP3 so I don't understand. Here's the code I've got so far. Can anybody tell me what I'm doing wrong?
schtasks /create /tn "Reboot" /tr "shutdown /r /t 30 /c
'Per IT your system will preform a scheduled reboot. Save
any open work and go grab a cup of coffee." /sc WEEKLY /d
"MON, TUE, WED, THU, FRI" /st 05:29:00 /sd 01/01/2012 /ru
"System" /s "\\computername"
\\computername is a pseudo name... In my test runs I used the actual PC names.