My issue exists in another question here. I'm wondering whether it's possible to activate a scheduled task on one server from the command line of another server. I do not want to use psexec as it is known to be an enabled of malware and viruses. Does anyone know if this is possible?
1 Answer
You can use the the commands below to stop and start tasks remotely.
Stop:
schtasks /end /s <machine name> /U Username /P password /tn <task name>
Start:
schtasks /run /s <machine name> /U Username /P password /tn <task name>
-
Awesome. This worked. I also utilize the information here to have the batch wait for the scheduled task to complete: stackoverflow.com/questions/20261639/… Commented Jul 23, 2014 at 21:15