Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 2.0 » Where-Object

Where-Object - Powershell 2.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Where-Object

Short description
Creates a filter that controls which objects will be passed along a command pipeline.

Syntax
Where-Object [-FilterScript] <scriptblock> [-InputObject <psobject>] [<CommonParameters>]

Description
The Where-Object cmdlet selects objects from the set of objects that are passed to it. It uses a script block as a 
filter and evaluates the script block for each object. If the result of the evaluation is True, the object is retur
ned. If the result of the evaluation is not True, the object is ignored.