Active Directory complexity rules still accept passwords like Summer2026! and CompanyName1, which are exactly what password sprays try first. Microsoft Entra Password Protection extends the Entra global and custom banned password lists to on-premises domain controllers through a password filter on each DC and a proxy service that fetches policy from the cloud. This guide is the deployment runbook: prerequisites, network and permissions, proxy and forest registration, DC agent rollout, the audit to enforce switch, building the custom list, the event IDs to watch, troubleshooting and clean removal. It is for AD and identity engineers in hybrid estates. Why banned lists matter and how they fit a wider password policy is covered in the Password Policy Guide (NIST-aligned) and the Password Spraying and Credential Stuffing Defence Guide; this page does not repeat them.
Key takeaways
- Two components, one tenant. A DC agent with a password filter DLL on every writable domain controller and at least two proxy servers per forest, all registered to the same Entra tenant.
- Domain controllers never talk to the internet. Only the proxy reaches Microsoft; DCs reach the proxy over RPC (port 135 plus a dynamic or static port) and share policy through SYSVOL.
- Start in Audit and test DC promotion and demotion. Audit logs what would be rejected while still accepting it, so you can tune the custom list and user messaging before enforcement.
- Only new passwords are checked. Existing passwords, including old service account passwords set to never expire, stay valid until they are next changed or reset.
- Partial coverage is a gap. Microsoft states the DC agent must be installed on all DCs in a domain; a password change that lands on an unprotected DC is not screened.
How the on-premises components work
Microsoft's architecture has three parts. The DC agent password filter DLL receives password change and set requests from the operating system and passes them to the local DC agent service, which validates them against the locally cached policy and returns pass or fail. The proxy service runs on any domain-joined member server, forwards policy download requests to Entra ID and holds no state. DC agents discover proxies through serviceConnectionPoint objects the proxies publish in AD, store downloaded policy in a dedicated folder at the root of the domain SYSVOL share, and pick up policies replicated by other DCs.
- No schema changes and no new ports on DCs: the software uses existing container and serviceConnectionPoint classes, and clear-text passwords never leave the domain controller.
- Policy refresh: the agent requests a policy at service start and then checks hourly, requesting a new one when its copy is older than an hour. Microsoft describes the product as not a real-time policy engine, so expect lag between a portal change and enforcement; custom list changes can take several hours.
- Fail open: if no policy is available on a DC, the password is accepted and an event (30001) is logged. Agents keep enforcing their cached policy if every proxy becomes unavailable.
- All filters must agree: AD DS accepts a password only if every installed password filter and the domain complexity policy accept it, so this adds to, rather than replaces, your existing policy.
Prerequisites and network requirements
| Item | Requirement (Microsoft Learn) |
|---|---|
| Licence | Entra ID P1 or P2 for users synced from AD DS (global and custom lists) |
| DC agent host | Windows Server 2012 R2 or later, including Server Core; .NET 4.7.2; Universal C Runtime |
| Proxy host | Domain-joined Windows Server 2012 R2 or later, including Server Core; .NET 4.7.2; Windows Firewall service running at install time; not the same machine as an Entra application proxy connector |
| SYSVOL | DFSR replication. The agent installs on FRS domains but Microsoft states it will not work properly there |
| Key Distribution Service | Enabled on all DCs running Windows Server 2012 and later (default start mode Manual, trigger start, is acceptable; Disabled is not) |
| DC to proxy | RPC endpoint mapper TCP 135 plus the proxy's RPC port (dynamic 49152 to 65535, or a static port you set) |
| Proxy logon right | "Access this computer from the network" granted to all domain controllers in all domains of the forest |
| Proxy outbound | TLS 1.2 to https://login.microsoftonline.com, https://enterpriseregistration.windows.net and https://autoupdate.msappproxy.net |
| Registration rights | Global Administrator for the first proxy registration in a tenant, Security Administrator afterwards; forest registration also needs forest root Enterprise Admin rights |
The proxy is mandatory even when DCs have direct internet access. Microsoft recommends at least two proxies per forest for redundancy, and each proxy serves only one forest. Read-only DCs do not process password changes, so the agent is not needed there and the proxy is not supported on an RODC. Microsoft also documents a decryption problem when DC agents on Windows Server 2012 or 2012 R2 share a domain with 2016 or later DCs: plan to retire those DCs or keep the versions unmixed.
Step by step: deploy in audit, then enforce
- Check the foundations. Confirm DFSR SYSVOL, that kdssvc starts (net start kdssvc) on each DC, and that every DC computer object is in the default Domain Controllers OU. Microsoft names a DC object outside that OU as the most common KDS failure cause.
- Set the portal to Audit first. In the Entra admin center, Entra ID, Authentication methods, Password protection (at least Authentication Administrator), set Enable password protection on Windows Server Active Directory to Yes and Mode to Audit. Audit is the default initial setting.
- Install two proxies. Run AzureADPasswordProtectionProxySetup.exe /quiet on each member server. Optionally fix the RPC port with Set-AzureADPasswordProtectionProxyConfiguration -StaticPort and restart the proxy service; DC agents do not need a restart for this. If outbound traffic goes through an HTTP proxy, configure AzureADPasswordProtectionProxy.exe.config in the service folder.
- Register the proxy and the forest. In 64-bit PowerShell, Register-AzureADPasswordProtectionProxy once per proxy and Register-AzureADPasswordProtectionForest once per forest. Interactive sign-in does not work on Server Core: use -AuthenticateUsingDeviceCode there. Run Test-AzureADPasswordProtectionProxyHealth -TestAll after each step. Registration adds credentials to the AADPasswordProtectionProxy service principal, so expect that event in Entra audit logs.
- Install the DC agent on a pilot DC. msiexec /i AzureADPasswordProtectionDCAgentSetup.msi /quiet /qn /norestart, then reboot in a maintenance window: password filter DLLs load only at restart. There is nothing else to configure. Run Test-AzureADPasswordProtectionDCAgentHealth -TestAll.
- Roll out to every writable DC quickly. Microsoft treats partial deployment as suitable for testing only. Track coverage with Get-AzureADPasswordProtectionDCAgent and compare it with your DC list.
- Run the audit period. Include at least one DC promotion and one demotion, as Microsoft recommends. The DSRM password set during promotion is screened, so a weak one fails with a password filter error.
- Review, tune, communicate. Read audit-only events and the summary report, adjust the custom list, and update helpdesk scripts: users see the standard "does not meet the length, complexity, or history requirements" message, which the product cannot change.
- Switch Mode to Enforced. Expect a lag while DCs download the new policy (event 30006 marks a new policy being enforced).
Rollback: set Mode back to Audit, or set Enable to No, which puts all DC agents into a quiescent mode that accepts every password and stops audit events. For a DC-local emergency, stopping the DC agent service makes the filter accept all passwords while logging 10012 and 10013 warnings. Removing the software needs an uninstall and reboot on each DC.
Building the custom banned password list
Microsoft's evaluation normalises the candidate password (lower case, then substitutions such as 0 to o, 1 to l, $ to s, @ to a), matches banned terms with an edit distance of one, checks substrings for the user's first and last name (terms of four characters or more), then scores: each banned term found counts one point and each remaining character counts one point, and the password needs at least five points. Microsoft's own example, C0ntos0Blank12, scores four and is rejected. Tenant name substring matching is not done on AD DS domain controllers.
| Include (sample categories) | Why | Avoid |
|---|---|---|
| Company, brand and product names, including abbreviations | Most common organisation-specific base words | Full words already caught by the global list |
| Office locations, local sports teams, local landmarks | Locally predictable bases that the global list will not know | Generic short strings that block many good passwords |
| Internal project and system names | Users reuse what they see daily | Anything sensitive you would not want admins to read |
| Months and weekdays in the local languages you use | Microsoft lists these explicitly as examples | Pasting breached password dumps: the list is capped at 1,000 terms |
Terms must be 4 to 16 characters and are case-insensitive. Set Enforce custom list to Yes (Authentication Policy Administrator is enough). The same global and custom lists apply to cloud and on-premises changes, so a term you add affects Entra password resets too. For checking against breach corpora as well, see Breached password checks; NIST SP 800-63B-4 section 3.1.1.2 requires verifiers to compare new passwords against a blocklist of commonly used, expected or compromised values.
Where identity fits: service accounts and admin-set passwords
Passwords set by an administrator (a "set" rather than a "change") are screened too, which catches weak passwords chosen for new service accounts and helpdesk resets. The weak point is history: Microsoft states that passwords stored before deployment are never validated and that accounts set to password never expires are exempt until changed. That is often where service accounts sit, and weak service account passwords are what Kerberoasting cracks offline. After enforcement, list accounts with old pwdLastSet values and PasswordNeverExpires, prioritise those with SPNs, and rotate them or move them to group managed service accounts. See How to Find Kerberoastable Accounts in Active Directory and Fix Them and the Service Account Security Guide.
Decision guidance
- Audit length: two to four weeks covers a normal password expiry cycle in most estates; extend it if you rarely see changes (for example, if you no longer force periodic rotation) and use helpdesk resets as your sample.
- Proxy placement: two member servers per forest in different sites is the documented minimum for redundancy. Large multi-site forests may add proxies near DC clusters; the agents round-robin and skip unresponsive proxies.
- Static or dynamic RPC port: use a static port where DCs and proxies sit across segmented networks, so firewall rules stay narrow.
- Multiple forests: each forest is registered and deployed independently and knows nothing about the others, regardless of trusts.
- Cloud-only estates: the on-premises components are not needed; the custom list applies to cloud passwords directly.
- Small estates: two proxies may feel heavy, but they can be existing domain-joined member servers; avoid placing them on DCs when you can, so DCs stay free of internet-reaching services.
Detection and measurement
Events land in Applications and Services Logs, Microsoft, AzureADPasswordProtection, DCAgent (Admin and Operational) on each DC and ProxyService on each proxy.
| Event ID | Meaning |
|---|---|
| 10014 / 10015 | Password change / set validated (passed) |
| 10016 / 10017 | Password change / set rejected (paired with a 300xx reason event) |
| 10024 / 10025 | Change / set would have failed but accepted because of Audit mode |
| 30002, 30004, 30026 | Change rejected by customer policy, Microsoft policy, or both combined |
| 30001 | Password accepted because no policy is available yet |
| 30006 | New policy being enforced |
| 30016 / 30017 / 30018 | Forest not registered / no proxy found / cannot reach proxy |
| 10012 / 10013 | Filter could not reach the DC agent service (passwords accepted) |
| 10023 | Directory Services Repair Mode: all changes approved |
Get-AzureADPasswordProtectionSummaryReport totals these per forest, domain or DC over remote PowerShell. Get-AzureADPasswordProtectionDCAgent shows HeartbeatUTC and PasswordPolicyDateUTC; stale values mean an agent is down or not getting policy. Metrics:
- Writable DCs with a current DC agent heartbeat (target: 100%).
- DCs whose PasswordPolicyDateUTC is within 24 hours.
- Audit-only failure rate (10024 plus 10025 against all validations) before enforcement, and rejection rate after.
- Count of 30001, 30017 and 30018 events per week (target: zero).
- Accounts with PasswordNeverExpires and a pwdLastSet older than deployment, trending down.
Common failure patterns
- Agent on some DCs only. Changes on the others are not screened and the summary report is incomplete.
- Left in Audit. The troubleshooting guidance lists Audit mode as one of the first reasons weak passwords are still accepted.
- Firewall rule removed or RPC blocked. The installer's port 135 rule is deleted or a third-party firewall drops it, and agents log 30018 while running on stale or no policy.
- DC objects moved out of the Domain Controllers OU. KDS fails and policy cannot be decrypted.
- Tenant mismatch. A proxy or forest registered to a test tenant; compare the AzureTenant property across agents and proxies.
- Incomplete removal. Uninstalling the agent while a proxy keeps running re-creates its serviceConnectionPoint. Microsoft's order is proxies, then DC agents (reboot), then SCP objects, the CN=Azure AD Password Protection container in the configuration partition, and the AzureADPasswordProtection SYSVOL folder.
Framework mapping
| Framework | Reference | How this applies |
|---|---|---|
| NIST SP 800-63B-4 | Section 3.1.1.2 password verifiers | Blocklist comparison when a password is established or changed |
| NIST SP 800-53 Rev 5 | IA-5, IA-5(1) | Password-based authenticator management, including screening against compromised and commonly used values |
| NIST CSF 2.0 | PR.AA-01, PR.AA-03 | Credentials managed and authenticated with screened passwords |
| MITRE ATT&CK | T1110.003 Password Spraying, T1110.001 Password Guessing | Removes the predictable passwords these techniques rely on |
| MITRE D3FEND | D3-SPP Strong Password Policy | The defensive technique this control implements |
Practitioner checklist
- Confirm DFSR SYSVOL, KDS service start and DC objects in the Domain Controllers OU.
- Deploy two proxies per forest with outbound TLS 1.2 to the three documented endpoints.
- Open TCP 135 and a static RPC port from every DC to the proxies; grant the network logon right.
- Register proxies and each forest to the production tenant and run the health tests.
- Install and reboot the DC agent on every writable DC; track heartbeat coverage.
- Run Audit through a full change cycle including a DC promotion and demotion.
- Build a custom list of up to 1,000 organisation terms (4 to 16 characters) and enable Enforce custom list.
- Switch to Enforced, brief the helpdesk, and alert on 30001, 30017, 30018 and stale heartbeats.
- Rotate old never-expiring service account passwords so they meet the new policy.
- Document rollback (Audit, Enable No) and the full removal order.
Standards and references
- Microsoft Learn: Plan and deploy on-premises Microsoft Entra Password Protection
- Microsoft Learn: Enforce on-premises Microsoft Entra Password Protection for AD DS
- Microsoft Learn: Enable on-premises Microsoft Entra Password Protection
- Microsoft Learn: Monitor on-premises Microsoft Entra Password Protection
- Microsoft Learn: Troubleshoot on-premises Microsoft Entra Password Protection
- Microsoft Learn: Eliminate bad passwords using Microsoft Entra Password Protection
- Microsoft Learn: Configure custom banned passwords
- NIST: SP 800-63B-4 Digital Identity Guidelines, Authentication and Authenticator Management
Related NHI Mgmt Group resources: Password Policy Guide (NIST-aligned) · Password Spraying and Credential Stuffing Defence Guide · NIST SP 800-63B-4 Authenticator Assurance Levels Guide · DSRM Account Security