$CurrentPath = $MyInvocation.MyCommand.Path.substring(0,$MyInvocation.MyCommand.Path.LastIndexOf(‘\‘)+1)
$devcon = Join-Path $CurrentPath devcon.exe
#使用devcon.exe工具安装Loopback网卡
cmd /c "$devcon install %WINDIR%\Inf\Netloop.inf *MSLOOP"
时间: 2024-11-10 15:28:19