A Windows Service Works Under One Account but Fails With a gMSA
Before you begin
- Applies to:A service using a group managed service account on a domain-joined Windows Server 2025 member.
- Where to start:On the server that runs the service, open elevated PowerShell 7 or later with the ActiveDirectory module. Use Windows PowerShell if the module requires it. For graphical checks, use Desktop Experience or an approved Windows management workstation.
- What you need:Have the service and gMSA names ready. Coordinate changes with the directory and application owners.
Guide tools
Troubleshooting Steps
Identify the stage that fails
Start hereWhere to click
- Open Services β affected service Properties β Log On.
- In Event Viewer β Windows Logs β System, inspect Service Control Manager events.
What to look for Β· Record whether the service fails to log on or starts and then fails against a resource. Match the Service Control Manager error and application log by time.
Test password retrieval on the member host
Replace ExampleGmsa with the AD account name. A True result supports host readiness to use the account. It does not verify every service permission or dependency.
Test-ADServiceAccount -Identity 'ExampleGmsa'Resolve a failed account test
Ask the directory owner to verify the host is authorized to retrieve the managed password, that replication has converged, and that the gMSA exists and is installed where required. Confirm the member can reach a suitable domain controller. If group membership changed, follow the approved process to refresh the hostβs credentials.
Check rights and application dependencies
If the account test succeeds, verify the product supports gMSAs and uses the expected domain account name with a trailing dollar sign. Check effective Log on as a service and Deny log on as a service policy. If the service starts, check access to the specific share, database, or certificate key it needs.
Verify a start and the real workload
VerifyMake one approved change, start the service, and verify the dependent workload as well as its status. If rollback is needed, restore the recorded identity through the productβs supported process.
Decide What to Do Next
| Finding | Next action |
|---|---|
| Account test is False | Review password retrieval authorization and domain connectivity. |
| Account test is True but service logon fails | Check name format, product support, and effective logon policy. |
| Service starts but dependency fails | Check access to the exact downstream resource. |
References
Your feedback keeps these production procedures accurate and battle-tested.