Jump to content

Enable USB write protection in Windows 10


Batu69

Recommended Posts

In Windows 10, it is possible to enable write protection on USB mass storage devices. Once enabled, it will restrict write access to external USB drives. This can be useful as an additional security option in some environments. Let's see how it can be done.

You can enable USB write protection in Windows 10 with a simple Registry tweak. Do it as follows.

Enable USB write protection in Windows 10

  1. Open the Registry Editor app.
  2. Go to the following Registry key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control

     open-registry-key

 

3. Create a new subkey here named StorageDevicePolicies as shown below:

 

create-new-subkey-1

 

create-new-subkey-2

 

4. Under the StorageDevicePolicies subkey, create a new 32-bit DWORD value named WriteProtect. Set its value data to 1. Note: even if you are running a 64-bit Windows 10 version, you still need to create the 32-bit DWORD value.


See the following screenshot:

 

create-32-bit-dword

 

windows-10-enable-usb-write-protection

 

5. Reconnect all USB drives if you have connected them to your PC.

 

reconnect-drives

 

Once you set the WriteProtect value to 1 and reconnect USB drives, the restriction takes effect immediately. All newly connected USB drives will become read-only. Even "New" and "Delete" context menu commands will disappear:

 

new-delete-commands-are-missing

 

write-protection

 

To disable the restriction and restore the default behavior, you need to remove the WriteProtect value.

To save your time, I prepared the following ready-to-use Registry files:

 

Download Registry Files

 

The undo file is included.

This trick works on Windows XP Service Pack, Windows Vista, Windows 7, Windows 8/8.1 as well.

 

Article source

Link to comment
Share on other sites


  • Replies 1
  • Views 1.1k
  • Created
  • Last Reply

I have accidentally deleted a lot of files from one of my external drive 4 months ago.

This could prevented that to happened.

Link to comment
Share on other sites


Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...