<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>New and Improved Start-Demo</title><link>http://blogs.msdn.com/powershell/archive/2007/06/03/new-and-improved-start-demo.aspx</link><description>Attached is a new and improved Start-Demo script. Here is a brief list of the differences: Fix bug for demo files that have a single line Intro text explains that this is a REAL demo Cleaned up HELP and added some usage notes Now emulates TYPING by introducing</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: New and Improved Start-Demo</title><link>http://blogs.msdn.com/powershell/archive/2007/06/03/new-and-improved-start-demo.aspx#3069014</link><pubDate>Mon, 04 Jun 2007 01:19:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3069014</guid><dc:creator>Maximilian Hänel</dc:creator><description>&lt;p&gt;Would you like to comment the following line:&lt;/p&gt;
&lt;p&gt;Invoke-Expression $(&amp;quot;.{&amp;quot; + $_lines[$_i] + &amp;quot;}| out-host&amp;quot;)&lt;/p&gt;
&lt;p&gt;Why not just writing:&lt;/p&gt;
&lt;p&gt;Invoke-Expression $_lines[$_i]&lt;/p&gt;
&lt;p&gt;It guess it has something to do with output formatting so you 'split' the output of each command by wrapping it in a separate scope so it gets its own formatting applied. But I'm not entirely sure what's going on here, especially the surrounding $() confuses me.&lt;/p&gt;
&lt;p&gt;Oh, nice script by the way! ;-)&lt;/p&gt;
&lt;p&gt;tia&lt;/p&gt;</description></item><item><title>leedesmond&amp;#8217;s blog  &amp;raquo; Blog Archive   &amp;raquo; Start-Demo - New &amp;#038; Improved</title><link>http://blogs.msdn.com/powershell/archive/2007/06/03/new-and-improved-start-demo.aspx#3069388</link><pubDate>Mon, 04 Jun 2007 01:48:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3069388</guid><dc:creator>leedesmond’s blog  » Blog Archive   » Start-Demo - New &amp; Improved</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.leedesmond.com/weblog/?p=116"&gt;http://www.leedesmond.com/weblog/?p=116&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: New and Improved Start-Demo</title><link>http://blogs.msdn.com/powershell/archive/2007/06/03/new-and-improved-start-demo.aspx#3073785</link><pubDate>Mon, 04 Jun 2007 09:56:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3073785</guid><dc:creator>Richard Siddaway</dc:creator><description>&lt;p&gt;I've used the older versions in a number of demos and they've been really useful. &amp;nbsp;I like the idea of being able to preview the commands - very useful. &amp;nbsp;Thanks&lt;/p&gt;</description></item><item><title>re: New and Improved Start-Demo</title><link>http://blogs.msdn.com/powershell/archive/2007/06/03/new-and-improved-start-demo.aspx#3083948</link><pubDate>Mon, 04 Jun 2007 20:39:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3083948</guid><dc:creator>JR</dc:creator><description>&lt;p&gt;For Maximilian Hanel - Check this post &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/powershell/archive/2007/03/07/invoke-expression.aspx"&gt;http://blogs.msdn.com/powershell/archive/2007/03/07/invoke-expression.aspx&lt;/a&gt; for an explanation of that line of code. &amp;nbsp;You're correct in that it's related to the variable scope.&lt;/p&gt;</description></item><item><title>Presentation and demo material - An Introduction to PowerShell</title><link>http://blogs.msdn.com/powershell/archive/2007/06/03/new-and-improved-start-demo.aspx#6785560</link><pubDate>Mon, 17 Dec 2007 04:10:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6785560</guid><dc:creator>Chris Green's Blah(g)</dc:creator><description>&lt;p&gt;Thank you to those of you who attended the Powershell session at the December 2007 Premier Briefing event&lt;/p&gt;
</description></item><item><title>re: New and Improved Start-Demo</title><link>http://blogs.msdn.com/powershell/archive/2007/06/03/new-and-improved-start-demo.aspx#9022723</link><pubDate>Wed, 29 Oct 2008 21:24:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9022723</guid><dc:creator>David Moravec</dc:creator><description>&lt;p&gt;Hi, thanks for superb script. I am using it a lot and it's my favourite one :)&lt;/p&gt;
&lt;p&gt;I only changed one small thing. Because it leaves title unchanged after the end of presentation (with time and command) I added &amp;nbsp;few lines of code to the begin ($originalWinTitle = $Host.UI.RawUI.WindowTitle) and the end/q ($Host.UI.RawUI.WindowTitle = $originalWinTitle)&lt;/p&gt;</description></item></channel></rss>