Open in the explorer

Set password rules level

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Microsoft Office 2016 › Security Settings
Supported on
At least Windows Server 2008 R2 or Windows 7
ADMX file
office16.admx
Internal name
office16/L_SetPasswordRulesLevel

Explanation

This policy setting allows you to set the password rules level.

If you enable this policy setting, you may specify a password rules level:

- No password checks: There are no complexity checks
- Local length check: Minimum length checks
- Local length and complexity checks: Minimum length checks plus 3 of 4 character groups checks.
- Local length, local complexity, and domain policy checks: All the previous checks plus Windows domain password rules enforced.

If you select "Local length and complexity checks" or "Local length, local complexity, and domain policy checks," then the password must contain characters from at least three of four character sets: lowercase a-z, uppercase A-Z, digits 0-9, or non-alphabetic characters. When this complexity is enforced, the minimum password length needs to be at least 6, but can be more depending on the value set in the "Set minimum password length" policy setting.

If you select "Local length, local complexity, and domain policy checks," then Microsoft Office will use the Windows domain policy as well as all the settings "Local length and complexity checks." This allows a custom password filter that is installed for Windows passwords to be used. If you are offline or a domain controller cannot be contacted, then the Windows password settings are not used, and only the "Local length and complexity checks" settings are used. If you don’t have a custom password filter, then "Local length and complexity checks" saves a trip across the network and would be the best choice.

If you disable or do not configure this policy setting, the behavior is the same as if this policy setting were enabled and "No password checks" selected.

Registry

HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\common\security\passwordcomplexity
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: office16/L_SetPasswordRulesLevel
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\security\passwordcomplexity'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
#
# Possible options:
#   No password checks = 0
#   Local length check = 1
#   Local length and complexity checks = 2
#   Local length, local complexity, and domain policy checks = 3
Set-ItemProperty -Path $k -Name 'policylevel' -Value 0 -Type DWord

Disable

# Disable: office16/L_SetPasswordRulesLevel
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": office16/L_SetPasswordRulesLevel
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\security\passwordcomplexity'
Remove-ItemProperty -Path $k -Name 'policylevel' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
L_SetPasswordRulesLevelDropIDDrop-down listenumpolicylevelREG_DWORD
Default choice (UI): #0
LabelValue
No password checksREG_DWORD = 0
Local length checkREG_DWORD = 1
Local length and complexity checksREG_DWORD = 2
Local length, local complexity, and domain policy checksREG_DWORD = 3

Application

Microsoft 365 Apps / Office (Microsoft) — November 2026 templates

Official templates downloaded on November 12, 2026.