Method One: Establish Autorun.inf immunization document. In the U disk root directory to create a new empty file named Autorun.inf, so that in the same directory virus can not create autorun.inf files to infect U disk. If the U disk has been infected with the virus, then the establishment of Autorun.inf immune file method is ineffective.
Method Two: Disable AutoPlay in Group Policy
Taking the Win7 system as an example, the steps are: click "Start" → "Run", enter gpedit.msc after return, pop-up Group Policy window, in which select "Computer Configuration" → "Administrative Templates" → "system", turn on "Turn off AutoPlay" property, click Enabled, in the Drop-down menu select " All drives, click OK to exit.
Method Three: Use the Control Panel to prohibit AutoPlay function. Open the Control Panel, turn to Control Panel-"All Control Panel items"-"autoplay", uncheck "Use AutoPlay for all media and devices (U)", and then click the "Save" button.
Method Four: Disables MountPoints2 writes in the registry. Click on "Start" → "Run", enter regedit back, open Registry Editor, expand "HKEY_CURRENT_USER Software Microsoft Windows CurrentVersionExplorerMountPoints2, right click on the MountPoints2 key, select the permissions, the Administrators group and the system group Full control is set to reject.
Description: Prevents MountPoints2 writes from adding new right-click menu items after Windows reads Autorun.inf, preventing virus menu items from appearing so that they cannot activate the virus.
Use the Explorer to open U disk content. Specific methods: Press the key combination "win+ E" open the Resource Manager, and then select U disk Letter and open, you can prevent the U disk in the Autorun.inf file running, so as to effectively prevent the operation of virus files.