Enable password backup for DSRM accounts
Activer la sauvegarde de mot de passe pour les comptes DSRM
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.
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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert 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