Using a Group Managed Service Account (gMSA) for a scheduled task

Posted by Trevor Sullivan on Server Fault See other posts from Server Fault or by Trevor Sullivan
Published on 2012-10-12T20:55:13Z Indexed on 2012/10/12 21:38 UTC
Read the original article Hit count: 200

Back in Windows Server 2008 R2, when stand-alone Managed Service Accounts (sMSA) were new, they could not be used to execute scheduled tasks. In Windows Server 2012 however, there is a new type of account called the Group Managed Service Account (gMSA). This type of account is supposedly capable of launching scheduled tasks in the task scheduler on clients & member servers inside of a Windows Server 2012 forest/domain functional level.

So far, I have:

  • Established a Windows Server 2012 forest/domain
  • Created a Group Managed Service Account (gMSA)
  • Installed the gMSA on a Windows Server 2012 member server

And currently I'm having trouble with:

  • Setting a scheduled task to use the gMSA

When I attempt to use a gMSA on a scheduled task, I get the error message that says "The object cannot be found" (paraphrased) message.

My question is: How do I configure a Scheduled Task to execute using a Group Managed Service Account (gMSA)?

© Server Fault or respective owner

Related posts about security

Related posts about windows-server-2012