Solved

enable / disable network interface through scripts.

Posted on 2007-03-22
4
940 Views
Last Modified: 2008-01-09
Hello
How can I enable / disable a network card on windows 2003 through a .bat script?
0
Comment
Question by:eggster34
  • 3
4 Comments
 
LVL 77

Accepted Solution

by:
Rob Williams earned 300 total points
ID: 18773509
To disable:
netsh interface set interface “Local Area Connection” disabled
To enable:
netsh interface set interface “Local Area Connection” enabled

Must be run by an admin, and spelling of your network adapter name, such as; “Local Area Connection”, must be exact.
0
 
LVL 67

Assisted Solution

by:sirbounty
sirbounty earned 200 total points
ID: 18773525
If that's not it, you may can get this working with devcon...http://support.microsoft.com/kb/311272
0
 
LVL 77

Expert Comment

by:Rob Williams
ID: 18773558
netsh works on 2003 but you will need sirbounty's option if using XP or other.
0
 
LVL 77

Expert Comment

by:Rob Williams
ID: 18776004
Thanks eggster34.
Cheers !
--Rob
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

What is IRC? IRC (Internet Relay Chat) is a form of communication between multiple users. It is available freely to anyone with inernet access. IRC is a great way to communicate with others e.g. There is an IRC channel for Ubuntu Linux, which is fo…
This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now