Role of NoDriveTypeAutoRun

Source: Internet
Author: User

The common autorun. inf file formats are roughly as follows:

[Autorun] // indicates that the autorun part starts and must be entered
Icon = C:/ixigua. ICO // specify a personalized drive letter icon for drive C. ICO
Open = C:/ixigua.exe // specify the path and name of the program to be run. The program runs automatically as long as the virus program is put here;

In Windows, you can use the following methods to allow and block automatic operation:

Find the following key in the registry:

Key Path: [HKEY_CURRENT_USER/software/Microsoft/Windows/CurrentVersion/policies/exploer]

The "NoDriveTypeAutoRun" key in the right pane determines whether to execute the autorun function. Each digit represents a device, and each device is represented by the following number.

Device Name Number of digits Value The device is represented by the following values: Device Name Description
Drive_unknown 0 1 01 H Unrecognized Type Device
Drive_no_root_dir 1 0 02 h Drive without root directory
Drive_removable 2 1 04 H Removable Drive
Drive_fixed 3 0 08 h Fixed drive
Drive_remote 4 1 10 h Network drive
Drive_cdrom 5 0 20 h Optical Drive
Drive_ramdisk 6 0 40 h RAM disk

Where: retain the drive type not specified for 7 1 80 h

The value "0" indicates that the device is running, and "1" indicates that the device is not running.

From the above we can see that the correspondingDrive_cdrom,Drive_no_root_dir, drive_fixed, and drive_ramdiskIs automatically run. To disable the automatic running of the autorun. inf file on the hard disk, you mustDrive_fixedSet the values of these keys1Because drive_fixed represents a fixed Driver (hard disk ). If you only want to disable the autorun function of the software disc, but retain the automatic playback capability of the CD audio disc, you only need to change the "NoDriveTypeAutoRun" key value to: BD, 00.
The USB flash drive virus uses this system feature. Generally, after infection, the registry of the system is modified, and the option of displaying all files is disabled. Or even modify the Disk Association. Anti-virus software usually only clears the virus files, but does not process the residual files. This is also the reason why common anti-virus software is often unable to be cleared, or the disk cannot be opened by double-clicking after cleanup.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.