Language:EN
Let's talk
← Back to insightsInsights

How to configure Microsoft Entra Password Protection

Reading time: 3 min ·

Passwords remain one of the most widely used attack vectors in corporate environments. Weak or reused passwords compromise the identity infrastructure and expose the organisation to attacks such as brute force or credential stuffing.

Recommendation

What is Microsoft Entra Password Protection?

Microsoft Entra Password Protection is a feature built into Microsoft Entra ID that applies a dynamic list of banned passwords. It evaluates in real time whether a password is strong enough when it is created or changed.

Main features

  • Creation of a custom list of banned terms.
  • Support for hybrid environments (cloud and on-premises).
  • Logging of password validation events and compliance analysis.

Requirements for using Microsoft Entra Password Protection

To implement Microsoft Entra Password Protection correctly in on-premises environments, the following technical requirements must be met:

  • An active Microsoft Entra ID P1 or P2 subscription.
  • Domain controllers running Windows Server 2012 R2 or later.
  • The Password Protection proxy and agents installed on the DCs.
  • Outbound internet access from the proxy server to the Entra ID services.
  • Support for DFSR replication of SYSVOL.
  • The DC agent must not be installed on read-only domain controllers (RODC).
  • The proxy agent requires .NET Framework 4.7.2 or later.

Deployment architecture

  1. Microsoft Entra Password Protection proxy

    Acts as an intermediary between the domain controllers and Microsoft Entra ID. We recommend installing at least two instances on dedicated servers for high availability.

  2. Password Protection DC agent

    Installed on every domain controller, it evaluates passwords locally using the downloaded policies.

  3. Microsoft Entra ID portal

    The custom password policies are defined in the portal, where audit or enforce mode is also enabled.

    Architecture

How to configure Microsoft Entra Password Protection

📌 Note: this procedure assumes the servers have direct internet access. If an intermediate proxy is used or the servers' internet access is restricted, see the official Microsoft documentation.

Step 1: Install the proxy and the DC agent

Step 2: Register and verify the service


 Import-Module AzureADPasswordProtection
 Get-Service AzureADPasswordProtectionProxy | fl
 Register-AzureADPasswordProtectionProxy -AccountUpn 'admin@tu-dominio.onmicrosoft.com'
 Test-AzureADPasswordProtectionProxyHealth -TestAll
 Register-AzureADPasswordProtectionForest -AccountUpn 'admin@tu-dominio.onmicrosoft.com'
 Test-AzureADPasswordProtectionProxyHealth -TestAll
 

If there are errors, see Microsoft's official troubleshooting guide.

Note: the proxy service updates itself automatically when it detects new versions. The DC agent must be updated manually by downloading the new version from the Microsoft Download Center.

Step 3: Configure the custom password policy

  • Sign in to the Microsoft Entra admin center as at least an Authentication Administrator.
  • Go to Authentication methods > Password protection.
  • Enable:
    • Enforce custom list → Yes.
    • Enable password protection on Windows Server Active Directory → Yes.
  • Define the custom list of banned words (one per line, up to 1,000 terms). Examples: company name, brands, locations, sports teams.
  • Use Audit mode before enforcing blocks, to assess the impact.
  • Save the changes.
Configuration

Step 4: Verify policy synchronisation

The agents write events to the following logs:

  • Applications and Services Logs\Microsoft\AzureADPasswordProtection\DCAgent\Admin
  • Applications and Services Logs\Microsoft\AzureADPasswordProtection\DCAgent\Operational
  • Applications and Services Logs\Microsoft\AzureADPasswordProtection\DCAgent\Trace

Monitoring password protection

You can use the cmdlet:

Get-AzureADPasswordProtectionSummaryReport

It produces a summary of blocked, allowed and audit-mode password activity.

Summary

Examples of common events

  • 10014 - Password changed successfully
  • 10015 - Password validated
  • 10017 - Password change failed
  • 10025 / 30009 - Password rejected, but accepted in Audit mode
  • 30006 - New policy applied
  • 30019 - Password protection disabled

About the author:
Kevin Maldonado, LinkedIn

Cybersecurity technician at Allbit Solutions, specialising in protecting Microsoft 365 environments and endpoints. He holds Microsoft certifications in identity and security administration (Identity and Access Administrator Associate, 2025; Azure Security Engineer Associate, 2024), among other credentials.

Shall we talk about your Microsoft environment?

Talk to a specialist →