$wmi = Get-WmiObject win32_networkadapterconfiguration -filter "ipenabled = 'true'" $CIP = $wmi.IPAddress -notlike "*:*" write-host $CIP pause
获取当前主机IP
本文摘自 :https://www.cnblogs.com/
海量资源,尽在掌握
$wmi = Get-WmiObject win32_networkadapterconfiguration -filter "ipenabled = 'true'" $CIP = $wmi.IPAddress -notlike "*:*" write-host $CIP pause
获取当前主机IP
本文摘自 :https://www.cnblogs.com/