Hello,
Thank you for posting in the Microsoft Community Forums.
To allow USB drives while blocking other USB devices, you can use device IDs. Here’s how:
- Determine the Device IDs for USB Drives:
- Connect a USB drive to your computer.
- Open Device Manager (Right-click Start, then select Device Manager).
- Locate the USB drive under "Disk drives".
- Right-click the USB drive and select "Properties".
- In the Properties window, go to the "Details" tab.
- Select "Hardware Ids" from the drop-down list.
- Note the hardware IDs.
- Open Group Policy Editor:
- Type
gpedit.msc
in the Run dialog (Win + R).
- Type
- Navigate to Computer Configuration -> Administrative Templates -> System -> Device Installation -> Device Installation Restrictions.
- Enable and configure "Allow installation of devices that match any of these device IDs":
- Double-click on "Allow installation of devices that match any of these device IDs".
- Select "Enabled".
- Click the "Show" button.
- Add the hardware IDs you noted earlier for USB drives.
- Click "OK", then "Apply", and "OK".
- Enable "Prevent installation of removable devices":
- Double-click on "Prevent installation of removable devices".
- Select "Enabled".
- Click "Apply" and "OK".
- Enable "Prevent installation of devices not described by other policy settings":
- Double-click on "Prevent installation of devices not described by other policy settings".
- Select "Enabled".
- Click "Apply" and "OK".
This configuration will allow USB drives to be installed while blocking other USB devices.
Best regards
Yanhong Liu