Update password for scheduled task

I have a scheduled task that needs to run as a service account. The service account's password resets every 100 days, so I need to update the password for the scheduled task.

I cannot figure out how to do this. When I select "Change User or Group" in the scheduled tasks' properties I get no prompt to update the password.

This scheduled task will be deployed on Windows Server 2008 R2 and Windows 7.


Solution 1:

You will be prompted for the account password when you click the Ok button to confirm the task property changes. Click the "Change user or Group" button and retype your service account name and click Ok. Then click Ok on the task properties and you should be prompted to enter the service account's password. Note that you have to choose "Run whether user is logged on or not" in the Security Options section right in order to set the password. Otherwise it'll use the authentication token of the logged in user at the time the event fires.

Solution 2:

Check the box "Do not store password." Accept the changes to the task. Edit the task properties again and uncheck the box. You will be prompted for the new password.