Open in the explorer

Enable password encryption

Activer le chiffrement du mot de passe

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_ADPasswordEncryptionEnabled

Explanation

When you enable this setting, the managed password is encrypted before being sent to Active Directory.

Enabling this setting has no effect unless 1) the password has been configured to be backed up to Active Directory and 2) the Active Directory domain functional level is at Windows Server 2016 or above.

If this setting is enabled, and the domain functional level is at or above Windows Server 2016, the managed account password is encrypted.

If this setting is enabled, and the domain functional level is less than Windows Server 2016, the managed account password is not backed up to the directory.

If this setting is disabled, the managed account password is not encrypted.

This setting will default to enabled if not configured.

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 managé est chiffré avant d’être envoyé à Active Directory.

L’activation de ce paramètre n’a aucun effet, sauf si 1) le mot de passe a été configuré pour être sauvegardé dans Active Directory et 2) le niveau fonctionnel du domaine Active Directory est au Windows Server 2016 ou supérieur.

Si ce paramètre est activé et que le niveau fonctionnel du domaine est supérieur ou égal à Windows Server 2016, le mot de passe du compte géré est chiffré.

Si ce paramètre est activé et que le niveau fonctionnel du domaine est inférieur à Windows Server 2016, le mot de passe du compte géré n’est pas sauvegardé dans l’annuaire.

Si ce paramètre est désactivé, le mot de passe du compte géré n’est pas chiffré.

Ce paramètre est activé par défaut s’il n’est pas configuré.

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

Use cases

Encrypts the password stored in Active Directory so that only authorised principals can read it, which is required to keep a history. It needs a domain functional level of 2016 or higher.

Enable it from the start: without encryption, passwords are readable in clear text by any account with read permission on the attribute.

Microsoft source: Configure policy settings for Windows LAPS

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS
Value name
ADPasswordEncryptionEnabled
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_ADPasswordEncryptionEnabled
$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 'ADPasswordEncryptionEnabled' -Value 1 -Type DWord

Disable

# Disable: LAPS/LAPS_ADPasswordEncryptionEnabled
$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 'ADPasswordEncryptionEnabled' -Value 0 -Type DWord

Revert to "Not configured"

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

Availability

Windows 10

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

Windows Server

✓ 2025— 2022— 2016