Creating a single computer Managed Service Account (MSA) for scheduled tasks RRS feed

  • Question

  • I have managed to figure out the steps for creating the MSA. And I have used Test-ADseviceAccount and Get-scheduledtask to make sure all the pieces are configured. However, when I use the command shown below to make the service account the user, it automatically switches the task from "Run whether user is logged on or not" to "Run only when user is logged on". The latter makes no sense because you can't logon with an MSA. I can't go in to the scheduled task and change it manually because that requires a password that I don't have (because it is an MSA) and I can't find a powershell command that will let me set it back to the correct setting.

    Set-ScheduledTask -TaskPath  '\MyTasks\' -TaskName 'FindComputers' -User 'MyServiceAcnt1$'

    Thursday, February 13, 2020 7:30 PM

All replies