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 7. The pipeline, deeper

So far, you’ve learned to be pretty effective with PowerShell’s pipeline. Running commands like Get-Process | Sort VM -desc | ConvertTo-HTML | Out-File procs.html is pretty powerful, accomplishing in one line what used to take several lines of script. But you can do even better! In this chapter, we’ll dig deeper into the pipeline and uncover some of its most powerful capabilities.

7.1. The pipeline: enabling power with less typing

One of the reasons I like PowerShell so much is that it enables me to be a more effective administrator without having to write complex scripts, like I used to have to do in VBScript. But the key to powerful one-line commands lies in the way the PowerShell pipeline works.

Let me be ...

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