Schedule Windows Task with Managed Service Account on DC

domain-controllermanaged-service-accountswindows-server-2012-r2

I have downloaded a script from TechNet and i am scheduling this with the MSA(Manage Service Account) on a DC. I get the error

Task Scheduler launched "{!@#!#!@#}" instance of task "\TasknamE" for user "MSA$" .

Task Scheduler failed to start "\TasknamE" task for user "domain\MSA$". Additional Data: Error Value: 2147943785.

The script works well with a domain account.

I have added a user to Logon as a Batch – Nogo
added user to Domain Admin group – Nogo

it'll be great if you could support this!!!!

Best Answer

I had the same issue. I turned out that I needed to change the default domain controller group policy to allow the gmsa account to logon as a service.