Question : enable / disable network interface through scripts.

Hello
How can I enable / disable a network card on windows 2003 through a .bat script?

Answer : enable / disable network interface through scripts.

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.
Random Solutions  
 
programming4us programming4us