Enable/disable Network components from the command line

G

Guest

I need to enable/disable a Network component from the command line. Anyone
that knows if it´s possible and what command to use?

I use scripts to change ip-addresses and start and stop services. I also
need to be able to enable and disable network components on the connection.
 
C

Chuck

I need to enable/disable a Network component from the command line. Anyone
that knows if it´s possible and what command to use?

I use scripts to change ip-addresses and start and stop services. I also
need to be able to enable and disable network components on the connection.

Tom,

I can refer you to two scriptable commands. Network components that can't be
easily disabled by netsh might be controllable as a service, by SC.
# Netsh - display or modify the network configuration.
<http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/netsh.mspx>
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/netsh.mspx
# SC - communicate with the Service Controller.
<http://support.microsoft.com/?kbid=166819>
http://support.microsoft.com/?kbid=166819
 

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