If your Pen drive infected with virus then this is very problematic to to connect your PC/Laptop.
To prevent a Pendrive can infect the PC on which You connect, then you can protect ourselves by following these steps:
1. Click Start, Type Run and Press enter.
2. Within the window, type the word REGEDIT
3. We will go to the following string: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Polices\Explorer
5. Locate the NoDriveTypeAutoRun value and select it with the left button of our mouse
6. Select the Modify option
7. Modify the value for this 0 × 00000095
This change will prevent viruses from running automatically when you connect a USB device into our PC. This way we keep the infection.
I hope this is very helpful to all.