Unable to remotely schedule tasks from the command line

Posted by Eptin on Super User See other posts from Super User or by Eptin
Published on 2012-11-22T02:09:09Z Indexed on 2012/11/28 23:06 UTC
Read the original article Hit count: 257

I'm on a Windows 7 machine, attempting to use the command line to schedule a task on another Windows 7 machine in my company's network. I have administrative-level credentials for both computers. With help from http://msdn.microsoft.com/en-us/library/windows/desktop/bb736357.aspx I have created this line to run on the command prompt:

schtasks /Create /S machinename /U username /P password /SC ONCE /TN Test1 /TR C:\Windows\System32\calc.exe /ST 16:30

Whenever I launch that, I get the following error:

ERROR: User credentials are not allowed on the local machine.

How can I fix this?

© Super User or respective owner

Related posts about command-line

Related posts about remote-access