Here's the deal: the company's policy is to update Service Account passwords every 180 days. Problem is, I'm using those service accounts on about 20 servers, running various jobs - so every 180 days, I have to spend like 4 hours updating them all (if not for KeepassXC's autotype, would take me more like 2 days, gotta love RDP to DC half world away).
There has to be a better way, but what would it be?
We're talking about W2k12r2.
You should be able to accomplish this with a little PowerShell. This article provides a quick and easy method to update scheduled task credentials The code below was taken from https://nointerrupts.com/2018/10/18/update-scheduled-task-password-with-powershell/.
To run the update remotely across several machines save the below as Set-
ScheduledTaskCredentials.ps1
.Note: You will need WinRM set up on all the servers for this to work
Then you should be able to run it like this.