Open in the explorer

Enable password backup for DSRM accounts

Activer la sauvegarde de mot de passe pour les comptes DSRM

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › LAPS FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › LAPS
Supported on
At least Microsoft Windows 10 or later FR: Au moins Microsoft Windows 10 ou version ultérieure
ADMX file
LAPS.admx
Internal name
LAPS/LAPS_ADBackupDSRMPassword

Explanation

When you enable this setting, the DSRM administrator account password will be managed and backed up to Active Directory.

Enabling this setting has no effect unless the managed device is a domain controller and password encryption is also enabled.

If this setting is enabled, the password for the DSRM administrator account on the domain controller will be backed up to Active Directory.

If this setting is disabled or not configured, the password for the DSRM administrator account on the domain controller will not be backed up to Active Directory.

See https://go.microsoft.com/fwlink/?linkid=2188435 for more information.

French text from Windows 11 26H2

Lorsque vous activez ce paramètre, le mot de passe du compte administrateur DSRM est géré et sauvegardé dans Active Directory.

L’activation de ce paramètre n’a aucun effet, sauf si l’appareil géré est un contrôleur de domaine et que le chiffrement de mot de passe est également activé.

Si ce paramètre est activé, le mot de passe du compte d’administrateur DSRM sur le contrôleur de domaine est sauvegardé sur Active Directory.

Si ce paramètre est désactivé ou s’il n’est pas configuré, le mot de passe du compte d’administrateur DSRM sur le contrôleur de domaine n’est pas sauvegardé dans Active Directory.

Pour plus d’informations, consultez https://go.microsoft.com/fwlink/?linkid=2188435.

Use cases

Backs up and rotates the DSRM (Directory Services Restore Mode) password of domain controllers, avoiding the classic DSRM password never changed since promotion. It only applies to domain controllers, requires password encryption, and is not supported by the CSP.

Microsoft source: Configure policy settings for Windows LAPS

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS
Value name
ADBackupDSRMPassword
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

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: LAPS/LAPS_ADBackupDSRMPassword
$k = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ADBackupDSRMPassword' -Value 1 -Type DWord

Disable

# Disable: LAPS/LAPS_ADBackupDSRMPassword
$k = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ADBackupDSRMPassword' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": LAPS/LAPS_ADBackupDSRMPassword
$k = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS'
Remove-ItemProperty -Path $k -Name 'ADBackupDSRMPassword' -ErrorAction SilentlyContinue

Availability

Windows 10

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

Windows Server

✓ 2025— 2022— 2016