February 2019
Intermediate to advanced
626 pages
15h 51m
English
Filtering the output from commands may be performed using Where-Object. For example, we might filter processes that started after 5 pm today:
Get-Process | Where-Object StartTime -gt (Get-Date 17:00:00)
The syntax shown in help for Where-Object does not quite match the syntax used here. The help text is as follows:
Where-Object [-Property] <String> [[-Value] <Object>] -GT ...
In the preceding example, we see the following:
Based on that, the example might be ...
Read now
Unlock full access