Enable/disable a device from the command line

Source: Internet
Author: User
Tags microsoft website

Enable/disable a device from the command line

  • Install devcon
  • Display all the devices in the system
  • Enable/disable the device
  • Other devices

This article lets users enable/disable a tag from command line in a few easy steps.
The document shows how to carry out this activity on Windows XP by installing devcon. the link to download this is provided in the article. this software displays all devices and thus the user can enable or disable a device according to his requirement. the
Commands for the same are encoded in the article.

This allows for example to enable/disable your Internet connection (or network card) on the command line.

Install devcon
  • 1. Download it on Microsoft Website:
    Link
  • 2. Unpack the file, once downloaded
  • 3. Copy\ I386 \ devcon.exeToC: \ windows \ system32
  • 4. Locate the device that you want: In the command prompt type:
    devcon find *

Display all the devices in the system
  • In the command prompt, type

    devcon find *> list.txt 
    • To get the list in a file.
  • For example, my network card accton appears:
    • PCI\VEN_1113&DEV_1211&SUBSYS_12111113&REV_10\3&13C0B0C5&0&48: Accton EN1207D Series PCI Fast Ethernet Adapter #2 

To choose a piece of the string that identifies the device, and verify it is unique:

c:\>devcon find *VEN_1113  PCI\VEN_1113&DEV_1211&SUBSYS_12111113&REV_10\3&13C0B0C5&0&48: Accton EN1207D Ser  ies PCI Fast Ethernet Adapter #2  1 matching device(s) found.

Make be sure that "ven_1113" means a single network card.

Enable/disable the device

devcon disable *VEN_1113   devcon enable *VEN_1113 

This allows me to enable/disable my network card (and therefore my Internet connection) from the command line.

Other devices
  • The floppy disk drive is:

    • ACPI\PNP0700\3&13C0B0C5&0 : standard disk controller
  • To disable/enable it at will:
    • devcon disable * PNP0700 
    • This eliminated the floppy drive system!
  • To prevent your computer from beeping:
    • ROOT\LEGACY_BEEP\0000 : Beep

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.