Set the DPAPI backup keys rotation period
Supported on: At least Windows Server 2016
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\DPAPI |
|---|
| Option | Value | Type | Allowed values |
|---|---|---|---|
| Specify the DPAPI backup keys rotation period in days. Set 0 to disable the DPAPI backup keys rotation. | DomainBackupKeyRotationPeriod | REG_DWORD | Number 0 to 18262 |
What it does (vendor 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.
Group Policy path: Computer Configuration > Administrative Templates > System > DPAPI > Set the DPAPI backup keys rotation period
PowerShell equivalent (generated from the template)
# Specify the DPAPI backup keys rotation period in days.
Set 0 to disable the DPAPI backup keys rotation.
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DPAPI' -Name 'DomainBackupKeyRotationPeriod' -Value <value> -PropertyType DWord -ForceGroup Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".