Do I need to change the password for a scheduled task on Windows XP if I change it?
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.
Yes, after you change your user password it will break the scheduled task. You must either:
- Run it as
Local System
,Local Service
, orNetwork Service
- 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.
Simple method is changing the task's properties and save it, then Windows will ask for password and you can input the new one.