April 2024
Beginner to intermediate
336 pages
8h 51m
English
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.
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 ...