TO TURN ON THE DEFENCE:
 If you desire to protect your USB from getting unwanted files i.e. virus, worm, spy, Trojan etc than you are at the right place.
What I’m gonna tell you is that how to setup your registry to end a computer from saving files to your USB (It’ll block all of them)
If you contain windows XP with SP2, widows 7 then you can immobilize the writing option to USB drives. This trick is very helpful if you have virus in your computer and desire to copy files from a USB Drive but don’t desire to transfer virus to the USB. Follow the given steps to disable the USB writing option:

Open notepad and copy and paste the following:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlStorageDevicePolicies]
“WriteProtect”=dword:00000001
Now keep the file with the extension “.reg”.
Click on the file you presently saved. In the pop-up window chose YES and then OK.
That’s it your USB is now sheltered
To TURN DEFENCE OFF:

Open notepad and copy and paste the following:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlStorageDevicePolicies]
“WriteProtect”=dword:00000000
Now put aside the file with the extension “.reg”.
Click on the file you presently saved. In the pop-up window click YES and then OK.
That’s it your defense is now disabled.Twitte