Enable/Disable a device from command line using Devcon in Windows 7

If the device manager in Windows 7 is having problems or you need to enable/disable a specific device not found in device manager, you need to manually do it from command line using the “devcon tool.

Devcon for Windows XP

If you want to download the devcon utility for XP and know how to use it to enable/disable a device in XP, you can follow this devcon tutorial for xp.

Devcon for Windows 7

If you’re using Windows 7 and want to use devcon, you can read the following post on devcon problem solved for Windows 7. After installing the utility you can follow the below instructions to enable/disable a device from command-line using devcon.

Instructions to use Devcon in Windows 7

 

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 as:
    • 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 Series 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
  • 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
For more help on devcon commands, you can type devcon help.

share save 256 24 Enable/Disable a device from command line using Devcon in Windows 7

Related posts:

  1. Devcon problem in Windows 7 : [Solved]
  2. Command-Line Options for Windows 7 Performance Data
  3. How to Disable Hibernation in Windows 7
  4. How to Maximize Command Prompt Window to Full Screen in Windows 7
  5. How to Enable Hibernation in Windows 7 Start Menu
  6. How top Open Elevated Command-Prompt in Windows 7
  7. Disable Windows 7 Taskbar Preview! It Works!
  8. Disable-Stop-Remove Google Instant Search