Simple trick can make us stop Malware/Virus infect our Windows machine.
After having this setting even if USB is infected, our machine will not get infected. Unless we dont manually click the virus.
1. Open REGEDIT from RUN
Got to path HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Now, locate NoDriveTypeAutoRun on right panel and change the value to b5 and click OK.
Note: Reboot the machine to have effect.
2. Else, While inserting the USB into the machine pressing SHIFT key will help you to execute Autorun.inf file, which results in stopping virus infection.
Removing Virus from USB:
1. Once the USB is inserted and ensuring that malware is not executed. Go to CMD and get into the drive by typing the drive letter.
2. type attrib -h -s autorun.inf /s /d
3. del autorun.inf
4. del <associated exe/pif/bat/vbs file intended to run from autorun.inf file>
Ex: del newfolder.exe
Hurray!!!!!!!! Now your machine and USB are Virus Freeeeeee.....
After having this setting even if USB is infected, our machine will not get infected. Unless we dont manually click the virus.
1. Open REGEDIT from RUN
Got to path HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Now, locate NoDriveTypeAutoRun on right panel and change the value to b5 and click OK.
Note: Reboot the machine to have effect.
2. Else, While inserting the USB into the machine pressing SHIFT key will help you to execute Autorun.inf file, which results in stopping virus infection.
Removing Virus from USB:
1. Once the USB is inserted and ensuring that malware is not executed. Go to CMD and get into the drive by typing the drive letter.
2. type attrib -h -s autorun.inf /s /d
3. del autorun.inf
4. del <associated exe/pif/bat/vbs file intended to run from autorun.inf file>
Ex: del newfolder.exe
Hurray!!!!!!!! Now your machine and USB are Virus Freeeeeee.....