Prevent installation of devices that match any of these device IDs

This policy setting allows you to specify a list of Plug and Play hardware IDs and compatible IDs for devices 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 instance IDs" policy setting 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 a device whose hardware ID or compatible ID appears 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, devices can be installed and updated as allowed or prevented by other policy settings.

Supported on: At least Windows Vista

Registry HiveHKEY_LOCAL_MACHINE
Registry PathSoftware\Policies\Microsoft\Windows\DeviceInstall\Restrictions
Value NameDenyDeviceIDs
Value TypeREG_DWORD
Enabled Value1
Disabled Value0

Prevent installation of devices that match any of these Device IDs:

Registry HiveHKEY_LOCAL_MACHINE
Registry PathSoftware\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceIDs
Value Name{number}
Value TypeREG_SZ
Default Value

To create a list of devices, click Show. In the Show Contents dialog box, in the Value column,

type a Plug and Play hardware ID or compatible ID

(for example, gendisk, USB\COMPOSITE, USB\Class_ff).

Also apply to matching devices that are already installed.
Registry HiveHKEY_LOCAL_MACHINE
Registry PathSoftware\Policies\Microsoft\Windows\DeviceInstall\Restrictions
Value NameDenyDeviceIDsRetroactive
Value TypeREG_DWORD
Default Value0
True Value1
False Value0

deviceinstallation.admx

Administrative Templates (Computers)

Administrative Templates (Users)