Enable & Disable Network Connections Via Command Line?

T

Teffy

Is there a way to enable and disable network connections via command
line? When my laptop running Windows XP Home comes out of
hibernation, the wireless connection says it is enabled, but it
doesn't work until I disable and re-enable it.

I would like to use the freeware MacroMaker to create a macro which
will disable the wireless connection then enable it. The macro would
be more reliable if I can create it from keystrokes rather than mouse
movements, so I'm looking for commands.

Thanks,
Teffy
 
R

Richard G. Harper

Have you tried not letting the wireless adapter go into standby mode? Open
up Device Manager, open the properties for your adapter, and on the Power
tab un-check the option to let Windows power down the device.
 
T

Teffy

It looks like it already is: under adapter properties, Advanced tab,
Power Save Mode property value = Off (as opposed to Maximum or
Normal).

Thanks anyway,
Teffy

Richard G. Harper said:
Have you tried not letting the wireless adapter go into standby mode? Open
up Device Manager, open the properties for your adapter, and on the Power
tab un-check the option to let Windows power down the device.

--
Richard G. Harper [MVP Win9x] (e-mail address removed)
* PLEASE post all messages and replies in the newsgroups
* for the benefit of all. Private mail is usually not replied to.
* HELP us help YOU ... http://www.dts-l.org/goodpost.htm


Teffy said:
Is there a way to enable and disable network connections via command
line? When my laptop running Windows XP Home comes out of
hibernation, the wireless connection says it is enabled, but it
doesn't work until I disable and re-enable it.

I would like to use the freeware MacroMaker to create a macro which
will disable the wireless connection then enable it. The macro would
be more reliable if I can create it from keystrokes rather than mouse
movements, so I'm looking for commands.

Thanks,
Teffy
 
T

Teffy

Very cool! At the command prompt,

devcon enable <adapter specification>

does the trick! Now, I just need to get the commands to work in a
macro. Thanks a bunch!!!

Teffy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top