Dispositivos: restringir el acceso al CD-ROM solo al usuario con sesión iniciada localmente: valor del Registro AllocateCDRomsEquipoHKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

Categoría
Configuración de seguridad › Directivas locales › Opciones de seguridad
Ámbito
Configuración del equipo
Origen
Windows 11 (versión 26H2 · 26300.9457)

Registro

AllocateCDRoms

REG_SZEquipo
Valor al habilitar
1
Valor al deshabilitar
0
Aplicar con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon]

; Opciones (usar solo una)
; Habilitada
"AllocateCDRoms"="1"
; Deshabilitada
"AllocateCDRoms"="0"
CMD
:: Opciones (usar solo una)

:: Habilitada
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AllocateCDRoms" /t REG_SZ /d 1 /f
:: Deshabilitada
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AllocateCDRoms" /t REG_SZ /d 0 /f
PowerShell
# Común: crear la clave
New-Item -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Force | Out-Null

# Opciones (usar solo una)
# Habilitada
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'AllocateCDRoms' -PropertyType String -Value '1' -Force | Out-Null
# Deshabilitada
New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name 'AllocateCDRoms' -PropertyType String -Value '0' -Force | Out-Null