Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 1 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
add comment

Your Answer

 
discard

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.