清除结果中的空值

Get-CimInstance -Classname Win32_NetworkAdapterConfiguration | Where {$_.IPAddress} | select -Property ipaddress
 
-OR-
 
Get-CimInstance -Classname Win32_NetworkAdapterConfiguration | select -ExpandProperty ipaddress | Sort-Object
posted @ 2015-05-08 17:17  dongdonggeorge  阅读(195)  评论(0编辑  收藏  举报