Your location:Tech News>OS>Window 2003>How to restart the network card in Win2003 without restarting the computer

Latest News

How to restart the network card in Win2003 without restarting the computer

Author:fsadmin

Views:

Method 1: Use netsh

RestartLan.bat

Copy code

u>The code is as follows:
rem is suitable for Win2003
rem After copying the ifmon.dll of Win2003 to WinXP WinXP can also use
rem to disable the network card
netsh interface set interface name=' Local connection' admin=DISABLED
rem enable network card
netsh interface set interface name='local connection' admin=ENABLED


Method 2: Use devcon.exe < br/>

Copy code The code is as follows:
@echo off
rem requires devcon.exe support
echo Please enter your choice : (N for disable network card Y for enable)
set/p SELECT=
if /i %SELECT%==Y set SELECT=ENABLE\u0026amp;GOTO :DO
if /i %SELECT %==N set SELECT=DISABLE
:DO
for /f 'tokens=2 delims=\u0026amp;' %%i in ('devcon find pci* ^| findstr 'Fast Ethernet'') do devcon %SELECT% *%%i*\u0026gt;NUL


devcon.exe script home download

?Why does the browser have a security warning every time a network visits in win2003?

Recommend article

Relate article