清除结果中的空值

Get-CimInstance -Classname Win32_NetworkAdapterConfiguration | Where {$_.IPAddress} | select -Property ipaddress
 
-OR-
 
Get-CimInstance -Classname Win32_NetworkAdapterConfiguration | select -ExpandProperty ipaddress | Sort-Object
原文地址:https://www.cnblogs.com/IvanChen/p/4488285.html