$wmi = Get-WmiObject win32_networkadapterconfiguration -filter "ipenabled = 'true'" $CIP = $wmi.IPAddress -notlike "*:*" write-host $CIP pause
獲取當(dāng)前主機(jī)IP
本文摘自 :https://www.cnblogs.com/
海量資源,盡在掌握
$wmi = Get-WmiObject win32_networkadapterconfiguration -filter "ipenabled = 'true'" $CIP = $wmi.IPAddress -notlike "*:*" write-host $CIP pause
獲取當(dāng)前主機(jī)IP
本文摘自 :https://www.cnblogs.com/