We know that when we use Pen/USB drive then so many virus come through pen drive. For that we can easily protect virus from pen drive.
1. First go run then type regedit then press enter.
2. Then go to HKEY_LOCAL_MACHINE → System → Current Control Set → Services →usbstor
3. Change the value 4 instead of 3.
Come out from that
By this method nobody enter pen drive to your computer and you will be free from virus effected through pen drive.