Vincent Vance
Vincent Vance

Reputation: 117

Run Scheduled Task in Windows Batch File?

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

Answers (1)

Badradish
Badradish

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

Related Questions