In a leap forward for enterprise security, Microsoft has introduced Delegated Managed Service Accounts (dMSAs) in Windows Server 2025, redefining how organizations manage service account credentials and defend against credential-based attacks.
Understanding dMSAs: The Technical Evolution
According to the report, Service accounts are specialized Active Directory (AD) accounts used to run services and applications.
Historically, these accounts have relied on static passwords, making them susceptible to threats like Kerberoasting and Pass-the-Hash attacks.

Managed Service Accounts (MSAs), first introduced in Windows Server 2008 R2, improved upon this by automating password rotation.
Group Managed Service Accounts (gMSAs), available since Windows Server 2012, extended these benefits to multi-server environments, but still stored passwords in AD, leaving room for credential harvesting if a machine was compromised.
Delegated Managed Service Accounts (dMSAs) take security a step further. Unlike traditional or gMSA accounts, dMSAs bind authentication to specific machine identities.
The authentication secrets are derived from the machine account credentials, encrypted by the Domain Controller (DC), and never stored locally, making them highly resistant to theft or compromise.
Key Security Enhancements
- Machine-Bound Authentication: Only devices explicitly mapped in AD can use a dMSA, drastically limiting the risk of lateral movement in the event of a breach.
- Automated Password Management: Passwords are managed and rotated automatically by AD, eliminating manual intervention and reducing the risk of misconfiguration.
- Credential Guard Integration: With Credential Guard (CG) enabled, stored keys are protected from theft, even if the server is compromised. This ensures that secrets remain inaccessible to attackers.
- Kerberoasting Mitigation: By preventing the retrieval of dMSA secrets from compromised machines, dMSAs effectively neutralize Kerberoasting attack that exploits service account tickets to extract credentials.
Migration and Operational Flow
Migrating to dMSAs is seamless. When a dMSA supersedes an existing service account, authentication using the old credentials is blocked, but access to all previously authorized resources is preserved.
The migration process is managed through PowerShell cmdlets such as Start-ADServiceAccountMigration and Complete-ADServiceAccountMigration, which updates relevant AD attributes and disable legacy accounts.
Example PowerShell Commands:
powershell# Enable dMSA logons via registry (Windows Server 2025 or Windows 11 24H2+)
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos\Parameters" `
-Name "DelegatedMSAEnabled" -Value 1 -Type DWORD
# Check for KDS root key before creating dMSA
Get-KdsRootKey
# If missing, add the KDS root key
Add-KdsRootKey –EffectiveTime ((get-date).addhours(-10))
Access Control and Attack Surface Reduction
dMSAs leverage granular AD permissions.
Administrators can delegate precise rights to service accounts, and inheritance settings ensure that only authorized entities have visibility and control.
For example, using the dsacls Command, permissions can be validated and enforced recursively:
shelldsacls "CN=Managed Service Accounts,DC=kingdom,DC=local" /G "KINGDOM\poc:GA" /T /I:S
Here, :GA grants Full Control, /T applies changes recursively, and /I:S Ensures inheritance to sub-tree objects.
By tightly controlling which machines and users can retrieve managed passwords (via the PrincipalAllowedToRetrieveManagedPassword attribute), organizations can further reduce the risk of persistence techniques and privilege escalation.
Implementation and Monitoring
To enable dMSA logons, organizations must activate the Group Policy setting:Computer Configuration\Administrative Templates\System\Kerberos\Enable Delegated Managed Service Account logons
This is supported on Windows Server 2025 and Windows 11 24H2 or later.
For auditing, monitoring write access and changes to service account objects is essential.

Enabling auditing in AD and reviewing logs helps detect unauthorized modifications and potential misuse.
Delegated Managed Service Accounts represent a major advancement in Active Directory security, automating credential management, binding authentication to machine identities, and integrating with advanced protections like Credential Guard.
As organizations modernize their infrastructure, migrating to dMSAs will be crucial for reducing the attack surface and simplifying identity management in Windows environments.
Find this Story Interesting! Follow us on LinkedIn and X to Get More Instant updates