What is the error message you are getting? Also what OS are the DC's running?
Can't create gMSA account after sync quit working
$ListOWKO.otherwellKnownObjects
B:32:1EB93889E40C45DF9F0C64D23BBB6237:CN=Managed Service Accounts\0ADEL:e5f8637
e-7e61-4ece-967a-58418f7f54c9,CN=Deleted Objects,DC=TRI,DC=local
5 answers
Sort by: Most helpful
-
-
Bill 1 Reputation point
2022-07-19T19:40:59.777+00:00 When running Microsoft Azure Active Directory Connect Provisioning.
Agent. Sync has been working for 2 years and started failing about 3 weeks ago.
2012r2 and 2012
Error while creating group managed service account (gMSA). Error: there is no such object on the server.
Both domain and forest levels are 2012. no errors in AzureADConnect event log
No errors in application filter "Directory Synchronization" event logs
Thanks for your reply!
Thanks
-
Gary Reynolds 9,406 Reputation points
2022-07-20T09:55:19.59+00:00 Hi @Bill
From the output of the otherWellKnownObjects, the CN=Managed Service Accounts container has been deleted. You should probably try and restore the container first , you can use this article to restore the container - https://nettools.net/how-to-restore-deleted-ad-objects/
Gary.
-
Bill 1 Reputation point
2022-08-03T21:25:12.437+00:00 Sorry, broke my left foot. I'll attempt suggestions tomorrow morning when I'm onsite. I do appreciate the response and help offered!
Thanks
-
Bill 1 Reputation point
2022-08-15T18:29:07.213+00:00 So I was able to finally fix issue.
AD recycle bin was not enabled so I re-ran adprep to recreate missing objects. "Managed Services Accounts" and "otherWellKnowObjects" "B:32:1E(etc)
created KDS key etc.
Using AD powershell: New-ADServiceAccount -Name gMSA365 -Path "CN = Managed Service Accounts, DC=something, DC=local" -DNSHostName domain-controller01.something.local
I now have a gMSA365 "msDS-GroupManagedServiceAccount" object in my "Managed Services Accounts" container.
Thanks everyone!