USB Write Blocking via GPO
Overview
This guide will show you how to configure USB write blocking on Windows systems using Local Group Policy. This is useful for preventing unauthorized data transfer to USB devices, especially useful when mounting drives to forensicly image them.
Prerequisites
A Windows system compatible with Group Policy and administrative access to the Local Group Policy Editor.
Usually, any Windows edition that is Professional or higher will have GPO capabilities. This includes:
- Windows 10 Pro
- Windows 10 Enterprise
- Windows 11 Pro
- Windows 11 Enterprise
- Windows Server editions
Steps
-
Open the Group Policy Editor:
- For Local Group Policy: Press
Windows + R
, typegpedit.msc
, and hitEnter
. - For Active Directory Group Policy: Press
Windows + R
, typegpmc.msc
, and hitEnter
.- Edit an policy object or create a new one.
- You must be on a machine with Remote Server Administration Tools installed.
- For Local Group Policy: Press
-
Navigate to the following path:
Computer Configuration -> Administrative Templates -> System -> Removable Storage Access
-
In the right pane, find the policy named
Removable Disks: Deny Write Access
-
Double-click on the policy to open its properties.
-
Select the
Enabled
option to enable write blocking for removable disks. -
Click
OK
-
Reboot the computer for the changes to take effect.
-
Test the changes to ensure that write access to USB devices is blocked.
- Insert a USB drive and try to copy files to it. You should receive an error message indicating that the operation is not permitted.