Ouvrir dans l'explorateur

Set password rules level

Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.

Type
Utilisateur
Chemin GPO
Configuration utilisateur › Stratégies › Modèles d'administration › Microsoft Office 2016 › Paramètres de sécurité EN : User Configuration › Policies › Administrative Templates › Microsoft Office 2016 › Security Settings
Pris en charge sur
At least Windows Server 2008 R2 or Windows 7
Fichier ADMX
office16.admx
Nom interne
office16/L_SetPasswordRulesLevel

Explication

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.

Registre

HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\common\security\passwordcomplexity
Nom de la valeur
non défini dans l'ADMX

Valeurs d'activation / désactivation : non défini dans l'ADMX (voir les options ci-dessous).

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : 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 }
#
# Options possibles :
#   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

Désactiver

# Désactiver : office16/L_SetPasswordRulesLevel
# Aucune valeur n'est écrite à l'état « Désactivé » (rien de défini dans l'ADMX)

Revenir à « Non configuré »

# Revenir à « Non configuré » : office16/L_SetPasswordRulesLevel
$k = 'HKCU:\software\policies\microsoft\office\16.0\common\security\passwordcomplexity'
Remove-ItemProperty -Path $k -Name 'policylevel' -ErrorAction SilentlyContinue

Options (1)

LibelléContrôleValeur de registreType REGContraintes / détails
L_SetPasswordRulesLevelDropIDListe déroulanteenumpolicylevelREG_DWORD
Choix par défaut (interface) : n° 0
LibelléValeur
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) — modèles de novembre 2026

Modèles officiels téléchargés le 12 novembre 2026.