ADMX Viewer →

Prevent redirection of devices that match any of these device Ids

Computer Configuration > Administrative Templates > System > Device Redirection > Device Redirection Restrictions

Computer Policy name DeviceRedirect_IDS_Prevent DeviceRedirection.admx Windows 10 1607 extras 2.0

Registry

Key (computer)HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeviceRedirect\Restrictions
Value nameDenyDeviceIDs
Supported onAt least Windows Server 2008 R2 or Windows 7
NamespaceMicrosoft.Policies.DeviceRedirection

Options

OptionValue writtenType and rangeDefault
Prevent redirection of devices that match any of these Device IDs: 1, 2, ...
Software\Policies\Microsoft\Windows\DeviceRedirect\Restrictions\DenyDeviceIDs
list none

What each state writes

Computed with the same rules RFF Conformance uses, with the default options. Pick your own options in the builder below.

Enabled
HKLM\Software\Policies\Microsoft\Windows\DeviceRedirect\Restrictions DenyDeviceIDs 1 REG_DWORD
Disabled
HKLM\Software\Policies\Microsoft\Windows\DeviceRedirect\Restrictions DenyDeviceIDs 0 REG_DWORD

list values under 'Software\Policies\Microsoft\Windows\DeviceRedirect\Restrictions\DenyDeviceIDs' are not removed on disable (their names aren't declared in the ADMX) - remove them from the baseline manually if needed.

Not configured
HKLM\Software\Policies\Microsoft\Windows\DeviceRedirect\Restrictions DenyDeviceIDs value removed

entries under 'Software\Policies\Microsoft\Windows\DeviceRedirect\Restrictions\DenyDeviceIDs' can't be removed automatically - a list element's value names aren't declared in the ADMX, so RFF doesn't know what to delete. Clear them on the computers or list them in the baseline by hand.

In Intune

Intune sets third-party templates by importing the ADMX first. In the admin center that is Devices > Configuration > Import ADMX, then a profile from Imported Administrative templates. With a custom (OMA-URI) profile instead, ingest the file once and then set the policy:

1. Ingest the ADMX./Device/Vendor/MSFT/Policy/ConfigOperations/ADMXInstall/Windows101607extras/Policy/DeviceRedirection
String value: the whole contents of DeviceRedirection.admx. "Windows101607extras" is a name you choose; use the same one below.
2. Set it (device)./Device/Vendor/MSFT/Policy/Config/Windows101607extras~Policy~DeviceRedirect_Category~DeviceRedirect_Restrictions_Category/DeviceRedirect_IDS_Prevent
Value to enable<enabled/><data id="Redirect_IDS_Deny_List" value="entry1&#xF000;entry2"/>
Value to disable<disabled/>

Path format from Microsoft's ADMX ingestion documentation; the category part comes from this ADMX.

Build it

Choose a state and options. You get the exact writes, a .reg file, a script that applies them, and a script that checks a machine and reports drift. Nothing leaves your browser.

Keep it set across your fleet

Group Policy writes these values once per refresh and never tells you when something changes them back. RFF Conformance reads them from every computer, shows which ones drifted and who changed them, and puts them back on approval, with each change versioned and undoable. It works without a domain controller.

How Conformance works · Your baseline from this site

Source: Windows 10 (1607) and Windows Server 2016 templates: the files Windows 11 no longer ships, version 2.0, published by Microsoft 2024-07-15. Policy names and option labels are Microsoft's. Microsoft's full description of this setting: search Microsoft Learn.

ADMX Viewer is open source: github.com/deadarcher/AdmxViewer. Found a wrong registry value, a missing catalog, or a template that won't load? Open an issue, email brian@getrff.com, or use the form below.