Using a Group Managed Service Account (gMSA) for a Windows Scheduled Task
If you dislike having to manage “Service Account” passwords or your Service Account needs to be shared by multiple computers, switch to a Group Managed Service Account (gMSA) instead. Unfortunately due to GUI limitations gMSAs cannot be set in the GUI so follow this guide to using a Group Managed Service Account (gMSA) for a Windows Scheduled Task.