en-US windows computer

Set the DPAPI backup keys rotation period

Verified with Windows 11 25H2 — updated on July 10, 2026

Windows 11 25H2

Supported on: At least Windows Server 2016

Path in the GPO console

Computer Configuration\Administrative Templates\System\DPAPI

Description

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.

Registry

HKLM Software\Policies\Microsoft\Windows\DPAPI

More options available

Options

Specify the DPAPI backup keys rotation period in days. Set 0 to disable the DPAPI backup keys rotation.
DomainBackupKeyRotationPeriod decimal - range 0-18262 - default: 90

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Set the DPAPI backup keys rotation period
; State: Enabled
; Supported on: At least Windows Server 2016

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DPAPI]
"DomainBackupKeyRotationPeriod"=dword:0000005a
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Set the DPAPI backup keys rotation period
# State: Enabled
# Supported on: At least Windows Server 2016

$path = 'HKLM:\Software\Policies\Microsoft\Windows\DPAPI'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'DomainBackupKeyRotationPeriod' -Value 90 -Type DWord

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview