Configurar el directorio de copia de seguridad de contraseñas: valor del Registro BackupDirectoryEquipoHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS
- Id. de directiva
- LAPS_BackupDirectory
- Ámbito
- Configuración del equipo
- Compatible con
- Como mínimo, Microsoft Windows 10 o versiones posteriores
- Origen
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versión 1.0)
- Categoría
- Sistema › LAPS
Registro
BackupDirectory
REG_DWORDEquipo- Valor al habilitar
- Depende del valor de la opción
- Elemento
- Directorio de copia de seguridad
| Elemento de lista | Valor almacenado |
|---|---|
| Deshabilitado | 0 |
| Azure Active Directory | 1 |
| Active Directory | 2 |
Aplicar con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS] ; Opciones (usar solo una) ; Deshabilitado "BackupDirectory"=dword:00000000 ; Azure Active Directory "BackupDirectory"=dword:00000001 ; Active Directory "BackupDirectory"=dword:00000002
CMD
:: Opciones (usar solo una) :: Deshabilitado reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS" /v "BackupDirectory" /t REG_DWORD /d 0 /f :: Azure Active Directory 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
# Común: crear la clave New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Force | Out-Null # Opciones (usar solo una) # Deshabilitado New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\LAPS' -Name 'BackupDirectory' -PropertyType DWord -Value 0 -Force | Out-Null # Azure Active Directory 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