Solved

enable / disable network interface through scripts.

Posted on 2007-03-22
4
982 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 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
crome notebooks port for dongle or data card and application level control 3 50
Server 2016 WSUS 7 88
X2 to x0 on sonicwall tz200 1 49
PXE boot for ESXi on CENTOS 7 25 110
Let’s list some of the technologies that enable smooth teleworking. 
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

732 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