Skip to content
Sponsor
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

Password maximum age should be retrievable

AD-PWDPOL-02InfoActive DirectoryPassword policy

Part of Active Directory · Active Directory · Password policy · All checks

Run this check
Invoke-Maester -TestId AD-PWDPOL-02

Maximum password age is a critical security control that forces users to change their passwords periodically. This control is important because:

  • Limits exposure window: If a password is compromised, the attacker has a limited time to use it before the password expires
  • Reduces hash value: Old password hashes that may have been extracted from breaches become useless after password changes
  • Forces regular hygiene: Users must create new passwords regularly, reducing the chance of long-term password reuse across services

While NIST guidelines have shifted toward longer password ages (or no expiration) when combined with other controls like MFA, many compliance frameworks still require regular password changes. The 90-day recommendation balances security with usability.

Preventive

Configure the maximum password age to 90 days or less (or 0 for never expire if using modern authentication with MFA). For environments without comprehensive MFA deployment, regular password changes remain important.

To configure this setting:

  1. Open Group Policy Management
  2. Navigate to the Default Domain Policy
  3. Edit: Computer Configuration > Policies > Windows Settings > Security Settings > Account Policies > Password Policy
  4. Set Maximum password age to 90 days or less

This test retrieves the default domain password policy using Get-ADDefaultDomainPasswordPolicy and extracts the MaxPasswordAge value. The test reports:

  • Current maximum password age in days
  • Recommended maximum (90 days)
  • Whether the configuration meets security best practices
  • Test-MtAdPasswordHistoryCount - Checks password history enforcement
  • Test-MtAdPasswordMinLength - Checks minimum password length
  • Test-MtAdPasswordComplexityRequired - Checks if password complexity is enforced
Every attribute of this check
FieldValue
Test IDAD-PWDPOL-02
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeaturePassword policy
AreaAuthentication
Resource typeTenant
MITRE ATT&CKT1110.002 Password Cracking, T1078.002 Domain Accounts
PowerShell testTest-MtAdPasswordMaxAge
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:domainDNS.maxPwdAge:ReadProperty