Disable annoying automatic playback to prevent virus intrusion

Source: Internet
Author: User

Recently we found that many autorun. inf-based viruses are rampant, and most of them are spread by USB flash drives. The best way is to disable the automatic playback function such as the USB flash drive and use the right-click function when enabled! You can disable the USB flash drive for automatic playback as follows:

How to Prevent the USB flash drive from running automatically:


1. Press SHIFT before inserting the USB flash drive to Prevent automatic operation. Wait until the prompt "this device is ready for use" is displayed. Do not double-click the USB flash drive. Right-click the USB flash drive and click it again.

2. Disable the automatic operation function of the disc and USB flash drive: click "start"-"run"-Enter "gpedit" in the lower left corner. choose msc & gt; Group Policy & gt; computer configuration & gt; management template & gt; System & gt; disable automatic playback & gt; Enable & gt; OK"

3. In Windows, you can use the following methods to allow or block automatic operation:

Find the following key in the registry:

Key Path: [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesExploer]

The "NoDriveTypeAutoRun" key in the right pane determines whether to perform the Autorun function. Each digit represents a device, and each device is represented by the following value:


The device name. The device name must contain the following values:
DRIVE_UNKNOWN 0 1 01 h unrecognized Type Device
DRIVE_NO_ROOT_DIR 1 0 02 h no driver for the 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.
As shown above, the corresponding DRIVE_NO_ROOT_DIR, DRIVE_FIXED, DRIVE_CDROM, and DRIVE_RAMDISK can be run automatically. To disable automatic disk operation, you must set the value of DRIVE_REMOVABLE to 1, because DRIVE_REMOVABLE represents a removable drive (that is, a USB flash drive ). 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.

This can avoid a lot of disgusting viruses, especially suitable for companies or people who often use USB flash drives to copy data to other computers.

 

Related Article

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.