Prevent installation of devices using drivers that match these device setup classes
Jump to overview

Policy overview

Key metadata and intent for this policy.

Computer
Category
System > Device Installation > Device Installation Restrictions
Supported on
At least Windows Vista

Supported OS tags: Windows10, Windows10RT, Windows11, Windows7, Windows8, Windows81, WindowsRT, WindowsRT81, WindowsServer2008, WindowsServer2012, WindowsServer2012R2, WindowsServer2016, WindowsVista

This policy setting allows you to specify a list of device setup class globally unique identifiers (GUIDs) for driver packages that Windows is prevented from installing. By default, this policy setting takes precedence over any other policy setting that allows Windows to install a device. NOTE: To enable the "Allow installation of devices that match any of these device IDs" and "Allow installation of devices that match any of these device instance IDs" policy settings to supersede this policy setting for applicable devices, enable the "Apply layered order of evaluation for Allow and Prevent device installation policies across all device match criteria" policy setting. If you enable this policy setting, Windows is prevented from installing or updating driver packages whose device setup class GUIDs appear in the list you create. If you enable this policy setting on a remote desktop server, the policy setting affects redirection of the specified devices from a remote desktop client to the remote desktop server. If you disable or do not configure this policy setting, Windows can install and update devices as allowed or prevented by other policy settings.

Internal name
DeviceInstall_Classes_Deny
Policy ID
b2e45aabcc1b
Elements
2

Registry values

How enabled and disabled states update the registry.

ScopeRegistry locationTypeEnabled valueDisabled valueCopy
Computer
Path
Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions
Value name
DenyDeviceClasses
REG_DWORD
HKLM
1
HKLM
0
Registry location
Type REG_DWORD · Computer
Path
Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions
Value name
DenyDeviceClasses
Hive
HKLM
Enabled value
1
Disabled value
0

Policy elements

Inputs and configuration options exposed by this policy.

ScopeElementTypeRegistry mappingConstraints & behaviorCopy
Computer
Also apply to matching devices that are already installed.
ID DeviceInstall_Classes_Deny_Retroactive
boolean
Path
Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions
Value name
DenyDeviceClassesRetroactive
Type
REG_DWORD
Options: true (1), false (0)
True: Set value = 1 · False: Set value = 0
Computer
Prevent installation of devices using drivers for these device setup classes:
ID DeviceInstall_Classes_Deny_List
list
Path
Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceClasses
Value name
DenyDeviceClasses
Type
REG_MULTI_SZ
List: standard
Also apply to matching devices that are already installed.
Computer · Type boolean
Registry mapping
Path
Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions
Value name
DenyDeviceClassesRetroactive
Type
REG_DWORD
Details
Options: true (1), false (0)
True: Set value = 1 · False: Set value = 0
Prevent installation of devices using drivers for these device setup classes:
Computer · Type list
Registry mapping
Path
Software\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceClasses
Value name
DenyDeviceClasses
Type
REG_MULTI_SZ
Details
List: standard