# make sure you have exactly ONE object $info = Get-ComputerInfo # find names of non-empty properties $filledProperties = $info.PSObject.Properties.Name.Where{![string]::IsNullOrWhiteSpace($info.$_)} | Sort-Object # turn object into a hash table and show in a grid view window $filledProperties | ForEach-Object { $hash = [Ordered]@{} } { $hash[$_] = $info.$_ } { $hash } | Out-GridView