Services and scheduled tasks need an account to run as. A group managed service account (gMSA) is one whose password Windows sets and changes for you, so nobody knows it and nobody has to update it.
What improves
Services run under an account whose password nobody knows.
Why it matters
Service passwords set by hand are rarely changed and are a common way in.
How you do it
Create the KDS root key, a host group and the account, then install it on each server.
Every name, address and value in this guide is an example. Replace them with your own.
Why use one
| Ordinary service account | gMSA | |
|---|---|---|
| Password | Someone chooses it and writes it down | A long random password (240 bytes), known to nobody |
| Changes | When someone remembers, and the service breaks until it is updated | Every 30 days, with no downtime |
| Who can use it | Anyone who knows the password | Only the servers you name |
| Sign in at a keyboard | Possible | Not possible |
What you will have at the end
| Item | Example |
|---|---|
| Service account | CONTOSO\svc-app-gmsa$ in CON-Service-Accounts |
| Host group | SG-CON-App-Hosts, holding the servers allowed to use it |
| Used by | A Windows service or scheduled task on CON-APP-01 |
The route
- Create the KDS root key
Once per forest, then a 10-hour wait.
- Create the host group and the account
Name the servers that may use it.
- Prepare each server
Restart, then test.
- Use it
For a service, a scheduled task or the Cloud Sync agent.
Before this guide
You need a working domain and the OU structure from Design the OU structure.


