Impedir la instalación de dispositivos con controladores que coincidan con estas clases de instalación de dispositivos: valor del Registro DenyDeviceClasses y 1 más (Restrictions)EquipoHKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions
- Id. de directiva
- DeviceInstall_Classes_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
DenyDeviceClasses
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 "DenyDeviceClasses"=dword:00000001 ; Deshabilitada "DenyDeviceClasses"=dword:00000000
CMD
:: Opciones (usar solo una) :: Habilitada reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "DenyDeviceClasses" /t REG_DWORD /d 1 /f :: Deshabilitada reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "DenyDeviceClasses" /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 'DenyDeviceClasses' -PropertyType DWord -Value 1 -Force | Out-Null # Deshabilitada New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Name 'DenyDeviceClasses' -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 con controladores para estas clases de instalación de dispositivos:
- 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\DenyDeviceClasses] ; 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\DenyDeviceClasses" /v "1" /t REG_SZ /d "<introducir valor>" /f reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceClasses" /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\DenyDeviceClasses' -Force | Out-Null New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceClasses' -Name '1' -PropertyType String -Value '<introducir valor>' -Force | Out-Null New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceClasses' -Name '2' -PropertyType String -Value '<introducir valor>' -Force | Out-Null
DenyDeviceClassesRetroactive
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 "DenyDeviceClassesRetroactive"=dword:00000001 ; Sin marcar "DenyDeviceClassesRetroactive"=dword:00000000
CMD
:: Opciones (usar solo una) :: Marcada reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "DenyDeviceClassesRetroactive" /t REG_DWORD /d 1 /f :: Sin marcar reg add "HKLM\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions" /v "DenyDeviceClassesRetroactive" /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 'DenyDeviceClassesRetroactive' -PropertyType DWord -Value 1 -Force | Out-Null # Sin marcar New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions' -Name 'DenyDeviceClassesRetroactive' -PropertyType DWord -Value 0 -Force | Out-Null