Reputation: 117
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?
Upvotes: 1
Views: 6340
Reputation: 304
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>
Upvotes: 5