HackingUniversity - Hacks . Tricks . How-To's

04 August 2014

How to Protect your USB Drive from VIRUS Infection

write protection usb driveAs you all know USB Drive is the major source for getting virus infected files from your friends PC or even from your college project submission computer. Well now as soon as the virus infects your USB Drive you are prone to making your files infected and hence making them useless in many cases. Well the one way to protect your USB Drive is to install good antivirus software that will help you keep track of any virus and immediately taking action on that virus file, either by deleting it or fixing it.

Well the another way is to enable the write protection that will not allow anyone using your computer to transfer anything to your USB Drive. Well I already posted how you can remove write protection from your USB Drive in case your drive was infected and write protection was enabled automatically. Or in some case you just wanna format the write protected USB Drive we have got solution for that problem too.

How to Enable Write Protection on your USB Drive

But for now lets see how you can easily enable write protection on your USB Drive hence making it secure from any unidentified transfer.

  1. Open Notepad and type below code into it.

    Windows Registry Editor Version 5.00

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

  2. Now just save it as Write-Protection-On.reg make sure the extension remains .reg for the file to work fine. Or you can also download this .reg file directly.
  3. Now just double click on this file and press OK, now this entry will be added in your registry and write protection will be enabled.
  4. Now just plug in your USB Drive and try to transfer any file to it. It won't transfer instead it will show you some error like Write Protection enabled.

How to Disable Write Protection on USB Drive

Now you have successfully protected your USB Drive from getting infected, well if you are planning to remove the write protection, well it can be done pretty easily, you just need to follow below steps.

  1. Open Notepad and type below code into it.

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies]
    "WriteProtect"=dword:00000000

  2. Now just save it as Write-Protection-Off.reg make sure the extension remains .reg for the file to work fine. Or you can also download this .reg file directly.
  3. Now just double click on this file and press OK, now this entry will be added in your registry and write protection will be disabled.
  4. Now simply remove your USB and Plug In once again, now you will see you are once again able to transfer file easily.

So guys this ends another very amazing tutorial, hope you found this one a good one helping you in getting rid of those nasty viruses. Well if you think I missed something or maybe there is something that needs to be fixed, do comment below.