Kennwortsicherungsverzeichnis konfigurieren: Registrierungswert BackupDirectoryComputerHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS

Richtlinien-ID
LAPS_BackupDirectory
Bereich
Computerkonfiguration
Unterstützt unter
Mindestens Microsoft Windows 10 oder höher
Quelle
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (Version 1.0)
Kategorie
System › LAPS

Registrierung

BackupDirectory

REG_DWORDComputer
Wert bei Aktivierung
Hängt vom Wert der Option ab
Element
Sicherungsverzeichnis
Optionen
EintragGespeicherter Wert
Deaktiviert0
Azure Active Directory1
Active Directory2
Mit .reg · CMD · PowerShell anwenden
.reg
Windows Registry Editor Version 5.00

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

; Optionen (nur eine verwenden)
; Deaktiviert
"BackupDirectory"=dword:00000000
; Azure Active Directory
"BackupDirectory"=dword:00000001
; Active Directory
"BackupDirectory"=dword:00000002
CMD
:: Optionen (nur eine verwenden)

:: Deaktiviert
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
# Gemeinsam: Schlüssel erstellen
New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Force | Out-Null

# Optionen (nur eine verwenden)
# Deaktiviert
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