7.7. Summary

The where-object cmdlet allows you to filter objects passing along a pipeline to reduce or eliminate unwanted results. The value of the -filterScript parameter is used to determine whether an object is passed along the pipeline or is discarded.

The select-object cmdlet allows you to select specified objects or properties for further processing in a pipeline. The -first and -last parameters allow you selectively to process a specified number of elements at the beginning or end of an array. When used with sorted data these parameters allow you to select a specified number of the highest or lowest values in a data set.

The formatting of objects for display in Windows PowerShell is carried out using the default formatter. The format-table cmdlet allows you to more selectively display data or to customize the appearance of selected data. The format-list cmdlet allows you to display data in a list format.

Get Professional Windows® PowerShell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.