Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 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?

share|improve this question
up vote 0 down vote accepted

Here is the correct syntax:

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

Note the /RU and the /RP where /U and /P used to be. We are using RU for "Run as User".
Also note that we must specify the domain that we are logging onto.

This was answered by Aseem Kishore and Brian Gibson here: via

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.