PnPutil で NIC reset [Windows]
@echo off
whoami /priv | find "SeDebugPrivilege" > nul
if %errorlevel% neq 0 (
@powershell start-process %~0 -verb runas
exit
)
pnputil /restart-device "PCI\VEN_8086&DEV_&SUBSYS_&REV_&0&C8"
timeout /t 10 /nobreak >nul
netsh interface ipv4 show interface
ipconfig /all
pause
"PCI\..." のところは、実際のデバイスのデバイスインスタンスID
whoami /priv | find "SeDebugPrivilege" > nul
if %errorlevel% neq 0 (
@powershell start-process %~0 -verb runas
exit
)
pnputil /restart-device "PCI\VEN_8086&DEV_&SUBSYS_&REV_&0&C8"
timeout /t 10 /nobreak >nul
netsh interface ipv4 show interface
ipconfig /all
pause
"PCI\..." のところは、実際のデバイスのデバイスインスタンスID