3 ms·
|? PropertyName -gt 5 # where-object filter numbers |? PropertyName -match 'text' # where-object filter text |? {$_.thing ...}
by jodrellblank 2y ago
|? PropertyName -gt 5 # where-object filter numbers
|? PropertyName -match 'text' # where-object filter text
|? {$_.thing ...} # where-object filter script
|% PropertyName # same as select-object -expandproperty propertyname
|% { $_.thing } # foreach loop
|sort
|sort prop1, prop2
|sort {$_.Name.Substring(0,5) -as [int]} # sort calculated thing
|fl * # format-list , all properties
|ft -auto # format-table, autosize table column widths
|sv q # set-variable -name q, same as $q = <...>
|tee -var q # same but show the results as well as storing in q
- ethbr1 2y agoHelpful! Thanks!