28 January 2009 0 Comments

Getting Alternate Streams (Verbose, Progress, Debug) with the PowerShell API

Dozens of people could write dozens of books on all of the cool stuff we improved in V2 of PowerShell.  One of the nice little things we did was give a more understandable API than Pipeline (which is the class you can use to invoke code from C# in V1).  This API is called the PowerShell API, and one of the improvements it makes is the ability to get to alternate data streams. Alternate data streams are a particularly fun thing about PowerShell. While you can have a lot of output streams in DOS, it was anyone’s guess exactly what any of them were.  PowerShell has several alternate data streams that have interesting information.  They are: Verbose, Warning, Debug, Error, and Progress.

Read the rest here:
Getting Alternate Streams (Verbose, Progress, Debug) with the PowerShell API

If you liked this post, buy me a Coffee.

Leave a Reply