How to restart the network card when Win2003 does not restart the computer

  

Method 1: Use netsh RestartLan.bat
Copy code
The code is as follows: rem Applicable to Win2003 rem Copy Win2003 ifmon.dll to WinXP WinXP can also use rem to disable 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 two: use devcon.exe
copy code
code is as follows: @echo off Rem requires devcon.exe support echo Please enter your choice: (disable NIC to N, enable Y) set/p SELECT= if /i %SELECT%==Y set SELECT=ENABLE&GOTO :DO if /i % SELECT%==N set SELECT=DISABLE :DO for /f "tokens=2 delims=&" %%i in ('devcon find pci* ^

Copyright © Windows knowledge All Rights Reserved