[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1067
  • Last Modified:

enable / disable network interface through scripts.

Hello
How can I enable / disable a network card on windows 2003 through a .bat script?
0
eggster34
Asked:
eggster34
  • 3
2 Solutions
 
Rob WilliamsCommented:
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
 
sirbountyCommented:
If that's not it, you may can get this working with devcon...http://support.microsoft.com/kb/311272
0
 
Rob WilliamsCommented:
netsh works on 2003 but you will need sirbounty's option if using XP or other.
0
 
Rob WilliamsCommented:
Thanks eggster34.
Cheers !
--Rob
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now