清除结果中的空值

Get-CimInstance -Classname Win32_NetworkAdapterConfiguration | Where {$_.IPAddress} | select -Property ipaddress
 
-OR-
 
Get-CimInstance -Classname Win32_NetworkAdapterConfiguration | select -ExpandProperty ipaddress | Sort-Object

你可能感兴趣的:(值)