en-US windows computer

Name of administrator account to manage

Verified with Windows 11 25H2 — updated on July 12, 2026

Windows 11 25H2

Supported on: At least Microsoft Windows 10 or later

Path in the GPO console

Computer Configuration\Administrative Templates\System\LAPS

Description

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.

Registry

HKLM SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS

More options available

Options

Administrator account name
AdministratorAccountName text

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Name of administrator account to manage
; State: Enabled
; Supported on: At least Microsoft Windows 10 or later

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS]
"AdministratorAccountName"=""
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Name of administrator account to manage
# State: Enabled
# Supported on: At least Microsoft Windows 10 or later

$path = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'AdministratorAccountName' -Value '' -Type String

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview