First, Thanks to all who attend my last night presentation on How-to host your PowerShell script in a Windows Application. In this session I was using PowerShell Version 2 CTP2, Programmer’s Notepad 2, and Visual Studio 2008 SP1. Also, I was running Virtual PC 2007 with two virtual machines: one a Domain Controller and an SQL Server 2008 RC0. I also mention that Windows Vista SP1 includes Windows PowerShell, look under "Control Panel | Add/Remove programs" and on the left-hand side menu click on "Turn Windows features on or off". Keep in mind, this is PowerShell RTM Version 1.
Please use Virtual PC 2007 and built a virtual machine if you want to experiment with PowerShell Version 2 CTP2.
Back to our PS Hosting materials and as I promised… Here’s my presentation material, all working sample for you to try out. I’m including:
1. two PS functions: Out-Datagrid.txt and Start-Demo.ps1 (plus documentation)
2. A Sample Code file and documentation.
3. Powerpoint presentation.
4. A working (yes is working) Visual Studio 2008 solution – PSHosting Template.