SSブログ

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

nice!(0)  コメント(0) 

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。