Configure authorized password decryptors
Configurer les déchiffreurs de mot de passe autorisés
Explanation
Configure this setting to control the specific user or group who is authorized to decrypt encrypted passwords.
Configuring this setting has no effect unless password encryption has been enabled.
If this setting is enabled, encrypted passwords will be decryptable by the specified group.
If this setting is disabled or not configured, encrypted passwords will be decryptable by the Domain Admins group.
This setting must be configured with either a domain-qualified name of a group or user, or a SID in string format. Valid examples include:
contoso\LAPSAdmins
lapsadmins@contoso.com
S-1-5-21-2127521184-1604012920-1887927527-35197
Do not enclose the user\group name or SID in enclosing quotes or parentheses.
The specified user or group must be resolvable by the managed device, otherwise passwords will not be backed up.
NOTE: this setting is ignored when Directory Services Repair Mode (DSRM) account passwords are backed up on a domain controller. In that scenario, this setting always defaults to the Domain Admins group of the domain controller's domain.
See https://go.microsoft.com/fwlink/?linkid=2188435 for more information.
Configurez ce paramètre pour contrôler l’utilisateur ou le groupe spécifique autorisé à déchiffrer les mots de passe chiffrés.
La configuration de ce paramètre n’a aucun effet, sauf si le chiffrement de mot de passe a été activé.
Si ce paramètre est activé, les mots de passe chiffrés sont déchiffrables par le groupe spécifié.
Si ce paramètre est désactivé ou non configuré, les mots de passe chiffrés sont déchiffrables par le groupe Administrateurs du domaine.
Ce paramètre doit être configuré avec un nom qualifié de domaine d’un groupe ou d’un utilisateur, ou un SID au format de chaîne. Voici quelques exemples valides :
contoso\LAPSAdmins
lapsadmins@contoso.com
S-1-5-21-2127521184-1604012920-1887927527-35197
Ne mettez pas le nom du groupe d'utilisateurs ou le SID entre guillemets ou entre parenthèses.
L’utilisateur ou le groupe spécifié doit être résolu par l’appareil géré, sinon les mots de passe ne seront pas sauvegardés.
REMARQUE : ce paramètre est ignoré lorsque les mots de passe du compte DSRM (Directory Services Repair Mode) sont sauvegardés sur un contrôleur de domaine. Dans ce scénario, ce paramètre est toujours défini par défaut sur le groupe Administrateurs du domaine du domaine du contrôleur de domaine.
Voir « https://go.microsoft.com/fwlink/?linkid=2188435 » pour plus d'informations.
Use cases
Designates the user or group allowed to decrypt LAPS passwords stored in AD (Domain Admins by default). Use a dedicated tier-2 support group rather than widening Domain Admins.
An invalid principal name makes policy processing fail and the password is then not backed up: enter the name as is, without quotes.
Microsoft source: Configure policy settings for Windows LAPS
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
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_ADPasswordEncryptionPrincipal
$k = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Authorized password decryptor
Set-ItemProperty -Path $k -Name 'ADPasswordEncryptionPrincipal' -Value '<value>' -Type StringDisable
# Disable: LAPS/LAPS_ADPasswordEncryptionPrincipal
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": LAPS/LAPS_ADPasswordEncryptionPrincipal
$k = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS'
Remove-ItemProperty -Path $k -Name 'ADPasswordEncryptionPrincipal' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Authorized password decryptorDéchiffreur de mot de passe autoriséTEXT_ADPasswordEncryptionPrincipal | Text boxtext | ADPasswordEncryptionPrincipal | REG_SZ | Max length: 128 |