{"id":4161,"date":"2009-04-21T19:51:00","date_gmt":"2009-04-21T19:51:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2009\/04\/21\/do-powershell-demos-in-the-ise\/"},"modified":"2019-02-18T13:12:41","modified_gmt":"2019-02-18T20:12:41","slug":"do-powershell-demos-in-the-ise","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/do-powershell-demos-in-the-ise\/","title":{"rendered":"Do PowerShell Demos in the ISE"},"content":{"rendered":"<p>Jeffry Snover and many other have used Start-Demo in powershell.exe<br \/><a href=\"http:\/\/blogs.msdn.com\/powershell\/archive\/2007\/03\/03\/start-demo-help-doing-demos-using-powershell.aspx\">http:\/\/blogs.msdn.com\/powershell\/archive\/2007\/03\/03\/start-demo-help-doing-demos-using-powershell.aspx<\/a><\/p>\n<p>Continuing the tradition, we now have ISEDemo.psm1<\/p>\n<p>To use it, start ISE and run<br \/>Import-Module ISEDemo.psm1 #(attached)<br \/>Start-Demo c:\\path\\to\\demofile.txt<\/p>\n<ol>\n<li>Type enter to execute the command once its finished typing<\/li>\n<li>You can escape to clear and type some other command<\/li>\n<li>To get the next command again, execute a blank enter<\/li>\n<li>To skip, execute s or Move-SkipCommand<\/li>\n<li>To go back, execute b or Move-PreviousCommand<\/li>\n<li>To dump the demo contents, execute d or Write-DemoDump<\/li>\n<li>Stop-Demo returns you to a clean state<\/li>\n<\/ol>\n<p>Demo files look like<\/p>\n<p># Get 10 lowest handle count processes<br \/>gps | sort handles | select -first 10<\/p>\n<p># Import all available modules<br \/>Get-Module -ListAvailable | Import-Module<\/p>\n<p>Thanks,<br \/>Ibrahim Abdul Rahim [MSFT]<br \/>Windows PowerShell Test<br \/>This posting is provided \u201cAS IS\u201d with no warranties.<\/p>\n<p><a href=\"https:\/\/msdnshared.blob.core.windows.net\/media\/MSDNBlogsFS\/prod.evol.blogs.msdn.com\/CommunityServer.Components.PostAttachments\/00\/09\/56\/07\/68\/ISEDemo.psm1\">ISEDemo.psm1<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 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 [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[137,260],"class_list":["post-4161","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell","tag-ctp3","tag-powershell-ise"],"acf":[],"blog_post_summary":"<p>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 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 [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/4161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=4161"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/4161\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=4161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=4161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=4161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}