Microsoft Windows Server 2025

Windows Server 2025 maximum password age must be configured to 60 days or less

STIG ID: WN25-AC-000050 | SRG: SRG-OS-000076-GPOS-00044 | Severity: Medium | CCI: CCI-004066 | Vulnerability ID: V-278037

Description

The longer a password is in use, the greater the opportunity for someone to gain unauthorized knowledge of the passwords. Scheduled changing of passwords hinders the ability of unauthorized system users to crack passwords and gain access to a system.

Check

C-82567r1180815_chk

Verify the effective setting in Local Group Policy Editor.

Run gpedit.msc.

Navigate to Local Computer Policy >> Computer Configuration >> Windows Settings >> Security Settings >> Account Policies >> Password Policy.

If the value for the "Maximum password age" is greater than "60" days, this is a finding.

If the value is set to "0" (never expires), this is a finding.

For server core installations, run the following command:

Secedit /Export /Areas SecurityPolicy /CFG C:\Path\FileName.Txt

If "MaximumPasswordAge" is greater than "60" or equal to "0" in the file, this is a finding.

Fix

F-82472r1180816_fix

Configure the policy value for Computer Configuration >> Windows Settings >> Security Settings >> Account Policies >> Password Policy. Set "Maximum password age" to "60" days or less (excluding "0", which is unacceptable).