Jump to content

enable and disable device from command line


fmeltzer

Recommended Posts

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

Link to comment
Share on other sites


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 ....

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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