Skip to main content

Posts

Showing posts from April, 2018

Change Password of Scheduled Tasks in PowerShell

How to change Tasks Scheduler password? How to set a new password for scheduled tasks in Windows Task Scheduler using a script? PowerShell is always a friend to cure laziness in an effective and efficient way. Of course, not all things can be done by automation. Sometimes manual method is more applicable and a secure method on some scenario. If you have a few servers that has scheduled tasks on it and need to change the password occasionally to comply with cyber security policies, changing tasks manually might be painful and chances are some tasks might be missed. Changing the password in Task Scheduler using PowerShell is an efficient method if the task has to be done repeatedly on a few servers. To change the password, the TaskName must be known since it’s an input or a required field for the command used to change the Task password. To get Tasks Name use the PowerShell code below: Get-ScheduleTask - TaskPath "\"   | Get-ScheduledTaskInfo