How to prevent Autorun.inf virus in U disk?

  

USB flash drive is a tool we use today. Many things like storage data need him. Although everyone is now a few people, the security of USB flash drive is also Need to pay attention to, the following tutorial will organize several ways to prevent viruses according to your computer level.

招一, Group Policy to turn off the AutoRun function (for those who are not familiar with the computer)

If you want to disable the autoplay function of Windows XP all at once, please follow the steps below:

1. Click “Start →Run”, in the "Open” box, type “gpedit.msc”, click the “OK" button to open “Group Policy” Window;

2. In the left pane, under "Local Computer Policy", expand "Computer Configuration & Rarr; Administrative Templates & Rarr; System", then in the right pane, "Settings" & rdquo; Under the heading, double-click “ Turn off AutoPlay>;

3. Click the “Set” tab, select the “Enabled” checkbox, and then turn off AutoPlay in “ In the box, click <;All drives", click the “OK" button, and finally close the “Group Policy" window.

招二, the registry closes the AutoRun function

Enter Regedit in the "Start& rdquo; menu>Run”, open the Registry Editor, expand to

HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesExploer Under the primary key, find "NoDriveTypeAutoRun" in the right pane, which means that this key determines whether to execute the AutoRun function of CDROM or hard disk.

Double-click "NoDriveTypeAutoRun", in the default state (that is, you have not disabled the AutoRun function), you can see in the pop-up window "NoDriveTypeAutoRun"; the default key value is 95,00,00,00, attachment Uploaded the screenshot. The first value,  95” is a hexadecimal value, which is the sum of all devices that are prohibited from running automatically. Converting “95” to binary is 10010101, where each represents a device, and different devices in Windows will be represented by the following values:

Device Name Number of Values ​​The device uses the following values ​​to indicate the meaning of the device name

DKIVE_UNKNOWN 0 1 01h Unrecognized device type

DRIVE_NO_ROOT_DIR 1 0 02h Drive without root directory

DRIVE_REMOVABLE 2 1 04h Removable drive )

DRIVE_FIXED 3 0 08h Fixed drive (


DRIVE_REMOTE 4 1 10h Network drive

DRIVE_CDROM 5 0 20h Optical drive (CD-ROM)

DRIVE_RAMDISK 6 0 40h RAM Disk

Reserved 7 1 80h Unspecified drive type

Copyright © Windows knowledge All Rights Reserved