Impedir la instalación de dispositivos que coincidan con cualquiera de estos id. de dispositivo: valor del Registro DenyDeviceIDs y 1 más (Restrictions)EquipoHKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions

Id. de directiva
DeviceInstall_IDs_Deny
Ámbito
Configuración del equipo
Compatible con
Al menos Windows Vista
Origen
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versión 1.0)
Categoría
Sistema › Instalación de dispositivos › Restricciones de instalación de dispositivos

Registro

DenyDeviceIDs

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

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions]

; Opciones (usar solo una)
; Habilitada
"DenyDeviceIDs"=dword:00000001
; Deshabilitada
"DenyDeviceIDs"=dword:00000000
CMD
:: Opciones (usar solo una)

:: Habilitada
reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "DenyDeviceIDs" /t REG_DWORD /d 1 /f
:: Deshabilitada
reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "DenyDeviceIDs" /t REG_DWORD /d 0 /f
PowerShell
# Común: crear la clave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Force | Out-Null

# Opciones (usar solo una)
# Habilitada
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Name 'DenyDeviceIDs' -PropertyType DWord -Value 1 -Force | Out-Null
# Deshabilitada
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Name 'DenyDeviceIDs' -PropertyType DWord -Value 0 -Force | Out-Null

(valores de lista)

REG_SZEquipo
Valor al habilitar
Depende del valor de la opción
Elemento
Impedir la instalación de dispositivos que coincidan con cualquiera de estos id. de dispositivo:
Tipo de valor
REG_SZ
Prefijo del nombre de valor
-
Aplicar con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceIDs]

; Agregue un valor por cada entrada de la lista, aumentando el número
"1"="<introducir valor>"
"2"="<introducir valor>"
CMD
:: Agregue un valor por cada entrada de la lista, aumentando el número

reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceIDs" /v "1" /t REG_SZ /d "<introducir valor>" /f
reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceIDs" /v "2" /t REG_SZ /d "<introducir valor>" /f
PowerShell
# Agregue un valor por cada entrada de la lista, aumentando el número

New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceIDs' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceIDs' -Name '1' -PropertyType String -Value '<introducir valor>' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceIDs' -Name '2' -PropertyType String -Value '<introducir valor>' -Force | Out-Null

DenyDeviceIDsRetroactive

REG_DWORDEquipo
Marcada
1
Sin marcar
0
Elemento
Aplicar también a dispositivos coincidentes que ya estén instalados.
Tipo de valor
REG_DWORD
Aplicar con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions]

; Opciones (usar solo una)
; Marcada
"DenyDeviceIDsRetroactive"=dword:00000001
; Sin marcar
"DenyDeviceIDsRetroactive"=dword:00000000
CMD
:: Opciones (usar solo una)

:: Marcada
reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "DenyDeviceIDsRetroactive" /t REG_DWORD /d 1 /f
:: Sin marcar
reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "DenyDeviceIDsRetroactive" /t REG_DWORD /d 0 /f
PowerShell
# Común: crear la clave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Force | Out-Null

# Opciones (usar solo una)
# Marcada
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Name 'DenyDeviceIDsRetroactive' -PropertyType DWord -Value 1 -Force | Out-Null
# Sin marcar
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Name 'DenyDeviceIDsRetroactive' -PropertyType DWord -Value 0 -Force | Out-Null