Hosting PowerShell in a GUI

by Doug Finke on June 23, 2007

in PowerShell

Jeffrey Snover [MSFT] posts about the screencast by David Aiken’s.

David Aiken’s posts the code for the screencast.

The source includes two additional projects (the screencasts are coming).

The first project, the one featured in the screencast, shows how to:

  • Create a Runspace
  • Create a Pipline
  • Add a PowerShell Command
  • Capture the results after invoking the pipeline
  • Lastly, it does a ForEach through them and displays it in a ListView

Projects 2 and 3 bring Project 1 forward, by implementing PSHost and the third enables it for use as a snap-in the Microsoft Management Console version 3.0.

{ 1 trackback }

Development in a Blink » Blog Archive » Hosted PowerShell and LINQ
07.21.07 at 4:29 pm

{ 1 comment… read it below or add one }

1 Grant 06.23.07 at 6:42 pm

I have to say this is rather sweet!

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>