Thursday, September 12, 2013

How to Disable and Enable the network adapter from cmd in XP

Recently I have come across this problem. With very few precise tutorial available on this, I have decided to dedicate one of my post to it.
Suppose you want to enable and disable the network adapter from the command line of windows xp.
First you need the devcon utility downloadable from here:
  • unzip the devcon.zip folder
  • you will have two folder I386 and ia64 , and one file EULA
  • copy the devcon.exe from i386 if you have a 32 bit system or  from ia64 if you have a 64 bit system.
  • Paste the devcon.exe inside C://Windows/System32/
 Secondly get the device instance ID of the NIC by:
 
  • Right click Start --->Right click computer ---> manage
  •  the manage window appears as follows , then go to Device Manager:
  • Click on Device Manager to expand it, then  at the right side click on Network adapters and right the specific adapter listed below ---> Properties:
  • Under properties ---> Details 
  •  Here the ID will be *DEV_1094*
  Finally , Now that our devcon utility is installed and the device id obtained. Let go to the command prompt ( Start ---> run (cmd) ---> Enter ).

To disable :

C: >  devcon disable *DEV_1094*

To enable :

C:> devcon enable *DEV_1094*


This process can be easily applied to other hardware devices like printer, key board, mouse and more.
Hope you find it useful.

No comments:

Post a Comment