Automating the world one-liner at a time…
Jeffry Snover and many other have used Start-Demo in powershell.exehttp://blogs.msdn.com/powershell/archive/2007/03/03/start-demo-help-doing-demos-using-powershell.aspx
Continuing the tradition, we now have ISEDemo.psm1
To use it, start ISE and runImport-Module ISEDemo.psm1 #(attached)Start-Demo c:\path\to\demofile.txt
Demo files look like
# Get 10 lowest handle count processesgps | sort handles | select -first 10# Import all available modulesGet-Module -ListAvailable | Import-Module
Thanks,Ibrahim Abdul Rahim [MSFT]Windows PowerShell TestThis posting is provided “AS IS” with no warranties.
PingBack from http://microsoft-sharepoint.simplynetdev.com/do-powershell-demos-in-the-ise/
Thank you for this great tool!I'm going to use it next week in a presentation i'll give at my university!
As a note, if you are using windows 7 you will have to search and replace the string CurrentOpenedRunspace with CurrentPowerShellTab. The ISE bundled with windows 7RC1 seems to come with a new version of powershell.