Open in the explorer

Name of administrator account to manage

Nom du compte administrateur à gérer

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_AdminName

Explanation

This policy setting specifies a custom Administrator account name to manage the password for.

If this policy setting is enabled, LAPS will manage the password for a local account with this name.

If this policy setting is disabled or not configured, LAPS will manage the password for the well known Administrator account.

DO NOT enable this policy setting to manage the built-in administrator account. The built-in administrator account is auto-detected by well-known SID and does not depend on the account name.

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

French text from Windows 11 26H2

Ce paramètre de stratégie spécifie un nom de compte Administrateur personnalisé pour lequel gérer le mot de passe.

Si ce paramètre de stratégie est activé, LAPS gère le mot de passe d’un compte local portant ce nom.

Si ce paramètre de stratégie est désactivé ou s’il n’est pas configuré, LAPS gère le mot de passe du compte Administrateur connu.

NE PAS activer ce paramètre de stratégie pour gérer le compte administrateur intégré. Le compte Administrateur intégré est automatiquement détecté par un SID connu et ne dépend pas du nom du compte.

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

Use cases

Specifies which local administrator account to manage. Only fill it in if you manage a custom account: by default the built-in administrator is managed, even if renamed.

Windows LAPS does not create custom accounts itself (except through automatic account management), and the setting is ignored when automatic account management is enabled.

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_AdminName
$k = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Administrator account name
Set-ItemProperty -Path $k -Name 'AdministratorAccountName' -Value '<value>' -Type String

Disable

# Disable: LAPS/LAPS_AdminName
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

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

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Administrator account nameNom du compte administrateurTEXT_AdminAccountNameText boxtextAdministratorAccountNameREG_SZ
Max length: 64

Availability

Windows 10

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

Windows Server

✓ 2025— 2022— 2016