1. 程式人生 > >powershell指令碼獲取當前IPv4地址

powershell指令碼獲取當前IPv4地址

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

$CIP = $wmi.IPAddress -notlike "*:*"