?
Solved

enable / disable network interface through scripts.

Posted on 2007-03-22
4
Medium Priority
?
1,016 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 77

Accepted Solution

by:
Rob Williams earned 1200 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 800 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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

770 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