Name of administrator account to manage
Nom du compte administrateur à gérer
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.
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 StringDisable
# 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 SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Administrator account nameNom du compte administrateurTEXT_AdminAccountName | Text boxtext | AdministratorAccountName | REG_SZ | Max length: 64 |