GetUSB.info Logo

How To Enable Disable USB Write Protection in Windows 10

The link below is for a ZIP file that contains two batch files to either enable or how to disable USB write protection on a Windows 10 computer. These batch files also work on Windows 7 machines.

This solution is ultra-easy and very quick: one click to run the registry edit file and one click to confirm the task. That’s it.

Typically, a person will want to lock down the USB ports of a computer to ensure a virus doesn’t spread through a USB device, such as a flash drive. This batch file provides a fast and simple way to both lock down your USB ports and easily unlock them again.

Important: Do not have a USB flash drive connected to the system when you run either batch file.

For those seeking more technical details, here is the specific registry edit being applied. Changing the DWORD value to 00000001 sets the device policy for the computer to be write-protected. Changing that value back to 00000000 restores normal read/write access.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\
StorageDevicePolicies]
“WriteProtect”=dword:00000001

Note: This USB write protection method is specific to the PC on which it is applied. It is not device-specific and will not follow the USB drive to other machines.

If you require USB write protection that is permanent on the device itself and universal across all computers, contact Nexcopy.com and ask about their Lock License USB drives. This hardware-level solution is embedded in the USB controller, ensuring the drive is always write-protected, preventing any possibility of a virus being written to the USB stick. This is the best universal solution for USB write protection.

Screenshots of the Batch File Process

Batch files included in the ZIP:

USB Write Protection batch files

Windows confirmation prompt after running the batch file:

Windows confirmation prompt

Task completion screen:

USB write protection task complete

Download link for the two batch files:

USB Write Protection Registry Edit Batch Files

Tags: , , ,

Matt LaBoff

Administator for GetUSB.info GetUSB.info started in 2004 with the concept of providing USB information for everything USB related. At the time, USB was gaining momentum and every day new products, articles and news became published. Today, the site is focused on bringing technical information, tricks and hacks to USB related products. The site does publish off topic information as well, to keep the variety up. Please visit the footer area of any page if you or your company is interested in article or product placement via purchased advertising.

Copyright

Copyright © 2006 +

USB Powered Gadgets and more...

All Rights Reserved

Advertise with us

GetUSB Advertising

This is a high value website providing great exposure to your product and brand. Visit our advertising page to learn specifics.

For more information
Visit our advertising page.

Nexcopy Ad

Nexcopy Provides

USB copy protection with digital rights management for data loaded on USB flash drives.

Contact us learn more

Resources and References Page

Resources and References Page