1. 程式人生 > >powershell指令碼獲取當前閘道器

powershell指令碼獲取當前閘道器

$wmi = Get-WmiObject win32_networkadapterconfiguration -filter "ipenabled = 'true'"

$CGate = $wmi.DefaultIPGateway