I have a little concern about Out-GridView. Let me explain:
if you go for
Get-Process|Out-GridView, you can now filter on standards columns as we get them by the Default View (DotNetTypes.format.ps1xml). First question, why don’t we see raw data instead? It seems that Out-GridView came after a Format-Table, which is impossible. Second, if you try to filter the CPU values, you’re not filtering numeric values (as with PM for example) but strings.
I tried to select my data first:
Same result, even if a Get-Member tells me my Select returns a numeric in CPU.
The only thing that works, was to use a Select -ExpandProperty, which is not what I’m trying to do…