Tuesday, December 4, 2012

Disable/Enable your network card from the command line.

Save these commands as a .cmd file:

@ECHO OFF
CLS
ECHO Disabling network interfaces.
netsh interface set interface "Local Area Connection" DISABLE
netsh interface set interface "Wireless Network Connection" DISABLE
ECHO Enabling network interfaces
netsh interface set interface "Local Area Connection" ENABLE
netsh interface set interface "Wireless Network Connection" ENABLE
PAUSE


*This has only been tested with Windows 7