Set the DPAPI backup keys rotation period
Définir la période de rotation des clés de sauvegarde DPAPI
Explanation
This policy setting specifies the DPAPI backup keys rotation period.
You can use this setting to override the default value of 90 days. Set 0 to disable the DPAPI backup keys rotation.
If you enable this policy setting, set the number of days that the system waits before generating a new DPAPI backup key.
If you disable or do not configure this policy setting, the default value of 90 days is used.
Ce paramètre de stratégie spécifie la période de rotation des clés de sauvegarde DPAPI.
Vous pouvez utiliser ce paramètre pour remplacer la valeur par défaut de 90 jours. Définissez 0 pour désactiver la rotation des clés de sauvegarde DPAPI.
Si vous activez ce paramètre de stratégie, définissez le nombre de jours pendant lesquels le système attend avant de générer une nouvelle clé de sauvegarde DPAPI.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, la valeur par défaut de 90 jours est utilisée.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DPAPI- 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: DPAPI/DomainBackupKeyRotationPeriod
$k = 'HKLM:\Software\Policies\Microsoft\Windows\DPAPI'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Specify the DPAPI backup keys rotation period in days. Set 0 to disable the DPAPI backup keys rotation.
Set-ItemProperty -Path $k -Name 'DomainBackupKeyRotationPeriod' -Value 90 -Type DWord # between 0 and 18262Disable
# Disable: DPAPI/DomainBackupKeyRotationPeriod
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": DPAPI/DomainBackupKeyRotationPeriod
$k = 'HKLM:\Software\Policies\Microsoft\Windows\DPAPI'
Remove-ItemProperty -Path $k -Name 'DomainBackupKeyRotationPeriod' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Specify the DPAPI backup keys rotation period in days. Set 0 to disable the DPAPI backup keys rotation.Spécifiez la période de rotation en jours des clés de sauvegarde DPAPI. Définissez zéro pour désactiver la rotation des clés de sauvegarde DPAPI.DPAPI_DomainBackupKeyRotationPeriod_Prompt | Numeric boxdecimal | DomainBackupKeyRotationPeriod | REG_DWORD | Min: 0 · Max: 18262 · Default (UI): 90 |