Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Anytime I introduce Where-Object in a class, I usually come across two main sticking points. I tried to hit those pretty hard in the preceding discussion, but if there’s any room left for doubt, let’s clear it up now.
You want your filtering criteria to go as close to the beginning of the command line as possible. If you can accomplish the filtering you need on the first cmdlet, do so; if not, try to filter in the second cmdlet so that the subsequent cmdlets have as little work to do as possible.