Jeffry Snover and many other have used Start-Demo in powershell.exe
http://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 run
Import-Module ISEDemo.psm1 #(attached)
Start-Demo c:\path\to\demofile.txt
- Type enter to execute the command once its finished typing
- You can escape to clear and type some other command
- To get the next command again, execute a blank enter
- To skip, execute s or Move-SkipCommand
- To go back, execute b or Move-PreviousCommand
- To dump the demo contents, execute d or Write-DemoDump
- Stop-Demo returns you to a clean state
Demo files look like
# Get 10 lowest handle count processes
gps | sort handles | select -first 10
# Import all available modules
Get-Module -ListAvailable | Import-Module
Thanks,
Ibrahim Abdul Rahim [MSFT]
Windows PowerShell Test
This posting is provided “AS IS” with no warranties.
0 comments