Monday, September 19, 2011

How to Protect a USB Flash Drive

This is a kind of old tweak have been using to protect my flashdrive 
so today i will be given the tweak for free
so follow the step below and you will finally get there
Manually:
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 thr 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.
7- To disable this feature, just change the data from 1 To 0



The Batch Script :


::-----------------------------------------::
:: Name: USB Flash Drive Write Protect.bat ::
::-----------------------------------------::
:main
@echo off
cls
echo. & echo. & echo.
echo  USB Write Protect program
echo ________________________________
echo. & echo.
echo     1. Lock the USB Flash Drive
echo     2. UnLock the USB Flash 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 Flash 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


give your comment and questions

0 comments:

  © Blogger templates The Professional Template by Ourblogtemplates.com 2008

Back to TOP