November 2018
Intermediate to advanced
566 pages
17h 15m
English
Filtration of the output is very simple in PowerShell. Given that the content output is an object, we could simply use the properties from within the object for the filtration.
This recipe shows two modes of filtration:
The Property parameter accepts only one property. A conditional operator and a value for comparison are added to the statement to filter the output.
The FilterScript parameter, on the other hand, can handle more complex filtration, for example, when we need the output to meet several conditions.
A significant difference between using Property and FilterScript is the use of the automatic ...
Read now
Unlock full access