Sep 10, 2012

How to Protect USB/Pen Drive Without Any Software

This is most easy way to protect your USB/Pen Drive Without Any Software

to write protect a USB drive so anybody can't copy/paste data on your USB/PAN Drive,


You just copy this code below in notepad and Save it as any name but extension mus .bat ,eg USB-ROTECT.bat

: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%==2 goto unlock
if %ch%==3 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 Frive
echo so Continue without FEAR.
echo.
echo —————————————————
pause
reg add HKLMsystemcurrentcontrolsetcontrolStorageDevicePolicies /t reg_dword /v writeprotect /d 0 /f
pause > nul
goto main


If Above method don't work then try this one

How to Protect My USB/Pen Drive Without Any Software

If you are not able to protect your USB Drive with the help of script file then just try it by following few simple steps because Protecting an USB drive depends on Registry and you can do it manually.
Simple Steps that you have to follow :-
1- Start > Run > type "regedit" to open regisry editor
2- Navigate to this: HKey_LOCAL_MACHINESystemCurrentControlSetControl
3- Create a new key with the name "StorageDevicePolicies"
4- On the right side, Create a new "DWORD Value" with the name "WriteProtect" and give it "1" as Data
5- Then put the USB Flash Drive.
6- Try to Delete a file OR Copy something to it, You will not be able to do that in your system.
7- To disable this feature, just change the value  from 1 To 0


Like this Post ??? Then Pls Support us i have spent much Time to Write this Post  LIKE US ON FACEBOOK OR Follow OUR Blog :)


Subscribe Updates, Its FREE!

0 comments:

Post a Comment

 

Copyright @ 2013 EgyTricks.

Designed by Vikash | EgyTricks