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 have setup a schedule as follows

Schtasks /Create /TN sftp /TR c:\temp\start.bat /sc DAILY /ST 06:00:00 /RU {user} /RP {password}

Now as the PC I am connected to is part of a domain and passwords change every 2 weeks, does that mean that the password assigned to the scheduled task needs to be changed or does it inherit the changed password?

The PC the task has been scheduled to run off is Windows XP.

share|improve this question
up vote 3 down vote accepted

Yes, after you change your user password it will break the scheduled task. You must either:

  1. Run it as Local System, Local Service, or Network Service
  2. Use a special user created who's password does not change.

For option 2, if you create a local user on the computer (not a domain user) it will not be required to change it's password like the domain user, however that user will not be able to access network resources. You may want to try running your task as NetworkService if you do need to access network resources, but you may need the help of IT so your computer has rights to access whatever network resource you are trying to use.

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.