Computer Library windows 2008 exchange server power shell security register

Simplify Most Where-Object Filters

The Where-Object cmdlet is incredibly powerful, in that it allows you to filter your output based on arbitrary criteria. For extremely simple filters (such as filtering based only on a comparison to a single property), though, the syntax can get a little ungainly:
        Get-Process | Where-Object { $_.Handles -gt 1000 }

For this type of situation, [...]


Filter Items in a List or Command Output

Recipe 2.1. Filter Items in a List or Command Output
1. Problem
You want to filter the items in a list or command output.
2. Solution
Use the Where-Object cmdlet (which has the standard aliases, where and ?) to select items in a list (or command output) that match a condition you provide.
To list all running processes that have [...]


Pipelines

2.1. Introduction
One of the fundamental concepts in a shell is called the pipeline. It also forms the basis of one of the most significant advances that PowerShell brings to the table. A pipeline is a big name for a simple concept—a series of commands where the output of one becomes the input of the next. [...]