Configure password backup directory: registry value BackupDirectoryComputerHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS

Policy ID
LAPS_BackupDirectory
Scope
Computer Configuration
Supported on
At least Microsoft Windows 10 or later
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
System › LAPS

Registry

BackupDirectory

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Backup directory
Options
ItemStored value
Disabled0
Azure Active Directory1
Active Directory2
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS]

; Options (use only one)
; Disabled
"BackupDirectory"=dword:00000000
; Azure Active Directory
"BackupDirectory"=dword:00000001
; Active Directory
"BackupDirectory"=dword:00000002
CMD
:: Options (use only one)

:: Disabled
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "BackupDirectory" /t REG_DWORD /d 0 /f
:: Azure Active Directory
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "BackupDirectory" /t REG_DWORD /d 1 /f
:: Active Directory
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "BackupDirectory" /t REG_DWORD /d 2 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Force | Out-Null

# Options (use only one)
# Disabled
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'BackupDirectory' -PropertyType DWord -Value 0 -Force | Out-Null
# Azure Active Directory
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'BackupDirectory' -PropertyType DWord -Value 1 -Force | Out-Null
# Active Directory
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'BackupDirectory' -PropertyType DWord -Value 2 -Force | Out-Null