---
title: "FAQ: gMSA Troubleshooting for Nodinite"
description: Resolve common gMSA issues in Nodinite, including Test-ADServiceAccount failures, logon errors, password rotation checks, and certificate permission problems.
---

# :fa-wrench: 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][gMSA Accounts]. 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][Secret Management].

## "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][LogonAsAService].

## Test-ADServiceAccount returns False

The server cannot retrieve the managed password from Active Directory.

### Checklist

1. Verify the server computer account is in the configured security group.
2. Run `gpupdate /force` and restart if membership changed recently.
3. Confirm the KDS root key exists and is already effective; see [Create the KDS Root Key][KDS Root Key].
4. Verify replication between domain controllers.
5. Confirm the gMSA account is enabled.
6. Verify `PrincipalsAllowedToRetrieveManagedPassword` matches your security group.
7. Reinstall the gMSA account on the server and test again.

### PowerShell Checks

```powershell
$serverName = $env:COMPUTERNAME
Get-ADGroupMember -Identity "gmsaservergroup" | Where-Object { $_.Name -eq "$serverName$" }

Get-KdsRootKey
repadmin /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

Validate these common mistakes:

* Account format is `DOMAIN\gMSAName$` (with trailing `$`); in the Portal [Service Account Defaults][Step 2 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][LogonAsAService].
* Local administrator membership is present if the selected [Monitoring Agent][Monitoring Agents] requires it.
* The gMSA can read the private key of the secret-encryption certificate; see [Cannot access encrypted configuration files](#cannot-access-encrypted-configuration-files).

## Authentication failures after password rotation

gMSA password rotation is automatic in Active Directory. Services should continue without manual password changes.

### Quick Checks

* Verify server membership in `PrincipalsAllowedToRetrieveManagedPassword` group.
* Verify KDS root key exists and replicated.
* Run `gpupdate /force` and restart when group membership changed.
* Review Event Viewer for domain, KDS, or service logon errors.

## Cannot access encrypted configuration files

This usually indicates certificate permissions or certificate location issues.

### Verify Certificate State

1. Confirm certificate is in `Cert:\LocalMachine\My`.
2. Confirm certificate thumbprint matches configuration.
3. Confirm `HasPrivateKey` is `True`.
4. 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

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.

## :fa-hand-point-right: Next Steps

* :fa-right-left: [Migrate Traditional Account to gMSA][]  
* :fa-certificate: [Install Certificates for gMSA][]  
* :fa-key: [Secret Management][]  

## :fa-link-horizontal: Related Topics

* :fa-user-shield: [Configure Group Managed Service Accounts (gMSA)][gMSA Accounts]  
* :fa-user-plus: [How to set Logon as a Service right][LogonAsAService]  
* :fa-arrow-turn-up: [Windows Server Troubleshooting][Windows Overview]  
* :fa-triangle-exclamation: [Troubleshooting][]  

[Core Services]:{ndr}/Core%20Services/Overview.md
[gMSA Accounts]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/gMSA%20accounts.md
[IIS]:{ndr}/Logging%20and%20Monitoring/Windows%20Server/Features/IIS.md
[Install Certificates for gMSA]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Install%20Certificates%20for%20gMSA.md
[KDS Root Key]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/gMSA%20accounts.md#step-1-create-the-kds-root-key
[LogonAsAService]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Logon%20as%20a%20Service%20right.md
[Migrate Traditional Account to gMSA]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/gMSA/Migration%20from%20Traditional%20Account.md
[Monitoring Agents]:{ndr}/Administration/2.%20Monitor%20Management/2.%20Monitor%20Agents/Features/What%20is%20a%20Monitor%20Agent.md
[Secret Management]:{ndr}/Install%20and%20Update/Troubleshooting/Secret%20Managment.md
[Step 2 Service Account Defaults]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/02%20-%20Auth.md#service-account-defaults
[Troubleshooting]:{ndr}/Install%20and%20Update/Troubleshooting/Overview.md
[Windows Overview]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Overview.md