Skip to content

A Windows Service Works Under One Account but Fails With a gMSA

Admin
November 19, 2026
5 min read
Intermediate
πŸ’» Target OS: Windows Server 2025

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
Guide tools
0/0 Steps (0%)

Troubleshooting Steps

01

Identify the stage that fails

Start here

Where to click

  1. Open Services β†’ affected service Properties β†’ Log On.
  2. 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.

02

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.

Terminal window
Test-ADServiceAccount -Identity 'ExampleGmsa'
03

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.

04

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.

05

Verify a start and the real workload

Verify

Make 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

FindingNext action
Account test is FalseReview password retrieval authorization and domain connectivity.
Account test is True but service logon failsCheck name format, product support, and effective logon policy.
Service starts but dependency failsCheck access to the exact downstream resource.

References

Comments