How about this: https://stackoverflow.com/questions/33932926/how-to-edit-the-credentials-for-custom-scheduled-jobs-using-powershell-script
how to replace an account executing a schedule task by gmsa using powershell
Mohamed SAKHO
126
Reputation points
Good morning,
I have a hundred scheduled tasks which are executed by a so-called "service" account, but which is
I created a gMSA that I want to position on around fifty planned tasks. Manually when I modify the execution account individually it works very well.
So I wanted to know if there is a powershell expert that would have a script to mass override the execution count of my scheduled tasks?
I asked ChatGPT, but none of its scripts work. So I throw a bottle into the sea...
Thanks in advance.