O'Reilly logo

Learn Windows PowerShell in a Month of Lunches by Don Jones

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required