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
The
TaskPath refers to location of the Task Name, see screen shot below:
To change a
password for a Task Name:
$Pswd =
"D-D-Pd-Oh-Oh-My-break@able+20+##xx$$pwdewvbn"
$Prp =
"DomainName\TaskScheduler_tor"
$Task_Name
= "My-Scheduled-Task-to-Shutdown-Whole-Network"
Set-ScheduledTask
-Password $Pswd -User $Prp -TaskName $Task_Name
Example
above is just for a single task, to change a few tasks; put all the task name
in a text file loop through it and read the file line by line and supply the
read data to the script.
Till next time. Cheers~!
http://quickbytesstuff.blogspot.sg/2014/09/how-to-recite-rosary.html
================================
Free Android Apps:
Click links below to find out more:
Heaven's Dew Fall Prayer app for Android :
Catholic Rosary Guide for Android:
Pray the Rosary every day, countless blessings will be showered upon your life if you recite the Rosary faithfully.
https://play.google.com/store/apps/details?id=com.myrosaryapp
https://play.google.com/store/apps/details?id=com.myrosaryapp
Comments
Post a Comment