Jump to content

enable and disable device from command line


Recommended Posts

Posted

Any idea how I can enable and disable a device from the command line?

I'm using the "Microsoft Loopback Adapter" to communicate with Virtual PC's. I would like to be able to switch this device on/off quickly.. If it's enabled when logging in on the corp. network, the login takes 'forever'.. I know that this is a bug in the login script, but that script is out of my hands..

-- fm


Posted

Use devcon utility.

Find the hwid of your virtual network.

devcon findall * | find "The name of your network card"

It's like PCI\VEN....

After to disable your card use devcon too

devcon disable  PCI\VEN...

You don't need to put full hwid. Few first charac. are enough ....

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...