Delegated Managed Service Accounts overview in Windows Server 2025 (original) (raw)

A new account type known as delegated Managed Service Account (dMSA) is introduced in Windows Server 2025 that allows migration from a traditional service account to a machine account with managed and fully randomized keys, while disabling original service account passwords. Authentication for dMSA is linked to the device identity, which means that only specified machine identities mapped in Active Directory (AD) can access the account. Using dMSA helps to prevent harvesting credentials using a compromised account (kerberoasting), which is a common issue with traditional service accounts.

dMSA and gMSA comparison

dMSAs and gMSAs are two types of managed service accounts that are used to run services and applications in Windows Server. A dMSA is managed by an administrator and is used to run a service or application on a specific server. A gMSA is managed by AD and is used to run a service or application on multiple servers. Both offer improved security and simplified password management. dMSA differs by:

Functionality of dMSA

dMSA allows users to create them as a standalone account, or to replace an existing standard service account. When a dMSA supersedes an existing account, authentication to that existing account using its password is blocked. The request is redirected to the Local Security Authority (LSA) to authenticate using dMSA, which has access to everything the previous account could access in AD.

During migration, dMSA automatically learns the devices on which the service account to be used which is then used to move from all existing service accounts.

dMSA uses a randomized secret (derived from the machine account credential) that is held by the Domain Controller (DC) to encrypt tickets. The secret can be further protected by enabling CG. While the secrets used by dMSA are updated periodically on an epoch like a gMSA, the key difference is that dMSA's secret can't be retrieved or found anywhere other than on the DC.

Migration flow for dMSA

A quick concept of the migration flow process for a dMSA involves the following steps:

  1. The CG policy can be configured to protect the machines identity.
  2. An administrator starts and completes migration of the service account.
  3. The service account refreshes the Ticket Granting Server (TGT).
  4. The service account adds the machine identity to allow principles.
  5. The original service account becomes disabled.

Take note of the following when migrating dMSAs:

Warning

If you're going to migrate to a dMSA, all machines using the service account need to be updated to support dMSA. If this isn't true, machines that don't support dMSA fails authentication with the existing service account once the account becomes disabled during migration.

Account attributes for dMSA

This section describes how the attributes for dMSA changes in the AD schema. These attributes can be viewed using the Active Directory Users and Computers snap-in or running ADSI Edit on the DC.

Note

The numerical attributes set for the account indicate:

Running Start-ADServiceAccountMigration performs the following changes:

Running Complete-ADServiceAccountMigration performs the following changes:

dMSA realms

Realms serve as logical groupings that define authentication boundaries, commonly used when integrating different versions of AD across domains or forests. They're especially important in mixed domain environments where some domains may not fully support all features of dMSA. By specifying realms, dMSA can ensure proper communication and authentication flow between domains.

Administrators can use realms to specify which domains or directory components can authenticate and access the dMSA account. This ensures that even older child domains, which may not natively support dMSA features, can interact with the accounts while maintaining security boundaries. Realms facilitate seamless transitions and feature coexistence in mixed environments, ensuring compatibility between domains while maintaining strong security when enabled.

For example, if you have a primary domain called corp.contoso.com running on Windows Server 2025 and an older child domain called legacy.corp.contoso.com running Windows Server 2022, you can specify the realm as legacy.corp.contoso.com.

To edit this group policy setting for your environment, navigate to the following path:

Computer Configuration\Administrative Templates\System\Kerberos\Enable Delegated Managed Service Account logons

A screenshot of the "Enable Delegated Managed Service Account logons" group policy setting set to enabled.

See also

Setting up Delegated Managed Service Accounts