How to Stop Pendrives from Getting Viruses ?

pendrive

Virus infection  has  always  became a big problem for windows user.  And when the  the virus  like  shortcut virus, autorun.inf , new folder etc  time again corrupts your Pendrive you might  have felt like shit. But  give a look to the following trick  which  will save your pendrive  from virus forever.

Some people recover their data by simply using Command prompt but some people think there is only option left and it is to format the flash drive.If your pendrive is infected by any of these virus you can simply follow these step to get your hidden data back.

  • Open CMD (command prompt)
  • Open Flash drive in cmd ( if your drive is ‘G’ than enter ‘G:’ after c:\user\ press [ENTER] )
  • Now type following line and press enter:

attrib -s -h /s /d

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.

 

Now your pen drive is protected

 

About Abhinaya Ghimire

Abhinaya Ghimire is a tech savvy person who loves keeping information about ICT and media. Graduated from Kathmandu University in Bachelor of Media Stuides, he is equally involved in making short films, documentaries and also has his own photo blog www.abhieg.wordpress.com

Check Also

14 Tips to help you create strong password

We all are familiar with the notification box ‘ use strong password’. We are advised …

Leave a Reply