Configurar o gerenciamento automático de contas: valor do Registro AutomaticAccountManagementEnabled e mais 4ComputadorHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS

ID da política
LAPS_AutomaticAccountManagementPolicy
Escopo
Configuração do Computador
Compatível com
Pelo menos Microsoft Windows 10 ou posterior
Fonte
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versão 1.0)
Categoria
Sistema › LAPS

Registro

AutomaticAccountManagementEnabled

REG_DWORDComputador
Valor habilitado
1
Valor desabilitado
0
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS]

; Opções (use apenas uma)
; Habilitada
"AutomaticAccountManagementEnabled"=dword:00000001
; Desabilitada
"AutomaticAccountManagementEnabled"=dword:00000000
CMD
:: Opções (use apenas uma)

:: Habilitada
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "AutomaticAccountManagementEnabled" /t REG_DWORD /d 1 /f
:: Desabilitada
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "AutomaticAccountManagementEnabled" /t REG_DWORD /d 0 /f
PowerShell
# Comum: criar a chave
New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Force | Out-Null

# Opções (use apenas uma)
# Habilitada
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'AutomaticAccountManagementEnabled' -PropertyType DWord -Value 1 -Force | Out-Null
# Desabilitada
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'AutomaticAccountManagementEnabled' -PropertyType DWord -Value 0 -Force | Out-Null

AutomaticAccountManagementTarget

REG_DWORDComputador
Valor habilitado
Depende do valor da opção
Elemento
Especifique a conta de destino a ser gerenciada:
Opções
ItemValor armazenado
Gerenciar a conta de administrador integrada0
Gerenciar uma conta de administrador personalizada1
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS]

; Opções (use apenas uma)
; Gerenciar a conta de administrador integrada
"AutomaticAccountManagementTarget"=dword:00000000
; Gerenciar uma conta de administrador personalizada
"AutomaticAccountManagementTarget"=dword:00000001
CMD
:: Opções (use apenas uma)

:: Gerenciar a conta de administrador integrada
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "AutomaticAccountManagementTarget" /t REG_DWORD /d 0 /f
:: Gerenciar uma conta de administrador personalizada
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "AutomaticAccountManagementTarget" /t REG_DWORD /d 1 /f
PowerShell
# Comum: criar a chave
New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Force | Out-Null

# Opções (use apenas uma)
# Gerenciar a conta de administrador integrada
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'AutomaticAccountManagementTarget' -PropertyType DWord -Value 0 -Force | Out-Null
# Gerenciar uma conta de administrador personalizada
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'AutomaticAccountManagementTarget' -PropertyType DWord -Value 1 -Force | Out-Null

AutomaticAccountManagementNameOrPrefix

REG_SZComputador
Valor habilitado
Depende do valor da opção
Elemento
Nome automático da conta (ou prefixo do nome):
Tipo de valor
REG_SZ
Comprimento máximo
20
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS]

; Nomes e tipos de valor seguem o ADMX. Substitua <inserir valor> abaixo pelos seus próprios dados
"AutomaticAccountManagementNameOrPrefix"="<inserir valor>"
CMD
:: Nomes e tipos de valor seguem o ADMX. Substitua <inserir valor> abaixo pelos seus próprios dados

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "AutomaticAccountManagementNameOrPrefix" /t REG_SZ /d "<inserir valor>" /f
PowerShell
# Nomes e tipos de valor seguem o ADMX. Substitua <inserir valor> abaixo pelos seus próprios dados

New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'AutomaticAccountManagementNameOrPrefix' -PropertyType String -Value '<inserir valor>' -Force | Out-Null

AutomaticAccountManagementEnableAccount

REG_DWORDComputador
Marcado
1
Desmarcado
0
Elemento
Habilite a conta gerenciada
Tipo de valor
REG_DWORD
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS]

; Opções (use apenas uma)
; Marcado
"AutomaticAccountManagementEnableAccount"=dword:00000001
; Desmarcado
"AutomaticAccountManagementEnableAccount"=dword:00000000
CMD
:: Opções (use apenas uma)

:: Marcado
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "AutomaticAccountManagementEnableAccount" /t REG_DWORD /d 1 /f
:: Desmarcado
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "AutomaticAccountManagementEnableAccount" /t REG_DWORD /d 0 /f
PowerShell
# Comum: criar a chave
New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Force | Out-Null

# Opções (use apenas uma)
# Marcado
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'AutomaticAccountManagementEnableAccount' -PropertyType DWord -Value 1 -Force | Out-Null
# Desmarcado
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'AutomaticAccountManagementEnableAccount' -PropertyType DWord -Value 0 -Force | Out-Null

AutomaticAccountManagementRandomizeName

REG_DWORDComputador
Marcado
1
Desmarcado
0
Elemento
Randomize o nome da conta gerenciada
Tipo de valor
REG_DWORD
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS]

; Opções (use apenas uma)
; Marcado
"AutomaticAccountManagementRandomizeName"=dword:00000001
; Desmarcado
"AutomaticAccountManagementRandomizeName"=dword:00000000
CMD
:: Opções (use apenas uma)

:: Marcado
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "AutomaticAccountManagementRandomizeName" /t REG_DWORD /d 1 /f
:: Desmarcado
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "AutomaticAccountManagementRandomizeName" /t REG_DWORD /d 0 /f
PowerShell
# Comum: criar a chave
New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Force | Out-Null

# Opções (use apenas uma)
# Marcado
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'AutomaticAccountManagementRandomizeName' -PropertyType DWord -Value 1 -Force | Out-Null
# Desmarcado
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'AutomaticAccountManagementRandomizeName' -PropertyType DWord -Value 0 -Force | Out-Null