Skip to main content

Enable USB Write Protection Via The Registry

The Windows Registry, Is a very powerful tool to perform an array of edits and tweaks dedicated to the device on which It's applied. One of these tweaks that I'll cover In this tutorial, Is to enable write protection on all USB ports. Essentially, the contents of any USB device that's plugged Into the computer, will be "read only", meaning all stored data cannot be edited or deleted. Any attempt to do so, will be denied by the operating system.

I've already documented a guide on how to do this by using the good old Group Policy Editor. However the GPE Is only native to the Windows 10 Pro, Enterprise and Education editions and not every user has either of these editions Installed, hence my decision to apply this tweak via the Registry.

This comes to very good use (as an example) for anyone who has physical access to your PC, plugs In your USB stick that you've left lying around and attempts to edit or delete files. In doing so, an error message will be returned denying such operations. So let's rip Into this guide.

Step One:
To access the Windows Registry, open the Run menu, type "regedit" (no quotes) and hit "OK".

Step Two:
Next, navigate to the following directory:

Right-click the "Control" folder and select "New > Key" as Illustrated below.

Step Three:
Name the key (that you've just created In the above step), as "StorageDevicePolicies", again without the quotes.

Step Four:
Right-click "StorageDevicePolicies", and select "New > DWORD (32-bit) Value".

Step Five:
Name the Value (that you've just created above), as "WriteProtect" without quotes. The result will look like the Image below.

Step Six:
Double-click "WriteProtect" and In the Value data field, give It a value of 1. Click "OK" to finalize the process.

Last Step:
A reboot Is not required, nor the need to log off & log on. Now to put this to the test. I've attempted to add and edit a file on my USB stick, and as you can see, the message of "The disk Is write-protected" Is displayed. Perfect!

Final Thoughts:
As mentioned at the beginning of this article, this tweak Is only dedicated to the computer on which It's applied to. It does not write-protect the USB device Itself, but certainly prevents any changes to the device when plugged Into "any" USB port. To reverse the change, go back to Step Six above, and In the Value data field, give It a value of 0.

The Windows Registry Is a critical part of the operating system and any Incorrect edits, can cause significant system Instability and/or loss of functionality to your operating system. For this very reason, I strongly suggest backing It up prior to any edits, by using It's Export feature.


Popular posts from this blog

Check The Health Of Your Laptop's Battery

When you first purchase your laptop and fully charge the battery thereafter, It runs at It's optimal state for quite a while. However, over time, It Inevitably decreases In performance, and does not hold It's charge capacity as per It's brand new state. This Is due to wear & tear, and a few other factors. It's very Important to know the condition of your battery, so In this tutorial, I will show you how to view the current status and health of your laptop's battery.

How To Create A Virtual Machine Using VMware

A virtual machine, often abbreviated as a VM, Is a software program containing an operating system that's Installed on the physical machine (PC), and operates In It's own Isolated environment. Every task performed In the VM, remains there, without affecting the main computer. Every user should have a virtual machine up and running, so In this tutorial, I will demonstrate a detailed guide on how to create & Install a virtual machine on your computer, namely VMware Workstation.

How To Troubleshoot Your PC's Power Settings

Upon purchasing your computer with the Windows OS Installed, by default, It's power plan setting Is set to Balanced. Depending on the manufacturer, the hibernate and sleep modes are also configured to turn off at certain Intervals. You can also create a plan of your own, based on your computing usability. Power plan settings can corrupt at the best of times, hence In this tutorial, I will show you how to troubleshoot your PC's power settings natively within Windows.