WAYS TO WRITE PROTECT A USB DRIVE

There may be several tricks towrite protect a USB drive. Here i would like to share two of those tricks below:
Today I reveal you a trick to avoid others copying or pasting your important files or folders or anything else from your system. Hoping this would be very useful for you, I have disclosed two methods for writing protecting a USB drive

Method 1:

i) First what you have to do is to type the following code in a notepad without any mistake.

:main
@echo off
Cls
echo. &echo. &echo.
echo USB Write Protect
Program
echo

____________________________________________________

echo. &echo.
echo 1.Lock the USB Drive
echo 2.Unlock the USB Drive
echo 3.Exit
echo.
set/p “ch=[>]Enter:”
if %ch%==1 goto lock
if %ch%==1 goto unlock
if %ch%==1 goto exit
goto main
:lock
cls
echo. &echo. &echo.
echo [+] Attention:
echo.
echo Make sure that there is no USB Drives inserted.
echo.
echo
pause
reg add 
HKLMsystemcurrentcontrolsetcontrolStorageDevicePolicies /t 
reg_dword /v writeprotect /d 1/f
pause>nul
goto main
:unlock
cls
echo. &echo. &echo.
echo. &echo. &echo.
echo [+] Attention:
echo.
echo This operation doesn’t require to Unplug the USB Flash Drive
echo so Continue without FEAR.
echo.
echo
pause
reg add 
HKLMsystemcurrentcontrolsetcontrolStorageDevicePolicies /t 
reg_dword /v writeprotect /d 0/f
pause>nul
goto main

ii) Now save this file with “.bat” extension

If  the above method doesn't works then try the following method that 

have simple steps which you can easily understand

Method 2:

i)Goto Start ‡Run then type as “regedit” to open the registry editor.

ii)In that Click on Hkey_LOCAL_MACHINE ‡SYSTEM ‡ CurrentControlSet ‡ Control.

iii)Then create a new “key” with the name “StorageDevicePolicies” by right clicking and selecting New‡key.

iv)Then create a new “DWORD value” with the name “WriteProtect” 

by right clicking and selecting New‡ DWORD value and give “1” as data by double clicking on it.

v)Now put the USB Flash Drive.

vi)Try to Delete or Copy something to the USB drive.You will not able to do that.

vii)So to remove your write protection just change the data value from 1 to 0.

Comments

Popular Posts