Identity

Entra Password Protection: a custom banned password list and deployment to on-premises AD

Last updated: October 3, 2026


Why password complexity isn’t enough

Active Directory’s classic password policy looks at length and character classes. Company2026! passes those rules easily: uppercase, lowercase, digits, a symbol, 12 characters. Yet company name + year + exclamation mark is one of the first patterns password spray attacks try.

Microsoft Entra Password Protection closes that gap: it evaluates a password not by its character classes but by the known weak terms it contains. It uses two lists:

  • Global banned password list: a continuously updated list that Microsoft compiles from Entra telemetry. Its contents aren’t published, and it can’t be turned off.
  • Custom banned password list: organization-specific terms that you add — the company name, products, cities, abbreviations.

For cloud users, this protection already works in Entra ID. This article covers two things: how to build the custom list, and how to apply the same policy to password changes in on-premises Active Directory — that is, how to deploy the DC Agent and the Proxy service.

Licensing

UsersGlobal listCustom list
Cloud-only usersEntra ID FreeEntra ID P1 or P2
Users synchronized from on-premises ADEntra ID P1 or P2Entra ID P1 or P2

In other words, on-premises AD integration, including the global list, requires P1. If your license bundle doesn’t include Entra ID P1, this is an additional cost. According to Learn, on-premises accounts that aren’t synchronized are also protected under the license that exists for synchronized users.

How a password is evaluated

To understand what to put on the list, you need to know the algorithm.

1. Normalization. The password is first converted to lowercase, then common character substitutions are reversed: 0→o, 1→l, $→s, @→a and so on. Bl@nK thus becomes blank.

2. Matching. The normalized password is searched in two ways:

  • Fuzzy matching: anything within one character of a banned term counts as a match. If abcdef is banned, abcdeg, abcdefg and abcde are caught too.
  • Substring matching: the user’s first and last name are searched for inside the password (for names of at least four characters). In the cloud, the tenant name is searched for as well; on on-premises DCs the tenant name is not searched for.

3. Scoring. Each banned term found is worth 1 point, and each character outside those terms is worth 1 point. A password needs at least 5 points to be accepted. Learn’s example:

PasswordCalculationScoreResult
C0ntos0Blank12[contoso] + [blank] + [1] + [2]4Rejected
ContoS0Bl@nkf9![contoso] + [blank] + [f] + [9] + [!]5Accepted

The important takeaway: a password that contains a banned term can still be accepted if the rest of it is strong enough. The goal isn’t to punish the user but to weed out predictable patterns.

⚠️ Cloud and on-premises validation aren’t exactly the same. Learn says so explicitly: the validations of the two services aren’t consistent. The algorithm can be updated in the cloud at any time; on-premises, a new algorithm only takes effect when the DC Agent is upgraded.

Create the custom banned password list

1. Decide what to add. The categories Learn recommends:

  • Brand and product names
  • Locations (e.g. the city where the headquarters is)
  • Company-specific internal terms and abbreviations
  • Month and day names in the organization’s local language — for an organization in Türkiye, ocak, nisan, pazartesi…

Don’t add variations; add the root term. Instead of Contoso!1, Contoso@London, ContosoWidget, add only contoso, london, widget. The algorithm catches weak variations and combinations by itself, so the list can stay short.

Limits:

  • At most 1,000 terms — it isn’t designed for uploading huge breached-password lists.
  • Each term between 4 and 16 characters.
  • Case-insensitive; it already accounts for common character substitutions.

2. Enter the list.

  1. Open Microsoft Entra admin center › Entra ID › Authentication methods › Password protection.
  2. Enforce custom list → Yes.
  3. In the Custom banned password list box, enter one term per line.
  4. For now, leave Enable password protection on Windows Server Active Directory set to No — we’ll set up the on-premises side below.
  5. Save.

Learn is inconsistent about the role this screen requires: the custom list tutorial says Authentication Policy Administrator, while the page describing the on-premises setting says Authentication Administrator. Following the principle of least privilege, try Authentication Policy Administrator first.

3. Test it. The change can take a few hours to propagate. Then, with a test user, go to https://myapps.microsoft.com › profile › Change password and try a password containing a term from the list. (SSPR must be configured in your tenant.)

On-premises architecture: DCs never reach the internet

The on-premises integration consists of three parts:

ComponentWhere it runsWhat it does
Proxy serviceAny domain-joined member server in the forestForwards the DCs’ policy download requests to Entra ID
DC Agent serviceEvery writable DCKeeps the policy in SYSVOL and decides whether a password passes or fails
Password filter DLLEvery writable DC (installed with the DC Agent)Passes the validation request from the operating system to the DC Agent

Learn lists the security-relevant aspects of the design as follows:

  • DCs never connect directly to the internet. Only the proxy talks to the outside.
  • No new network ports are opened on DCs; the DC Agent doesn’t listen on any network port.
  • No schema changes, and no accounts are created in the protected domains.
  • Clear-text passwords never leave the DC. Validation happens on the DC itself, against a previously downloaded policy.
  • Password hash synchronization (PHS) is not required.
  • It doesn’t replace the existing AD password policy; it complements it. A password has to pass both the AD policy and Password Protection.

How the policy travels: Each DC Agent checks the age of its policy at startup and then every hour; if it’s older than 1 hour, the agent finds a proxy through the serviceConnectionPoint objects the proxies publish in AD, requests the policy and writes it to the \\<domain>\sysvol\<domain FQDN>\AzureADPasswordProtection folder. From there the policy spreads to the other DCs through SYSVOL replication. No request goes to the internet during a password change — the cached policy is used.

Prerequisites

All machines (including DCs): Universal C Runtime.

DCs where the DC Agent will be installed:

  • Windows Server 2012 R2 or later (including Server Core)
  • .NET Framework 4.7.2
  • SYSVOL replication must be DFSR. Installing into a domain that uses FRS is possible, but in Learn’s words it “will not function properly”; migrate to DFSR first.
  • Key Distribution Service (KDS) must be enabled on all DCs. The default startup type, Manual (Trigger Start), is fine; it must not be Disabled.
  • At least 5 MB of free space on SYSVOL.

From the field: Learn gives the operating system requirement only as “2012 R2 or later” and doesn’t name newer versions. The DC Agent and the proxy also run without issues on Windows Server 2022 and 2025.

Proxy server:

  • Windows Server 2012 R2 or later, .NET Framework 4.7.2
  • A domain-joined member server. Installing it on a DC is recommended only for testing (that DC would then need internet access); it isn’t supported on an RODC.
  • Outbound access over TLS 1.2 to the endpoints in the table below.
  • The DCs must be granted the “Access this computer from the network” right on the proxy server (all DCs in all domains of the forest).
  • Don’t install it on the same server as the Microsoft Entra application proxy connector — the two products’ Agent Updater versions are incompatible. The same server as Entra Connect is fine, according to Learn.
EndpointPurpose
https://login.microsoftonline.comAuthentication
https://enterpriseregistration.windows.netPassword Protection functionality
https://autoupdate.msappproxy.netProxy auto-upgrade

Network: Every DC must be able to reach port 135 (RPC endpoint mapper) on the proxy and the proxy’s RPC server port. By default the port is picked from the dynamic range (49152–65535); for a firewall in between, you can define a static port (see below).

High availability: At least two proxies per forest. DC Agents rotate between proxies and skip one that doesn’t respond. The proxy is stateless and doesn’t cache the policy; a short proxy outage doesn’t stop password changes, because the DCs keep working with the last policy in SYSVOL.

Step-by-step deployment

Download the software from the Microsoft Download Center (link under Sources): AzureADPasswordProtectionProxySetup.exe and AzureADPasswordProtectionDCAgentSetup.msi. According to Learn, the installation and registration steps can be done in any order; the order below is the one in the documentation.

1. Install the proxy service

On the proxy server, with the Windows Firewall service running (if it’s stopped, the installation fails):

AzureADPasswordProtectionProxySetup.exe /quiet

No restart is needed. The installer itself adds an inbound rule for 135 and the proxy port to Windows Firewall; if you use a third-party firewall, open these ports manually.

Verify that the service is running — in 64-bit PowerShell:

Import-Module AzureADPasswordProtection
Get-Service AzureADPasswordProtectionProxy | fl

Status should be Running.

2. Register the proxy with Entra ID

The first proxy registration in the tenant requires Global Administrator; Security Administrator is enough for subsequent proxy registrations. Interactive registration with an MFA-enabled account:

Register-AzureADPasswordProtectionProxy -AccountUpn 'admin@yourtenant.onmicrosoft.com'

On Server Core no interactive window opens; register with a device code:

Register-AzureADPasswordProtectionProxy -AccountUpn 'admin@yourtenant.onmicrosoft.com' -AuthenticateUsingDeviceCode

⚠️ During registration you’ll see in the Entra audit logs that a credential was added to the AADPasswordProtectionProxy service principal. According to Learn this is expected behavior, so don’t let it raise an alarm.

Registration is done once for the lifetime of the service. Verify its health:

Test-AzureADPasswordProtectionProxyHealth -TestAll

3. Register the forest

Register-AzureADPasswordProtectionForest -AccountUpn 'admin@yourtenant.onmicrosoft.com'

This command needs permissions on both sides:

  • On the Entra side: Global Administrator or Security Administrator.
  • On the AD side: Learn’s deployment step asks for Enterprise Admin plus local administrator rights on the machine where the command runs; the example note on the same page asks for the signed-in user to be a Domain Admin in the root domain. If your signed-in account doesn’t have that permission, supply a separate AD credential with -ForestCredential.

It’s run once per forest; it doesn’t matter which proxy server you run it from. All proxies in a forest must be registered to the same tenant — registering to different tenants isn’t supported.

4. (Optional) Pin the proxy to a static port

If there’s a firewall between the DCs and the proxy, bind the proxy to a static port instead of opening the dynamic port range:

Set-AzureADPasswordProtectionProxyConfiguration -StaticPort <port>
Get-AzureADPasswordProtectionProxyConfiguration | fl

Restart the proxy service; there’s no need to restart the DC Agents. Port 135 and the port you chose must be open on the firewall. To go back to a dynamic port, use -StaticPort 0.

5. Install the DC Agent on all writable DCs

msiexec.exe /i AzureADPasswordProtectionDCAgentSetup.msi /quiet /qn /norestart

🔴 Installing and uninstalling the DC Agent requires a restart. Password filter DLLs are only loaded at startup. /norestart merely postpones this; protection isn’t active until the DC is restarted. If you remove /norestart, the installer restarts the DC itself. Restart the DCs during a maintenance window, one at a time.

After installation and the restart, there’s nothing else to configure on the DC Agent. You don’t need to install it on RODCs: an RODC already forwards password changes to a writable DC.

Why all of them? The client chooses which DC a password change lands on. A change that lands on a DC without the DC Agent is never validated. Learn accepts a partial deployment only for testing; if you’re going to test, it recommends installing on all DCs in an AD site. Installing only on the PDC isn’t enough either — the clear-text password doesn’t go to the PDC.

6. Enable on-premises protection in Audit mode in the portal

Entra admin center › Entra ID › Authentication methods › Password protection:

  1. Enable password protection on Windows Server Active Directory → Yes
  2. Mode → Audit
  3. Save

From Audit mode to Enforced mode

Audit is a “what would happen” mode: a weak password is accepted, but “this password would have been rejected” is written to the DC’s event log. That’s the only difference between the two modes. Audit exists only on-premises; in the cloud, Entra ID is always in enforced mode.

The transition Learn recommends:

  1. Start with Audit and watch the logs: how many passwords would have been rejected, and how much load would that create for users and the help desk?
  2. During Audit, perform at least one DC promotion and one demotion. DSRM and local administrator passwords are also subject to the policy; a weak DSRM password can stop a new DC’s promotion with error 0xa91. Seeing this in Audit is better than living through it in Enforced.
  3. When you’re ready, set Mode → Enforced and tighten monitoring during the transition.

In Enforced mode, a rejected user sees Windows’ classic message: “Unable to update the password. The value provided for the new password does not meet the length, complexity, or history requirements of the domain.” Because this message is determined on the client side, it can’t be customized — prepare your user communication accordingly.

Verification and monitoring

Event logs (DC): Event Viewer › Applications and Services Logs › Microsoft › AzureADPasswordProtection › DCAgent › Admin. The most important events:

EventMeaning
10014 / 10015Password change / reset passed
10016 / 10017Password change / reset rejected
30002 / 30003Rejection reason: your custom list
30004 / 30005Rejection reason: Microsoft’s global list
30026 / 30027Rejection reason: the combination of both lists
30021 / 30022Rejection reason: user name
10024 / 10025Would have been rejected in Audit mode, accepted
30006New policy being enforced (AuditOnly: 1 = Audit, 0 = Enforced)
30001No policy yet — password accepted
30016 / 30017 / 30018Forest not registered / no proxy found / can’t connect to proxy

The event pairs of the same password operation (e.g. 10017 + 30003) carry the same CorrelationId. The proxy’s own logs are under ProxyService › Admin.

Overview with PowerShell (on the proxy server):

Get-AzureADPasswordProtectionDCAgent
Get-AzureADPasswordProtectionProxy
Get-AzureADPasswordProtectionSummaryReport

The first two return HeartbeatUTC for each DC Agent and proxy; for DC Agents, PasswordPolicyDateUTC is returned as well. The values are updated roughly every hour. A stale heartbeat means the service isn’t running; a stale policy date means the DC Agent can’t download the policy. The summary report gives counts of passed / rejected / would-be-rejected-in-Audit passwords per forest, domain or DC; it requires PowerShell remoting and can strain a DC with large logs.

Health test on the DC side:

Test-AzureADPasswordProtectionDCAgentHealth -TestAll

This test checks in one go that the password filter is loaded, the forest registration, the use of DFSR and connectivity to the proxy.

Behaviors you should know about

  • Existing passwords aren’t validated. The policy is only applied at the moment of a password change or reset. Accounts flagged “Password never expires” keep their weak passwords unless you do something. To speed things up, you can force a one-time password expiry on specific accounts.
  • It can’t be scoped to a subset of users. The policy applies to all accounts on every DC where the DC Agent is installed.
  • No policy means the password is accepted. A DC that has never downloaded a policy accepts every password and logs 30001. After deployment, don’t assume protection is working until you see the first 30006.
  • SSPR and password writeback: A password change a hybrid user makes in the cloud is first validated in Entra ID against the global and custom lists; attempts rejected in the cloud show up in the Entra audit logs, not in the DC log. A password that reaches AD through writeback also goes through AD’s own password policies and filters.
  • Mixed DC operating systems: In an environment mixing Windows Server 2016+ and 2012/2012 R2 DCs, a KDS format incompatibility can cause random decryption failures and false “forest not registered” (30016) events. Learn’s fix: DCs on 2016 or later only.
  • Emergency: If the DC Agent causes problems, you can stop the service (passwords are accepted, 10012/10013 are logged) or set the on-premises setting to No in the portal. With No, DC Agents go into a quiescent mode: no validation and no audit events.
  • Upgrades: The proxy is upgraded automatically through the Agent Updater, but only for critical security fixes. The DC Agent isn’t upgraded automatically, and every upgrade requires a restart. When a new version is available, warning 30034 appears on the DC and 20002 on the proxy. Old and new versions can coexist in the same environment.

In short

  • Custom list: root terms (brand, product, city, abbreviation, month and day names in your local language), at most 1,000 terms, 4–16 characters. Don’t add variations.
  • Licensing: on-premises integration requires P1.
  • Architecture: DCs never reach the internet; only the proxy talks to the outside. At least two proxies per forest, on member servers.
  • Prerequisites: DFSR, KDS enabled, .NET 4.7.2, 135 + RPC port (or a static port).
  • Order: install the proxy → register the proxy (first registration needs Global Admin) → register the forest (Entra + Enterprise Admin) → install the DC Agent on all writable DCs and restart → Audit in the portal.
  • Transition: watch the logs in Audit, try a DC promotion/demotion, then Enforced.
  • Verify: 30006 (policy arrived), 10016/10017 (rejection), heartbeat and policy date up to date.

Sources

All Microsoft Learn pages were retrieved on 2026-10-01.

Related posts