Group Managed Service accounts and NETLOGON errors

%3CLINGO-SUB%20id%3D%22lingo-sub-1502406%22%20slang%3D%22en-US%22%3EGroup%20Managed%20Service%20accounts%20and%20NETLOGON%20errors%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1502406%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EWe%20have%20Group%20Managed%20Service%20accounts%20set%20up%20to%20run%20some%20services%20and%20scheduled%20tasks.%20They%20have%20permissions%20on%20various%20resources.%3C%2FP%3E%3CP%3Ei.e.%20one%20runs%20a%20scheduled%20task%20that%20runs%20a%20powershell%20script%20that%20runs%20the%20backups%20on%20an%20SQL%20server%20so%20has%20permissions%20on%20the%20SQL%20Server%20(Windows%20Authentication)%2C%20another%20that%20has%20security%20permissions%20on%20file%20server%20shares%20etc.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThey%20are%20all%20working%20perfectly%20fine...%20however.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20noted%20these%20errors%20on%20the%20domain%20controller%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EError%205723%3CBR%20%2F%3EThe%20session%20setup%20from%20computer%20'MSAAccount'%20failed%20because%20the%20security%20database%20does%20not%20contain%20a%20trust%20account%20'MSAAccount%24'%20referenced%20by%20the%20specified%20computer.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EError%205805%3CBR%20%2F%3EThe%20session%20setup%20from%20the%20computer%20MSAAccount%20failed%20to%20authenticate.%20The%20following%20error%20occurred%3A%3CBR%20%2F%3EAccess%20is%20denied.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20anyone%20advise%20what%20may%20be%20causing%20the%20errors%3F%20The%20accounts%20are%20working%20fine%20and%20can%20still%20access%20the%20resources%20they%20need.%20I%20thought%20they%20may%20be%20related%20to%20the%20domain%20trying%20to%20change%20the%20password%20for%20the%20accounts%20but%20am%20unsure.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%3C%2FP%3E%3CP%3Ej%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1502406%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EActive%20Directory%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1505870%22%20slang%3D%22en-US%22%3ERe%3A%20Group%20Managed%20Service%20accounts%20and%20NETLOGON%20errors%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1505870%22%20slang%3D%22en-US%22%3E%3CP%3ERIGHT!%20So%20ignore%20most%20of%20that!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20GMSA%20account%20in%20question%20is%20an%20old%20account%20that%20was%20uninstalled.%26nbsp%3B%20Seems%20something%20somewhere%20is%20still%20trying%20to%20use%20it.%26nbsp%3B%20I'm%20not%20sure%20how%20to%20go%20about%20finding%20the%20device%20using%20it%20though.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20run%20%3CSTRONG%3Eget-adserviceaccount%20-Identity%20MSAAccount%3C%2FSTRONG%3E%20it%20cannot%20find%20the%20object.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20thoughts%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Echeers%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi,

We have Group Managed Service accounts set up to run some services and scheduled tasks. They have permissions on various resources.

i.e. one runs a scheduled task that runs a powershell script that runs the backups on an SQL server so has permissions on the SQL Server (Windows Authentication), another that has security permissions on file server shares etc.

 

They are all working perfectly fine... however.

 

I have noted these errors on the domain controller:

 

Error 5723
The session setup from computer 'MSAAccount' failed because the security database does not contain a trust account 'MSAAccount$' referenced by the specified computer.

 

Error 5805
The session setup from the computer MSAAccount failed to authenticate. The following error occurred:
Access is denied.

 

Can anyone advise what may be causing the errors? The accounts are working fine and can still access the resources they need. I thought they may be related to the domain trying to change the password for the accounts but am unsure.

 

thanks

j

1 Reply
Highlighted

RIGHT! So ignore most of that!

 

The GMSA account in question is an old account that was uninstalled.  Seems something somewhere is still trying to use it.  I'm not sure how to go about finding the device using it though.

 

If I run get-adserviceaccount -Identity MSAAccount it cannot find the object.

 

Any thoughts?

 

cheers

 

EDIT:

I've run Uninstall-ADServiceAccount -Identity MSAAccount -ForceRemoveLocal on the servers I think may have used the GMSA.  They only returned an error saying it didn't exist in the directory. Still getting the error.