FAQ - gMSA Troubleshooting
Section titled “ FAQ - gMSA Troubleshooting”Use this troubleshooting guide to diagnose the most common gMSA issues when running Nodinite Core Services and agents under a Group Managed Service Account. Most problems fall in one of three places: Active Directory (the server can't retrieve the password), Windows rights on the server, or access to the secret-encryption certificate.
"Logon failure: the user has not been granted the requested logon type"
Section titled “"Logon failure: the user has not been granted the requested logon type"”The gMSA account does not have the local right "Log on as a service".
Add the account using How to set Logon as a Service right.
Test-ADServiceAccount returns False
Section titled “Test-ADServiceAccount returns False”The server cannot retrieve the managed password from Active Directory.
Checklist
Section titled “Checklist”- Verify the server computer account is in the configured security group.
- Run
gpupdate /forceand restart if membership changed recently. - Confirm the KDS root key exists and is already effective; see Create the KDS Root Key.
- Verify replication between domain controllers.
- Confirm the gMSA account is enabled.
- Verify
PrincipalsAllowedToRetrieveManagedPasswordmatches your security group. - Reinstall the gMSA account on the server and test again.
PowerShell Checks
Section titled “PowerShell Checks”$serverName = $env:COMPUTERNAMEGet-ADGroupMember -Identity "gmsaservergroup" | Where-Object { $_.Name -eq "$serverName$" }
Get-KdsRootKeyrepadmin /showrepl
Get-ADServiceAccount -Identity "testgmsa" -Properties Enabled, PrincipalsAllowedToRetrieveManagedPassword
Uninstall-ADServiceAccount -Identity "testgmsa"Install-ADServiceAccount -Identity "testgmsa"Test-ADServiceAccount -Identity "testgmsa"Service fails to start with gMSA account
Section titled “Service fails to start with gMSA account”Validate these common mistakes:
- Account format is
DOMAIN\gMSAName$(with trailing$); in the Portal Service Account Defaults, the account name ends with$. - Password fields are left empty in Services and IIS identity settings.
- "Log on as a service" right is present; see How to set Logon as a Service right.
- Local administrator membership is present if the selected Monitoring Agent requires it.
- The gMSA can read the private key of the secret-encryption certificate; see Cannot access encrypted configuration files.
Authentication failures after password rotation
Section titled “Authentication failures after password rotation”gMSA password rotation is automatic in Active Directory. Services should continue without manual password changes.
Quick Checks
Section titled “Quick Checks”- Verify server membership in
PrincipalsAllowedToRetrieveManagedPasswordgroup. - Verify KDS root key exists and replicated.
- Run
gpupdate /forceand restart when group membership changed. - Review Event Viewer for domain, KDS, or service logon errors.
Cannot access encrypted configuration files
Section titled “Cannot access encrypted configuration files”This usually indicates certificate permissions or certificate location issues.
Verify Certificate State
Section titled “Verify Certificate State”- Confirm certificate is in
Cert:\LocalMachine\My. - Confirm certificate thumbprint matches configuration.
- Confirm
HasPrivateKeyisTrue. - Confirm gMSA has read access to private key material.
The scripts in Install Certificates for gMSA find the private key in both the CNG and the CSP location and grant the Read permission.
Event Viewer Focus Areas
Section titled “Event Viewer Focus Areas”Review these logs:
- System log (Service Control Manager)
- Application log
- Security log
Look for entries mentioning logon failure, access denied, private key, or certificate errors.