Set password rules level
| Registry value | policylevel |
| Group Policy | Set password rules level |
| German version | Regelstufe für Kennwort festlegen |
| Intune settings catalog | Set password rules level (User) |
| Scope | User · HKCU |
| ADMX | office16.admx · L_SetPasswordRulesLevel |
Group Policy path
Registry
| Value | Data |
|---|---|
HKCU\Software\policies\microsoft\office\16.0\common\security\passwordcomplexity | |
| policylevel | 0 = No password checks · 1 = Local length check · 2 = Local length and complexity checks · 3 = Local length, local complexity, and domain policy checks |
Not configured = the value does not exist – the application default applies and users may change the setting.
PowerShell
Check the current value (read-only)
# --- Settings ---
$root = 'HKCU:' # other signed-in user (elevated): 'Registry::HKEY_USERS\<SID>'
$key = "$root\Software\policies\microsoft\office\16.0\common\security\passwordcomplexity"
foreach ($name in @('policylevel')) {
try { '{0} = {1}' -f $name, (Get-ItemPropertyValue -Path $key -Name $name -ErrorAction Stop) }
catch { '{0}: not configured' -f $name }
}Admin rights needed: HKCU\Software\Policies is read-only for standard users. An elevated session writes to the admin's own HKCU – to set it for another signed-in user, change $root to Registry::HKEY_USERS\<SID>.
Enable
# --- Settings ---
$root = 'HKCU:' # other signed-in user (elevated): 'Registry::HKEY_USERS\<SID>'
try {
$key = "$root\Software\policies\microsoft\office\16.0\common\security\passwordcomplexity"
if (-not (Test-Path $key)) { New-Item -Path $key -Force -ErrorAction Stop | Out-Null }
New-ItemProperty -Path $key -Name 'policylevel' -PropertyType DWord -Value 0 -Force -ErrorAction Stop | Out-Null # options: 0 = No password checks, 1 = Local length check, 2 = Local length and complexity checks, 3 = Local length, local complexity, and domain policy checks
'Done.'
}
catch { Write-Error "Failed: $($_.Exception.Message)" }Reset to Not configured
# --- Settings --- $root = 'HKCU:' # other signed-in user (elevated): 'Registry::HKEY_USERS\<SID>' $key = "$root\Software\policies\microsoft\office\16.0\common\security\passwordcomplexity" Remove-ItemProperty -Path $key -Name 'policylevel' -ErrorAction SilentlyContinue 'Policy values removed (Not configured).'
Intune (settings catalog)
Set password rules level (User)
Settings catalog → Add settings → search for the name above.
Intune Settings Catalog Viewer ↗
Alternative: custom profile (OMA-URI)
| OMA-URI | ./User/Vendor/MSFT/Policy/Config/office16v2~Policy~L_MicrosoftOfficeSystem~L_SecuritySettings/L_SetPasswordRulesLevel |
| Data type | String |
| Value | <enabled/> · <disabled/> |
This policy has options: add one <data id="…" value="…"/> per element after <enabled/>. The element IDs are in the ADMX file.
Cloud Policy
Cloud Policy (config.office.com → Customization → Policy Management) offers many user policies of the Microsoft 365 Apps – search for Set password rules level. It also applies to unmanaged devices and wins over GPO and Intune for the same setting.
Microsoft 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.
Same category: Microsoft Office 2016 › Security Settings
- Disable 3D Model File Formats Listmodel3dblockextlist
- Check OWC data source providerscheckowcsafeproviders
- Check Excel RTD serverscheckexcelcreatertd
- Check OLE objectscheckofficeole
- Check ActiveX objectscheckofficeactivex
- Set password hash format as ISO-compliantuseisopasswordverifier
- Encrypt document propertiesencryptdocprops
- Block OrgChartblockorgchart
- Block OLE Graphblockolegraph
- Turn off PDF encryption setting UIenableencryption
- Set minimum password lengthminlength
- Set password rules domain timeouttimeout
All policies in this category · All 945 policies of office16.admx