Configure minimum PIN length for startup
Configurer la longueur minimale du code PIN de démarrage
Explanation
This policy setting allows you to configure a minimum length for a Trusted Platform Module (TPM) startup PIN. This policy setting is applied when you turn on BitLocker. The startup PIN must have a minimum length of 4 digits and can have a maximum length of 20 digits.
If you enable this policy setting, you can require a minimum number of digits to be used when setting the startup PIN.
If you disable or do not configure this policy setting, users can configure a startup PIN of any length between 6 and 20 digits.
NOTE: If minimum PIN length is set below 6 digits, Windows will attempt to update the TPM 2.0 lockout period to be greater than the default when a PIN is changed. If successful, Windows will only reset the TPM lockout period back to default if the TPM is reset.
Ce paramètre de stratégie vous permet de configurer la longueur minimale pour le code PIN de démarrage d'un module de plateforme sécurisée (TPM). Ce paramètre de stratégie est appliqué lorsque vous activez BitLocker. Le code PIN de démarrage doit comporter entre 4 et 20 chiffres.
Si vous activez ce paramètre de stratégie, vous pouvez exiger le nombre minimal de chiffres à entrer pour définir le code PIN de démarrage.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, les utilisateurs peuvent définir un code PIN comportant entre 6 et 20 chiffres.
REMARQUE : si le code PIN comporte moins de 6 chiffres, Windows tentera de réinitialiser la période de verrouillage du TPM 2.0 de manière à ce qu'elle soit supérieure à la valeur par défaut lorsqu’un code PIN est modifié. Si l'opération réussit, Windows ne réinitialisera la période de verrouillage du TPM à la valeur par défaut que si le TPM est réinitialisé.
Use cases
Sets the minimum length of the BitLocker startup PIN, from 4 to 20 digits (4 by default). On laptops, a PIN of 6 digits or more is a good trade-off between convenience and resistance to brute force, which the TPM already slows through anti-hammering.
The policy cannot enforce PIN complexity, only its length.
Microsoft sources: BitLocker FAQ · BitLocker settings reference - Configuration Manager
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\FVE- 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: VolumeEncryption/MinimumPINLength_Name
$k = 'HKLM:\Software\Policies\Microsoft\FVE'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Minimum characters
Set-ItemProperty -Path $k -Name 'MinimumPIN' -Value 6 -Type DWord # between 4 and 20Disable
# Disable: VolumeEncryption/MinimumPINLength_Name
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": VolumeEncryption/MinimumPINLength_Name
$k = 'HKLM:\Software\Policies\Microsoft\FVE'
Remove-ItemProperty -Path $k -Name 'MinimumPIN' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Minimum characters:Nombre minimal de caractères :MinPINLength | Numeric boxdecimal | MinimumPIN | REG_DWORD | Required · Min: 4 · Max: 20 · Default (UI): 6 |