Configurar o diretório de backup de senha: valor do Registro BackupDirectoryComputadorHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS
- ID da política
- LAPS_BackupDirectory
- 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
BackupDirectory
REG_DWORDComputador- Valor habilitado
- Depende do valor da opção
- Elemento
- Diretório de backup
| Item | Valor armazenado |
|---|---|
| Desabilitado | 0 |
| Microsoft Azure AD | 1 |
| Active Directory | 2 |
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) ; Desabilitado "BackupDirectory"=dword:00000000 ; Microsoft Azure AD "BackupDirectory"=dword:00000001 ; Active Directory "BackupDirectory"=dword:00000002
CMD
:: Opções (use apenas uma) :: Desabilitado reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "BackupDirectory" /t REG_DWORD /d 0 /f :: Microsoft Azure AD reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "BackupDirectory" /t REG_DWORD /d 1 /f :: Active Directory reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "BackupDirectory" /t REG_DWORD /d 2 /f
PowerShell
# Comum: criar a chave New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Force | Out-Null # Opções (use apenas uma) # Desabilitado New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'BackupDirectory' -PropertyType DWord -Value 0 -Force | Out-Null # Microsoft Azure AD New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'BackupDirectory' -PropertyType DWord -Value 1 -Force | Out-Null # Active Directory New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'BackupDirectory' -PropertyType DWord -Value 2 -Force | Out-Null