Chapter 9. Filtering and comparisons
So far, we’ve been working with whatever output the shell gave us: all the processes, all the services, all of the event log entries, all of the hotfixes. That won’t always be what you want, though. In many cases, you’ll want to narrow the results down to a few items that specifically interest you. That’s what you’ll learn to do in this chapter.
9.1. Making the shell give you just what you need
The shell offers two broad models for narrowing down results, and they’re both referred to as filtering. In the first model, you try to instruct the cmdlet that’s retrieving information for you to only retrieve what you’re specifically after. In the second model, you take everything that the cmdlet gives you and ...