windowswindows-7wmiwmi-querywmic

How to Change Scheduler Task User Password


When I Create Scheduler Task with the Username and Password in Windows 7 using Task Scheduler GUI and trying to Change the Password of User using Following Command line, it give me error in CMD

SCHTASKS /Change /RP test /TN "rtest1"

Error:

The Parameter is incorrect


Solution

  • You can use the PowerShell script to update scheduled task credentials, which Bill Steward has written for this purpose (thanks a lot to him). This works also for tasks, which were created with the Windows task scheduler GUI and not from command line (or reimported or such). The webpage has all the explanations and example usage.

    Note that you may need to run set-executionpolicy unrestricted in the powershell shell first to allow execution of the script.