Skip to Main Content
Learn PowerShell Scripting in a Month of Lunches, Second Edition
book

Learn PowerShell Scripting in a Month of Lunches, Second Edition

by James Petty, Jeffery Hicks, Don Jones
April 2024
Beginner to intermediate content levelBeginner to intermediate
336 pages
8h 51m
English
Manning Publications
Content preview from Learn PowerShell Scripting in a Month of Lunches, Second Edition

13 Using all the streams

You may need to flip back a few chapters and refamiliarize yourself with the [CmdletBinding()] keyword. We can add this to a Param() block, which turns our function into an advanced function that enables the commands for verbose, warning, informational, and other output. Well, it’s time to put that to use and demonstrate why you’d want to use them.

13.1 Knowing the seven output streams

It’s helpful to understand that PowerShell has seven output streams rather than the one we normally think of. First up, and the one you’re most familiar with, is the Success stream, which you’re used to thinking of as “the end of the pipeline.” This gets some special treatment from the PowerShell engine. For example, it’s the pipeline used ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn PowerShell Scripting in a Month of Lunches

Learn PowerShell Scripting in a Month of Lunches

Jeffery Hicks, Don Jones
Learn PowerShell in a Month of Lunches, Fourth Edition

Learn PowerShell in a Month of Lunches, Fourth Edition

Tyler Leonhardt, Travis Plunk, James Petty

Publisher Resources

ISBN: 9781633438989Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link