Open in the explorer

Set the DPAPI backup keys rotation period

Définir la période de rotation des clés de sauvegarde DPAPI

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › DPAPI FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › DPAPI
Supported on
At least Windows Server 2016 FR: Au minimum Windows Server 2016
ADMX file
DPAPI.admx
Internal name
DPAPI/DomainBackupKeyRotationPeriod

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.

French text from Windows 11 26H2

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 18262

Disable

# 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 SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / 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_PromptNumeric boxdecimalDomainBackupKeyRotationPeriodREG_DWORD
Min: 0 · Max: 18262 · Default (UI): 90

Availability

Windows 11

✓ 26H2✓ 25H2— 24H2— 23H2— 22H2— 21H2

Windows 10

— 22H2— 21H2— 21H1— 20H2— 2004— 1909— 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server

✓ 2025— 2022— 2016