<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://thepowershellguy.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>The PowerShell Guy</title><link>http://thepowershellguy.com/blogs/posh/default.aspx</link><description>get-Shell | where {$_.pipeline -contains Objects}</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.2)</generator><item><title>Hey PowerShell Guy !, How Can I Retrieve All the Values in a Registry Key?</title><link>http://thepowershellguy.com/blogs/posh/archive/2008/04/08/hey-powershell-guy-how-can-i-retrieve-all-the-values-in-a-registry-key.aspx</link><pubDate>Tue, 08 Apr 2008 17:10:00 GMT</pubDate><guid isPermaLink="false">631293ba-543e-4263-9ae4-d16ceb84d9a6:15895</guid><dc:creator>MoW</dc:creator><slash:comments>3</slash:comments><comments>http://thepowershellguy.com/blogs/posh/comments/15895.aspx</comments><wfw:commentRss>http://thepowershellguy.com/blogs/posh/commentrss.aspx?PostID=15895</wfw:commentRss><wfw:comment>http://thepowershellguy.com/blogs/posh/rsscomments.aspx?PostID=15895</wfw:comment><description>&lt;P&gt;Today's Hey Scripting Guy ! column , &lt;A class=bl_itemtitle title="Site: New Additions to the TechNet Script Center" href="http://www.microsoft.com/technet/scriptcenter/resources/qanda/apr08/hey0408.mspx" target=_blank&gt;How Can I Retrieve All the Values in a Registry Key?&lt;/A&gt;&amp;nbsp;, Shows a 38 line VbScript to get the Values in a registry key.&lt;/P&gt;
&lt;P&gt;In a PowerShell console&amp;nbsp;it just takes this simple line to do the same :&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;get-ItemProperty 'hkcu:\Software\Microsoft\Internet Explorer\Main'&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The big difference in this case is that in the VbScript version the script has to handle all the parsing itself, as&amp;nbsp;with the PowerShell command shown above , the parser does all the hard work for us, you can see&amp;nbsp;below as&amp;nbsp;we look at&amp;nbsp;some array Properties in more detail, that the Parser did &lt;EM&gt;"understand"&lt;/EM&gt; them and converted them to for us on-the-fly :&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;PoSH&amp;gt; (get-ItemProperty 'hkcu:\Software\Microsoft\Internet Explorer\Main').Do404Search&lt;BR&gt;1&lt;BR&gt;0&lt;BR&gt;0&lt;BR&gt;0&lt;BR&gt;PoSH &amp;gt; (get-ItemProperty 'hkcu:\Software\Microsoft\Internet Explorer\Main').Window_Placement | get-member&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; TypeName: System.Byte&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MemberType Definition&lt;BR&gt;----&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ---------- ----------&lt;BR&gt;CompareTo&amp;nbsp;&amp;nbsp; Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Int32 CompareTo(Object value), System.Int32 CompareTo(Byte value)&lt;BR&gt;Equals&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Boolean Equals(Object obj), System.Boolean Equals(Byte obj)&lt;BR&gt;GetHashCode Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Int32 GetHashCode()&lt;BR&gt;GetType&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Type GetType()&lt;BR&gt;GetTypeCode Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.TypeCode GetTypeCode()&lt;BR&gt;ToString&amp;nbsp;&amp;nbsp;&amp;nbsp; Method&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.String ToString(), System.String ToString(String format), System.String ToString(IForm...&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;And when you are in the right location you can replace the complete Vbscript by &lt;STRONG&gt;3 Characters&lt;/STRONG&gt; in the PowerShell console&amp;nbsp;;-)&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;PS HKCU:\Software\Microsoft\Internet Explorer\Main&amp;gt; gp .&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;STRONG&gt;Disable Script Debugger&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : no&lt;BR&gt;Anchor Underline&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : yes&lt;BR&gt;Cache_Update_Frequency&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Once_Per_Session&lt;BR&gt;Display Inline Images&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : yes&lt;BR&gt;Do404Search&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : {1, 0, 0, 0}&lt;BR&gt;Local Page&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : C:\Windows\system32\blank.htm&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;... ...&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So also when you don't want no stinkin' scripts,&amp;nbsp;PowerShell is the Shell for you ;-)&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Enjoy,&lt;/P&gt;
&lt;P&gt;Greetings /\/\o\/\/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://thepowershellguy.com/aggbug.aspx?PostID=15895" width="1" height="1"&gt;</description><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/PowerShell/default.aspx">PowerShell</category><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/Hey_2100_/default.aspx">Hey!</category></item><item><title>Hey PowerShellGuy!,How Can I Check to See if Two Lines of Text are in a File and, If They Are Not, Append Those Lines to the File?</title><link>http://thepowershellguy.com/blogs/posh/archive/2008/04/07/hey-powershellguy-how-can-i-check-to-see-if-two-lines-of-text-are-in-a-file-and-if-they-are-not-append-those-lines-to-the-file.aspx</link><pubDate>Mon, 07 Apr 2008 21:16:00 GMT</pubDate><guid isPermaLink="false">631293ba-543e-4263-9ae4-d16ceb84d9a6:15889</guid><dc:creator>MoW</dc:creator><slash:comments>0</slash:comments><comments>http://thepowershellguy.com/blogs/posh/comments/15889.aspx</comments><wfw:commentRss>http://thepowershellguy.com/blogs/posh/commentrss.aspx?PostID=15889</wfw:commentRss><wfw:comment>http://thepowershellguy.com/blogs/posh/rsscomments.aspx?PostID=15889</wfw:comment><description>&lt;H3&gt;&lt;A class=bl_itemtitle title="Site: New Additions to the TechNet Script Center" href="http://www.microsoft.com/technet/scriptcenter/resources/qanda/apr08/hey0407.mspx" target=_blank&gt;How Can I Check to See if Two Lines of Text are in a File and, If They Are Not, Append Those Lines to the File?&lt;/A&gt;&lt;/H3&gt;
&lt;P&gt;
&lt;TABLE class="" cellSpacing=0 cellPadding=0&gt;

&lt;TR&gt;
&lt;TD class=article class="article"&gt;Translation to PowerShell of a &amp;nbsp;Hey, Scripting Guy! column that shows you how to check a text file for specific lines containing double quote marks and add those lines if it they don't exist. &lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;$l = 'pref("general.config.obscure_value", 0);',&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'pref("general.config.filename", "mozilla.cfg");'&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;$f = @(get-content all.js)&lt;BR&gt;$l |% {if (-not($f -contains $_)) {$f += $_}}&lt;BR&gt;set-content all.js $f&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Enjoy,&lt;/P&gt;
&lt;P&gt;Greetings /\/\o\/\/&lt;/P&gt;&lt;img src="http://thepowershellguy.com/aggbug.aspx?PostID=15889" width="1" height="1"&gt;</description><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/PowerShell/default.aspx">PowerShell</category><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/Hey_2100_/default.aspx">Hey!</category></item><item><title>Hey PowerShell Guy !,How Can I Separate The Month From the Year in a Date String Like 122007?</title><link>http://thepowershellguy.com/blogs/posh/archive/2008/04/04/hey-powershell-guy-how-can-i-separate-the-month-from-the-year-in-a-date-string-like-122007.aspx</link><pubDate>Sat, 05 Apr 2008 00:11:00 GMT</pubDate><guid isPermaLink="false">631293ba-543e-4263-9ae4-d16ceb84d9a6:15886</guid><dc:creator>MoW</dc:creator><slash:comments>1</slash:comments><comments>http://thepowershellguy.com/blogs/posh/comments/15886.aspx</comments><wfw:commentRss>http://thepowershellguy.com/blogs/posh/commentrss.aspx?PostID=15886</wfw:commentRss><wfw:comment>http://thepowershellguy.com/blogs/posh/rsscomments.aspx?PostID=15886</wfw:comment><description>&lt;P&gt;&lt;A class=bl_itemtitle title="Site: New Additions to the TechNet Script Center" href="http://www.microsoft.com/technet/scriptcenter/resources/qanda/apr08/hey0403.mspx" target=_blank&gt;How Can I Separate The Month From the Year in a Date String Like 122007?&lt;/A&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;[datetime]::ParseExact(122007,'Myyyy',$null) | ft Month,Year&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can see you can use ParseExact to convert a custom format&amp;nbsp;to d dateTime OBject from there it&amp;nbsp;is simple of course&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;PS&amp;gt; [datetime]::ParseExact(122007,'Myyyy',$null)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;zaterdag 1 december 2007 0:00:00&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;STRONG&gt;PS l&amp;gt; [datetime]::ParseExact(122007,'Myyyy',$null) | fl Month,Year&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;STRONG&gt;Month : 12&lt;BR&gt;Year&amp;nbsp; : 2007&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Enjoy,&lt;/P&gt;
&lt;P&gt;Greetings /\/\o\/\/&lt;/P&gt;&lt;img src="http://thepowershellguy.com/aggbug.aspx?PostID=15886" width="1" height="1"&gt;</description><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/PowerShell/default.aspx">PowerShell</category><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/DateTime/default.aspx">DateTime</category><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/Hey_2100_/default.aspx">Hey!</category></item><item><title>Hey PowerShellGuy !, How Can I Determine the Currency Symbol in Use on a Computer?</title><link>http://thepowershellguy.com/blogs/posh/archive/2008/04/04/hey-powershellguy-how-can-i-determine-the-currency-symbol-in-use-on-a-computer.aspx</link><pubDate>Fri, 04 Apr 2008 23:33:00 GMT</pubDate><guid isPermaLink="false">631293ba-543e-4263-9ae4-d16ceb84d9a6:15885</guid><dc:creator>MoW</dc:creator><slash:comments>1</slash:comments><comments>http://thepowershellguy.com/blogs/posh/comments/15885.aspx</comments><wfw:commentRss>http://thepowershellguy.com/blogs/posh/commentrss.aspx?PostID=15885</wfw:commentRss><wfw:comment>http://thepowershellguy.com/blogs/posh/rsscomments.aspx?PostID=15885</wfw:comment><description>&lt;P&gt;From the Scripting&amp;nbsp;Son article&amp;nbsp; : &lt;A class=bl_itemtitle title="Site: New Additions to the TechNet Script Center" href="http://www.microsoft.com/technet/scriptcenter/resources/qanda/apr08/hey0404.mspx" target=_blank&gt;How Can I Determine the Currency Symbol in Use on a Computer?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3 ways to do the same&amp;nbsp;in PowerShell :&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;(gp 'hkcu:\Control panel\International').sCurrency&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;(get-culture).NumberFormat.CurrencySymbol&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;'{0:c}' -f 1&lt;/STRONG&gt;&lt;BR&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And yes we can do it remote also :&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;$Computer = 'Mow2008'&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;[Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('CurrentUser',$computer).OpenSubKey('Control panel\International').GetValue('sCurrency')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Or of course use the registry provider as I show below, only problem in all cases, when you are in the Euro region, as I am, &amp;nbsp;in Asci there is no euro symbol so you get only a question mark&amp;nbsp;instead (as in the original ;-) ) &amp;nbsp;:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;PS HKCU:\Control panel\International&amp;gt; gp . sCurrency&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;sCurrency&lt;BR&gt;---------&lt;BR&gt;?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Enjoy,&lt;/P&gt;
&lt;P&gt;Greetings /\/\o\/\/&lt;/P&gt;&lt;img src="http://thepowershellguy.com/aggbug.aspx?PostID=15885" width="1" height="1"&gt;</description><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/PowerShell/default.aspx">PowerShell</category><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/Registry/default.aspx">Registry</category><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/Hey_2100_/default.aspx">Hey!</category></item><item><title>PowerShell WMI explorer update for PowerShell V2 CTP</title><link>http://thepowershellguy.com/blogs/posh/archive/2008/03/05/powershell-wmi-explorer-update-for-powershell-v2-ctp.aspx</link><pubDate>Wed, 05 Mar 2008 22:16:00 GMT</pubDate><guid isPermaLink="false">631293ba-543e-4263-9ae4-d16ceb84d9a6:15838</guid><dc:creator>MoW</dc:creator><slash:comments>17</slash:comments><comments>http://thepowershellguy.com/blogs/posh/comments/15838.aspx</comments><wfw:commentRss>http://thepowershellguy.com/blogs/posh/commentrss.aspx?PostID=15838</wfw:commentRss><wfw:comment>http://thepowershellguy.com/blogs/posh/rsscomments.aspx?PostID=15838</wfw:comment><description>&lt;P&gt;I got a question from&amp;nbsp;&lt;A class="" href="http://thepowershellguy.com/blogs/posh/archive/2007/03/22/powershell-wmi-explorer-part-1.aspx#15825"&gt;Dee&lt;/A&gt; about using alternate credentials with my PowerShell&amp;nbsp;&lt;A href="http://thepowershellguy.com/blogs/posh/archive/tags/WMI+Explorer/default.aspx" rel=tag&gt;&lt;FONT color=#003b7d&gt;&lt;STRONG&gt;WMI Explorer&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;This is not possible in version 1.0 of PowerShell because of a bug in the WMI adapter, hence I removed this from my PowerShell WMI explorer also at that time, but if you are using the PowerShell V2 CTP this will be possible again&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;When you doubleClick the Server field in the status you can set the connection options, if you fill in the username in the options (there will be no password field ), when you click the connect button you will get asked for credentials and can connect with different credentials.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://thepowershellguy.com/blogs/posh/WindowsLiveWriter/PowerShellWMIExplorerPart1_14306/WmiExplorer1%5B2%5D.png"&gt;&lt;/P&gt;
&lt;P&gt;Doubleclicking the server field works also in former version and all other connections options can also be set, but&amp;nbsp;you will not get the credential box,&amp;nbsp;you can use this new version (only 2 lines added) also in V1 but connection using alternate credentials will fail anyway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;As Dee did upgrade to the PowerShell V2CTP for this I posted this quick fix, I will make it more discoverable in a later update.&lt;/P&gt;
&lt;P&gt;Enjoy,&lt;/P&gt;
&lt;P&gt;Greetings /\/\o\/\/&lt;/P&gt;&lt;img src="http://thepowershellguy.com/aggbug.aspx?PostID=15838" width="1" height="1"&gt;</description><enclosure url="http://thepowershellguy.com/blogs/posh/attachment/15838.ashx" length="50594" type="application/octet-stream" /><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/PowerShell/default.aspx">PowerShell</category><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/WMI+Explorer/default.aspx">WMI Explorer</category></item><item><title>IT HerOlympics update </title><link>http://thepowershellguy.com/blogs/posh/archive/2008/03/05/it-herolympics-update.aspx</link><pubDate>Wed, 05 Mar 2008 20:49:00 GMT</pubDate><guid isPermaLink="false">631293ba-543e-4263-9ae4-d16ceb84d9a6:15836</guid><dc:creator>MoW</dc:creator><slash:comments>2</slash:comments><comments>http://thepowershellguy.com/blogs/posh/comments/15836.aspx</comments><wfw:commentRss>http://thepowershellguy.com/blogs/posh/commentrss.aspx?PostID=15836</wfw:commentRss><wfw:comment>http://thepowershellguy.com/blogs/posh/rsscomments.aspx?PostID=15836</wfw:comment><description>&lt;P&gt;Tomorrow is the Microsoft IT herolympics event in the Netherlands, &lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://thepowershellguy.com/blogs/posh/attachment/15716.ashx"&gt;&lt;/P&gt;
&lt;P&gt;I already mentioned that &lt;A class="" href="http://thepowershellguy.com/blogs/posh/archive/2008/02/20/it-herolympics.aspx"&gt;here&lt;/A&gt; that I would do a PowerShell&amp;nbsp;instructor led Lab on this event, but next to this ILL, I will also provide a "PowerShell Unplugged" session, this is a Chalk and Talk session,&amp;nbsp; meaning a interactive, total free format&amp;nbsp;session where basicly the content will be up to you, In Dutch&amp;nbsp;"Vraag maar raak"&amp;nbsp; &lt;/P&gt;
&lt;P&gt;So if you have a specific Question, are looking for general PowerShell information or are interested in a demo, everything goes in this session &lt;EM&gt;(PowerShell related that is, please no politics&amp;nbsp;&amp;nbsp;;-) )&lt;/EM&gt;. &lt;/P&gt;
&lt;P&gt;Hope to see you there.&lt;/P&gt;
&lt;P&gt;Greetings /\/\o\/\/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://thepowershellguy.com/aggbug.aspx?PostID=15836" width="1" height="1"&gt;</description><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/PowerShell/default.aspx">PowerShell</category><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/Event/default.aspx">Event</category></item><item><title>Russian PowerShell livemeeting recording with Xaegr </title><link>http://thepowershellguy.com/blogs/posh/archive/2008/03/05/russian-powershell-livemeeting-with-xaegr.aspx</link><pubDate>Wed, 05 Mar 2008 14:06:00 GMT</pubDate><guid isPermaLink="false">631293ba-543e-4263-9ae4-d16ceb84d9a6:15828</guid><dc:creator>MoW</dc:creator><slash:comments>4</slash:comments><comments>http://thepowershellguy.com/blogs/posh/comments/15828.aspx</comments><wfw:commentRss>http://thepowershellguy.com/blogs/posh/commentrss.aspx?PostID=15828</wfw:commentRss><wfw:comment>http://thepowershellguy.com/blogs/posh/rsscomments.aspx?PostID=15828</wfw:comment><description>&lt;P&gt;I was watching the livemeeting from &lt;A href="http://64.233.179.104/translate_c?hl=en&amp;amp;langpair=ru%7Cen&amp;amp;u=http://xaegr.wordpress.com/" target=_blank&gt;Vasily Gusev&lt;/A&gt; (Xaegr) , the download can be found &lt;A class="" href="http://www.microsoft.com/Rus/events/detail.mspx?eventid=1032369959"&gt;here&lt;/A&gt; &lt;EM&gt;( take the left button after your profile information, as google translate did not work on this site it took me a while to find out how to get to the download )&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;As Xeagr is one of the most avid &lt;A class="" href="http://thepowershellguy.com/blogs/posh/pages/powertab.aspx"&gt;Powertab &lt;/A&gt;users I know, you can&amp;nbsp;find&amp;nbsp;some PowerTab coverage in this recording,&amp;nbsp;also for example ISA management&amp;nbsp;from PowerShell is shown. I do not understand Russian still this was a nice watch as PowerShell&amp;nbsp;does what &lt;A class="" href="http://en.wikipedia.org/wiki/Esperanto"&gt;esperanto&lt;/A&gt; was designed to do ;-)&amp;nbsp;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I could not help a grin when I did see this poll&amp;nbsp; ;-)&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://thepowershellguy.com/blogs/posh/attachment/15828.ashx"&gt;&lt;/P&gt;
&lt;P&gt;Enjoy,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Greetings /\/\o\/\/&lt;/P&gt;&lt;img src="http://thepowershellguy.com/aggbug.aspx?PostID=15828" width="1" height="1"&gt;</description><enclosure url="http://thepowershellguy.com/blogs/posh/attachment/15828.ashx" length="16427" type="image/x-png" /><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/PowerShell/default.aspx">PowerShell</category><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/Video/default.aspx">Video</category><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/liveMeeting/default.aspx">liveMeeting</category></item><item><title>PowerScripting Podcast - Episode 20</title><link>http://thepowershellguy.com/blogs/posh/archive/2008/03/03/powerscripting-podcast-episode-20.aspx</link><pubDate>Mon, 03 Mar 2008 20:12:52 GMT</pubDate><guid isPermaLink="false">631293ba-543e-4263-9ae4-d16ceb84d9a6:15815</guid><dc:creator>MoW</dc:creator><slash:comments>0</slash:comments><comments>http://thepowershellguy.com/blogs/posh/comments/15815.aspx</comments><wfw:commentRss>http://thepowershellguy.com/blogs/posh/commentrss.aspx?PostID=15815</wfw:commentRss><wfw:comment>http://thepowershellguy.com/blogs/posh/rsscomments.aspx?PostID=15815</wfw:comment><description>&lt;p&gt;Pfff, &lt;a href="http://thepowershellguy.com/blogs/posh/archive/tags/Scripting+games/default.aspx"&gt;scripting games 2008 over and all solutions posted&lt;/a&gt; , let's rest back and listen to the new &lt;a href="http://powerscripting.wordpress.com/2008/03/03/powerscripting-podcast-episode-20/"&gt;PowerScripting Podcast - Episode 20&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Enjoy, &lt;/p&gt;  &lt;p&gt;Greetings /\/\o\/\/&lt;/p&gt;&lt;img src="http://thepowershellguy.com/aggbug.aspx?PostID=15815" width="1" height="1"&gt;</description><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/PowerShell/default.aspx">PowerShell</category><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/Podcast/default.aspx">Podcast</category></item><item><title>Scripting Games 2008 Beginners Windows PowerShell Event 10</title><link>http://thepowershellguy.com/blogs/posh/archive/2008/03/03/scripting-games-2008-beginners-windows-powershell-event-10.aspx</link><pubDate>Mon, 03 Mar 2008 20:04:15 GMT</pubDate><guid isPermaLink="false">631293ba-543e-4263-9ae4-d16ceb84d9a6:15814</guid><dc:creator>MoW</dc:creator><slash:comments>0</slash:comments><comments>http://thepowershellguy.com/blogs/posh/comments/15814.aspx</comments><wfw:commentRss>http://thepowershellguy.com/blogs/posh/commentrss.aspx?PostID=15814</wfw:commentRss><wfw:comment>http://thepowershellguy.com/blogs/posh/rsscomments.aspx?PostID=15814</wfw:comment><description>&lt;p&gt;And to end the series with solutions, Beginners event 10,&lt;/p&gt;  &lt;p&gt;this was a nice one, I started out with a straight loop but to handle 2 or 3 strikes in a row I considered that it might be easier to look back and forwards in the array.&lt;/p&gt;  &lt;p&gt;a Pro was that this would make scores per frame / round possible, a Con was that I needed to check for Strikes or spares ( &amp;quot;X&amp;quot; or &amp;quot;\&amp;quot; ) in the lookups also.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;blockquote&gt;   &lt;pre&gt;&lt;span style="color:#0000ff;"&gt;$arrFrames&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#000000;"&gt;=&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#ff0000;"&gt;2&lt;/span&gt;&lt;span style="color:#000000;"&gt;,&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;5&lt;/span&gt;&lt;span style="color:#000000;"&gt;,&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;7&lt;/span&gt;&lt;span style="color:#000000;"&gt;,&lt;/span&gt;&lt;span style="color:#000080;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:#000080;"&gt;/&lt;/span&gt;&lt;span style="color:#000080;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;"&gt;,&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;8&lt;/span&gt;&lt;span style="color:#000000;"&gt;,&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;1&lt;/span&gt;&lt;span style="color:#000000;"&gt;,&lt;/span&gt;&lt;span style="color:#000080;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:#000080;"&gt;X&lt;/span&gt;&lt;span style="color:#000080;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;"&gt;,&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;9&lt;/span&gt;&lt;span style="color:#000000;"&gt;,&lt;/span&gt;&lt;span style="color:#000080;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:#000080;"&gt;/&lt;/span&gt;&lt;span style="color:#000080;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;"&gt;,&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;5&lt;/span&gt;&lt;span style="color:#000000;"&gt;,&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;3&lt;/span&gt;&lt;span style="color:#000000;"&gt;,&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;7&lt;/span&gt;&lt;span style="color:#000000;"&gt;,&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;0&lt;/span&gt;&lt;span style="color:#000000;"&gt;,&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;4&lt;/span&gt;&lt;span style="color:#000000;"&gt;,&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;5&lt;/span&gt;&lt;span style="color:#000000;"&gt;,&lt;/span&gt;&lt;span style="color:#000080;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:#000080;"&gt;X&lt;/span&gt;&lt;span style="color:#000080;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;"&gt;,&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;2&lt;/span&gt;&lt;span style="color:#000000;"&gt;,&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;0&lt;/span&gt;&lt;span style="color:#000000;"&gt;

&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$score&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#000000;"&gt;=&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$i&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#000000;"&gt;=&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#ff0000;"&gt;0&lt;/span&gt;&lt;span style="color:#000000;"&gt; 
&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$arrFrames&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#000000;"&gt;|%&lt;/span&gt;&lt;span style="color:#000000;"&gt; { 
  &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;if&lt;/span&gt;&lt;span style="color:#000000;"&gt; (&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$_&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;-is&lt;/span&gt;&lt;span style="color:#000000;"&gt; [&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;int&lt;/span&gt;&lt;span style="color:#000000;"&gt;]) { 
    &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$score&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#000000;"&gt;+=&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$_&lt;/span&gt;&lt;span style="color:#000000;"&gt; 
  } &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;Else&lt;/span&gt;&lt;span style="color:#000000;"&gt; { 
    &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;switch&lt;/span&gt;&lt;span style="color:#000000;"&gt; (&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$_&lt;/span&gt;&lt;span style="color:#000000;"&gt;) { 
    &lt;/span&gt;&lt;span style="color:#000080;"&gt;'&lt;/span&gt;&lt;span style="color:#000080;"&gt;/&lt;/span&gt;&lt;span style="color:#000080;"&gt;'&lt;/span&gt;&lt;span style="color:#000000;"&gt; { 
           &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$score&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#000000;"&gt;+=&lt;/span&gt;&lt;span style="color:#000000;"&gt; (&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;10&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#000000;"&gt;-&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$arrFrames&lt;/span&gt;&lt;span style="color:#000000;"&gt;[&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$i&lt;/span&gt;&lt;span style="color:#000000;"&gt;-&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;1&lt;/span&gt;&lt;span style="color:#000000;"&gt;]) &lt;/span&gt;&lt;span style="color:#000000;"&gt;+&lt;/span&gt;&lt;span style="color:#000000;"&gt; ((&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$arrFrames&lt;/span&gt;&lt;span style="color:#000000;"&gt;[&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$i&lt;/span&gt;&lt;span style="color:#000000;"&gt;+&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;1&lt;/span&gt;&lt;span style="color:#000000;"&gt;]) &lt;/span&gt;&lt;span style="color:#000000;"&gt;-&lt;/span&gt;&lt;span style="color:#008080;"&gt;replace&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#000080;"&gt;'&lt;/span&gt;&lt;span style="color:#000080;"&gt;X&lt;/span&gt;&lt;span style="color:#000080;"&gt;'&lt;/span&gt;&lt;span style="color:#000000;"&gt;,&lt;/span&gt;&lt;span style="color:#000080;"&gt;'&lt;/span&gt;&lt;span style="color:#000080;"&gt;10&lt;/span&gt;&lt;span style="color:#000080;"&gt;'&lt;/span&gt;&lt;span style="color:#000000;"&gt;) 
        } 
    &lt;/span&gt;&lt;span style="color:#000080;"&gt;'&lt;/span&gt;&lt;span style="color:#000080;"&gt;X&lt;/span&gt;&lt;span style="color:#000080;"&gt;'&lt;/span&gt;&lt;span style="color:#000000;"&gt; { 
           &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$o1&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#000000;"&gt;=&lt;/span&gt;&lt;span style="color:#000000;"&gt; (&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$arrFrames&lt;/span&gt;&lt;span style="color:#000000;"&gt;[&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$i&lt;/span&gt;&lt;span style="color:#000000;"&gt;+&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;1&lt;/span&gt;&lt;span style="color:#000000;"&gt;]) &lt;/span&gt;&lt;span style="color:#000000;"&gt;-&lt;/span&gt;&lt;span style="color:#008080;"&gt;replace&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#000080;"&gt;'&lt;/span&gt;&lt;span style="color:#000080;"&gt;X&lt;/span&gt;&lt;span style="color:#000080;"&gt;'&lt;/span&gt;&lt;span style="color:#000000;"&gt;,&lt;/span&gt;&lt;span style="color:#000080;"&gt;'&lt;/span&gt;&lt;span style="color:#000080;"&gt;10&lt;/span&gt;&lt;span style="color:#000080;"&gt;'&lt;/span&gt;&lt;span style="color:#000000;"&gt; 
           &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$o2&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#000000;"&gt;=&lt;/span&gt;&lt;span style="color:#000000;"&gt; ((&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$arrFrames&lt;/span&gt;&lt;span style="color:#000000;"&gt;[&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$i&lt;/span&gt;&lt;span style="color:#000000;"&gt;+&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;2&lt;/span&gt;&lt;span style="color:#000000;"&gt;]) &lt;/span&gt;&lt;span style="color:#000000;"&gt;-&lt;/span&gt;&lt;span style="color:#008080;"&gt;replace&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#000080;"&gt;'&lt;/span&gt;&lt;span style="color:#000080;"&gt;X&lt;/span&gt;&lt;span style="color:#000080;"&gt;'&lt;/span&gt;&lt;span style="color:#000000;"&gt;,&lt;/span&gt;&lt;span style="color:#000080;"&gt;'&lt;/span&gt;&lt;span style="color:#000080;"&gt;10&lt;/span&gt;&lt;span style="color:#000080;"&gt;'&lt;/span&gt;&lt;span style="color:#000000;"&gt;) &lt;/span&gt;&lt;span style="color:#000000;"&gt;-&lt;/span&gt;&lt;span style="color:#008080;"&gt;replace&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#000080;"&gt;'&lt;/span&gt;&lt;span style="color:#000080;"&gt;/&lt;/span&gt;&lt;span style="color:#000080;"&gt;'&lt;/span&gt;&lt;span style="color:#000000;"&gt; , (&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;10&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#000000;"&gt;-&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$o1&lt;/span&gt;&lt;span style="color:#000000;"&gt;) 
           &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$score&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#000000;"&gt;+=&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#ff0000;"&gt;10&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#000000;"&gt;+&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$o1&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#000000;"&gt;+&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$o2&lt;/span&gt;&lt;span style="color:#000000;"&gt; 
        } 
    } 
  } 
  &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$i&lt;/span&gt;&lt;span style="color:#000000;"&gt;++&lt;/span&gt;&lt;span style="color:#000000;"&gt; 
};&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$score&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;

&lt;p&gt;From IRC chats I think that &lt;a href="http://huddledmasses.org/"&gt;Jaykul&lt;/a&gt; did workout the &amp;quot;loop&amp;quot; for this so it might be nice to compare the solutions when he has his one posted.&lt;/p&gt;

&lt;p&gt;b.t.w. you will find &amp;quot;only&amp;quot; 26 solutions in this series as the Sudden death included 2 Quizzes, and the beginner a debug question, and one where I had nothing to add to the given solution.&lt;/p&gt;

&lt;p&gt;I hope you enjoyed the games and comparing all different solutions posted, till next year @ the 2009 Games !&lt;/p&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;p&gt;Enjoy, &lt;/p&gt;

&lt;p&gt;Greetings /\/\o\/\/&lt;/p&gt;&lt;img src="http://thepowershellguy.com/aggbug.aspx?PostID=15814" width="1" height="1"&gt;</description><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/PowerShell/default.aspx">PowerShell</category><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/Scripting+games/default.aspx">Scripting games</category></item><item><title>Scripting Games 2008 Beginners Windows PowerShell Event 9</title><link>http://thepowershellguy.com/blogs/posh/archive/2008/03/03/scripting-games-2008-beginners-windows-powershell-event-9.aspx</link><pubDate>Mon, 03 Mar 2008 19:42:00 GMT</pubDate><guid isPermaLink="false">631293ba-543e-4263-9ae4-d16ceb84d9a6:15813</guid><dc:creator>MoW</dc:creator><slash:comments>2</slash:comments><comments>http://thepowershellguy.com/blogs/posh/comments/15813.aspx</comments><wfw:commentRss>http://thepowershellguy.com/blogs/posh/commentrss.aspx?PostID=15813</wfw:commentRss><wfw:comment>http://thepowershellguy.com/blogs/posh/rsscomments.aspx?PostID=15813</wfw:comment><description>&lt;P&gt;My solution for Event 9 in the beginners competition, as Jaykul already noted here : &lt;A href="http://huddledmasses.org/2008-scripting-games-solution-for-advanced-event-2/"&gt;2008 Scripting Games - Solution for Advanced Event 2&lt;/A&gt; , when working with ADO in PowerShell it's much better to use .NET to connect to a database as the COM objects shown in the &lt;A href="http://www.microsoft.com/technet/scriptcenter/funzone/games/solutions08/bpssol09.mspx"&gt;&lt;B&gt;Windows PowerShell&lt;/B&gt;&lt;/A&gt;, solution from the Scripting guy's.&lt;/P&gt;
&lt;P&gt;I used the same code as in last years Scripting Games 2007 Event 8 to connect to the database : &lt;A href="http://mow001.blogspot.com/2006/02/scripting-games-last-day-msh-answers.html"&gt;Winter Scripting games Part 8 (Last Day)&lt;/A&gt; , but use a Select statement with custom columns to generate the new list with water volumes.&lt;/P&gt;&lt;PRE style="FONT:9pt courier new;COLOR:#fff;BACKGROUND-COLOR:#228;"&gt;&lt;SPAN style="COLOR:#f00;BACKGROUND-COLOR:#228;"&gt;PoSH&amp;gt;&lt;/SPAN&gt; &lt;SPAN style="COLOR:#ff0;BACKGROUND-COLOR:#228;"&gt;.\Event9B.ps1&lt;/SPAN&gt;                                                                                                     
                                                                                                                        
Customer Volume of Water                                                                                                
-------- ---------------                                                                                                
Jones            2500000                                                                                                
Myer             1500000                                                                                                
Smith            1500000                                                                                                
Kumar            1200000                                                                                                
Chen             1500000                                                                                                
Garcia           1058000                                                                                                
                                                                                                                        
                                                                                                                        
&lt;SPAN style="COLOR:#f00;BACKGROUND-COLOR:#228;"&gt;PoSH&amp;gt;&lt;/SPAN&gt;                                                                                     &lt;/PRE&gt;
&lt;P&gt;As this is a beginner event I worked it out a bit more verbose this time, and show in this example that you can create the hashtable's for the "Custom Columns" in advance, to make the select command more clear :&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;PRE&gt;&lt;SPAN style="COLOR:#008000;"&gt;#&lt;/SPAN&gt;&lt;SPAN style="COLOR:#008000;"&gt; Connect to database &lt;/SPAN&gt;&lt;SPAN style="COLOR:#008000;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; 
&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$mdb&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;c:\scripts\Pool.mdb&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; 
&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$ConnString&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=$mdb&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; 
&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$Conn&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#008080;"&gt;new-object&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; Data.OleDb.OleDbConnection(&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$connString&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;) 
&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$conn&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;.open() 
 
&lt;/SPAN&gt;&lt;SPAN style="COLOR:#008000;"&gt;#&lt;/SPAN&gt;&lt;SPAN style="COLOR:#008000;"&gt; Open Table &lt;/SPAN&gt;&lt;SPAN style="COLOR:#008000;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; 
&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$cmd&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#008080;"&gt;new-object&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; Data.OleDb.OleDbCommand(&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;select * from SwimmingPool&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$Conn&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;) 
&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$da&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#008080;"&gt;new-object&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; Data.OleDb.OleDbDataAdapter(&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$cmd&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;) 
&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$dt&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#008080;"&gt;new-object&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; Data.dataTable  
[void]&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$da&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;.fill(&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$dt&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;) 
 
&lt;/SPAN&gt;&lt;SPAN style="COLOR:#008000;"&gt;#&lt;/SPAN&gt;&lt;SPAN style="COLOR:#008000;"&gt; Create a custom column for volume calculations &lt;/SPAN&gt;&lt;SPAN style="COLOR:#008000;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; 
&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$Volume&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; @{ 
    label&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;Volume of Water&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; 
    expression &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; { 
        &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;.Slope &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;-eq&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$false&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;) { 
            &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;.Length &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;.Width &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;.Depth &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;1000&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; 
        } &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;else&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; { 
            &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;.Length &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;.Width &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; ((&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;.SEnd &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;.SStart) &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;1000&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; 
        } 
    } 
} 
 
&lt;/SPAN&gt;&lt;SPAN style="COLOR:#008000;"&gt;#&lt;/SPAN&gt;&lt;SPAN style="COLOR:#008000;"&gt; use custom Volume column in the select command : &lt;/SPAN&gt;&lt;SPAN style="COLOR:#008000;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; 
&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$dt&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;|&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; ft &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="COLOR:#008080;"&gt;a&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; Customer,&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$volume&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; 
&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can see that we can just use the variable $volume&amp;nbsp;containing our pre-created HashTable with the formulas in the&amp;nbsp;Format-Table (FT)&amp;nbsp;command. &lt;/P&gt;
&lt;P&gt;Enjoy,&lt;/P&gt;
&lt;P&gt;Greetings /\/\o\/\/&amp;nbsp; &lt;/P&gt;&lt;img src="http://thepowershellguy.com/aggbug.aspx?PostID=15813" width="1" height="1"&gt;</description><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/PowerShell/default.aspx">PowerShell</category><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/Scripting+games/default.aspx">Scripting games</category></item><item><title>Scripting Games 2008 Advanced Windows PowerShell Event 9</title><link>http://thepowershellguy.com/blogs/posh/archive/2008/03/03/scripting-games-2008-advanced-windows-powershell-event-9.aspx</link><pubDate>Mon, 03 Mar 2008 18:35:33 GMT</pubDate><guid isPermaLink="false">631293ba-543e-4263-9ae4-d16ceb84d9a6:15812</guid><dc:creator>MoW</dc:creator><slash:comments>2</slash:comments><comments>http://thepowershellguy.com/blogs/posh/comments/15812.aspx</comments><wfw:commentRss>http://thepowershellguy.com/blogs/posh/commentrss.aspx?PostID=15812</wfw:commentRss><wfw:comment>http://thepowershellguy.com/blogs/posh/rsscomments.aspx?PostID=15812</wfw:comment><description>&lt;p&gt;My solution for event 9 :&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&amp;#160;&lt;span style="color:#000000;"&gt;(gc c:\scripts\alice.txt &lt;/span&gt;&lt;span style="color:#000000;"&gt;|%&lt;/span&gt;&lt;span style="color:#000000;"&gt; {&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$_&lt;/span&gt;&lt;span style="color:#000000;"&gt;.split()}&lt;/span&gt;&lt;span style="color:#000000;"&gt;|%&lt;/span&gt;&lt;span style="color:#000000;"&gt; {&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$_&lt;/span&gt;&lt;span style="color:#000000;"&gt;[&lt;/span&gt;&lt;span style="color:#000000;"&gt;-&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;1&lt;/span&gt;&lt;span style="color:#000000;"&gt;..(&lt;/span&gt;&lt;span style="color:#000000;"&gt;-&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;$_&lt;/span&gt;&lt;span style="color:#000000;"&gt;.length)]&lt;/span&gt;&lt;span style="color:#000000;"&gt;-&lt;/span&gt;&lt;span style="color:#008080;"&gt;join&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#000080;"&gt;''&lt;/span&gt;&lt;span style="color:#000000;"&gt;})&lt;/span&gt;&lt;span style="color:#000000;"&gt;-&lt;/span&gt;&lt;span style="color:#008080;"&gt;join&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#000080;"&gt;'&lt;/span&gt;&lt;span style="color:#000080;"&gt; &lt;/span&gt;&lt;span style="color:#000080;"&gt;'&lt;/span&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Enjoy,&lt;/p&gt;  &lt;p&gt;Greetings /\/\o\/\/&lt;/p&gt;&lt;img src="http://thepowershellguy.com/aggbug.aspx?PostID=15812" width="1" height="1"&gt;</description><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/PowerShell/default.aspx">PowerShell</category><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/Scripting+games/default.aspx">Scripting games</category></item><item><title>Scripting Games 2008 Advanced Windows PowerShell Event 10</title><link>http://thepowershellguy.com/blogs/posh/archive/2008/03/03/scripting-games-2008-advanced-windows-powershell-event-10.aspx</link><pubDate>Mon, 03 Mar 2008 18:28:00 GMT</pubDate><guid isPermaLink="false">631293ba-543e-4263-9ae4-d16ceb84d9a6:15810</guid><dc:creator>MoW</dc:creator><slash:comments>2</slash:comments><comments>http://thepowershellguy.com/blogs/posh/comments/15810.aspx</comments><wfw:commentRss>http://thepowershellguy.com/blogs/posh/commentrss.aspx?PostID=15810</wfw:commentRss><wfw:comment>http://thepowershellguy.com/blogs/posh/rsscomments.aspx?PostID=15810</wfw:comment><description>&lt;P&gt;My &lt;A href="http://www.microsoft.com/technet/scriptcenter/funzone/games/solutions08/expssol10.mspx"&gt;&lt;B&gt;Windows PowerShell solution&lt;/B&gt;&lt;/A&gt; for event 10 is posted on the scriptcenter.&lt;/P&gt;
&lt;P&gt;By accident &lt;EM&gt;( I did send a "preview" version to &lt;STRIKE&gt;confuse the scripting guys&lt;/STRIKE&gt; check if format was right),&lt;/EM&gt;&amp;nbsp; it was not the latest version that got posted, I made some small changes after :&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;*update*&amp;nbsp;&lt;/STRONG&gt;the article&amp;nbsp;on the&amp;nbsp;scriptcenter is now also updated to&amp;nbsp;include the changes mentioned below,&amp;nbsp;&lt;/EM&gt;&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;* BugFix *&lt;/STRONG&gt; only the first ace was checked for 1 or 11 &lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;PRE&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;Function&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#008080;"&gt;get-Value&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$cards&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;){

   &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$aces&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$val&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;
   &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$cards&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;|%&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; {
       &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;.card[&lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;] &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;-match&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;[0JQK]&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;) {&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$val&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;+=&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;10&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;}
       &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;.card[&lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;] &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;-match&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;\d&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;) {&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$val&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;+=&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; [&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;int&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;]&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;.card[&lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;].toString()}
       &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;.card[&lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;] &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;-match&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;[A]&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;) {&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$val&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;+=&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;11&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$aces&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;+=&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;}
   }

   &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;while&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$aces&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;-gt&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; ) {&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; ( &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$val&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;-gt&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;21&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;) {&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$val&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;-=&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;10&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;};&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$aces&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;--&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;}
   &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$val&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;  
}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;* Addition *&lt;/STRONG&gt; and I added the drawing of a facedown card :&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;PRE&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;Function&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; PaintFaceDownCard (&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$x&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$y&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;){
  (&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$y&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;)..(&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$y&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;6&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;|%&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; {ColorLine &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$x&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;6&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;Blue&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;}
  WriteLine &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$x&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$y&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt; /\/\ &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;white&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;Blue&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;
  WriteLine &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$x&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$y&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;3&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;  ()  &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;white&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;Blue&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;
  WriteLine &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$x&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;$y&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;4&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt; \/\/ &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;white&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;Blue&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;
}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;As you could see in the teaser here : &lt;A href="http://thepowershellguy.com/blogs/posh/archive/2008/02/16/the-scripting-games-have-started-and-some-teasers.aspx"&gt;The Scripting Games have started and some teasers&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The complete version of the blackJack function, including these changes,&amp;nbsp; I will attach to this post.&lt;/P&gt;
&lt;P&gt;Enjoy, &lt;/P&gt;
&lt;P&gt;Greetings /\/\o\/\/&lt;/P&gt;&lt;img src="http://thepowershellguy.com/aggbug.aspx?PostID=15810" width="1" height="1"&gt;</description><enclosure url="http://thepowershellguy.com/blogs/posh/attachment/15810.ashx" length="4432" type="application/octet-stream" /><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/PowerShell/default.aspx">PowerShell</category><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/Scripting+games/default.aspx">Scripting games</category></item><item><title>MTC Technology Briefing for February 29, 2008: What's Up With PowerShell</title><link>http://thepowershellguy.com/blogs/posh/archive/2008/03/01/mtc-technology-briefing-for-february-29-2008-what-s-up-with-powershell.aspx</link><pubDate>Sat, 01 Mar 2008 10:34:00 GMT</pubDate><guid isPermaLink="false">631293ba-543e-4263-9ae4-d16ceb84d9a6:15802</guid><dc:creator>MoW</dc:creator><slash:comments>0</slash:comments><comments>http://thepowershellguy.com/blogs/posh/comments/15802.aspx</comments><wfw:commentRss>http://thepowershellguy.com/blogs/posh/commentrss.aspx?PostID=15802</wfw:commentRss><wfw:comment>http://thepowershellguy.com/blogs/posh/rsscomments.aspx?PostID=15802</wfw:comment><description>&lt;P&gt;3 videos of a&amp;nbsp;"roundtable" podcast,featuring PowerShell&lt;/P&gt;
&lt;P&gt;&lt;A class=bl_itemtitle title="Site: Bloglines Search: PowerShell" href="http://www.feedhub.com/iris/items/34560873/link?c=-56f005268c590fd9bf962fbf08d62972cc72f24a927a8c8b9c2eeaa9e426ecab&amp;amp;url=http%3A%2F%2Fblogs.msdn.com%2Fmtcny%2Farchive%2F2008%2F02%2F29%2Fmtc-technology-briefing-for-february-29-2008-what-s-up-with-powershell.aspx" target=_blank&gt;MTC Technology Briefing for February 29, 2008: What's Up With PowerShell&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Enjoy,&lt;/P&gt;
&lt;P&gt;Greetings /\/\o\/\/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://thepowershellguy.com/aggbug.aspx?PostID=15802" width="1" height="1"&gt;</description><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/PowerShell/default.aspx">PowerShell</category><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/Video/default.aspx">Video</category></item><item><title>Scripting Games 2008 Sudden Death Challenge Event 9</title><link>http://thepowershellguy.com/blogs/posh/archive/2008/03/01/scripting-games-2008-sudden-death-challenge-event-9.aspx</link><pubDate>Sat, 01 Mar 2008 09:21:00 GMT</pubDate><guid isPermaLink="false">631293ba-543e-4263-9ae4-d16ceb84d9a6:15801</guid><dc:creator>MoW</dc:creator><slash:comments>0</slash:comments><comments>http://thepowershellguy.com/blogs/posh/comments/15801.aspx</comments><wfw:commentRss>http://thepowershellguy.com/blogs/posh/commentrss.aspx?PostID=15801</wfw:commentRss><wfw:comment>http://thepowershellguy.com/blogs/posh/rsscomments.aspx?PostID=15801</wfw:comment><description>&lt;P&gt;As the Scripting Guys note here &lt;A href="http://www.microsoft.com/technet/scriptcenter/funzone/games/solutions08/sdsol09.mspx"&gt;&lt;B&gt;Event 9 Solution&lt;/B&gt;&lt;/A&gt;&amp;nbsp;, this was a simple event, biggest part of the code is the filename.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV&gt;&lt;STRONG&gt;(gc c:\scripts\Symbols.txt) -replace '[^\w\s]|_',''&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;
&lt;DIV&gt;Only issue I had is as I use \w (word characters) and this&amp;nbsp;also&amp;nbsp;included the&amp;nbsp;underscores I had to remove&amp;nbsp;them also with an OR in the regex.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;*Update*&lt;/STRONG&gt;&amp;nbsp; I did think just after posting, that it could even be shorter, as we replace by an empty string we can just leave it out completly another 3 chars less :&lt;/EM&gt;&lt;/DIV&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV&gt;&lt;STRONG&gt;(gc c:\scripts\Symbols.txt) -replace '[^\w\s]|_'&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&lt;BR&gt;The 2008 Winter Scripting Games&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; without spaces back to 46 chars : &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV&gt;&lt;STRONG&gt;"(gc c:\scripts\Symbols.txt)-replace'[^\w\s]|_'".length&lt;BR&gt;46&lt;/STRONG&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;
&lt;DIV&gt;Enjoy,&lt;/DIV&gt;
&lt;DIV&gt;Greetings /\/\o\/\/&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;img src="http://thepowershellguy.com/aggbug.aspx?PostID=15801" width="1" height="1"&gt;</description><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/PowerShell/default.aspx">PowerShell</category><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/Scripting+games/default.aspx">Scripting games</category></item><item><title>Hey, PowerShell Guy, how to translate a Unix timestamp to a local time ?</title><link>http://thepowershellguy.com/blogs/posh/archive/2008/02/29/hey-powershell-guy-how-to-translate-a-unix-timestamp-to-a-local-time.aspx</link><pubDate>Fri, 29 Feb 2008 22:08:00 GMT</pubDate><guid isPermaLink="false">631293ba-543e-4263-9ae4-d16ceb84d9a6:15799</guid><dc:creator>MoW</dc:creator><slash:comments>1</slash:comments><comments>http://thepowershellguy.com/blogs/posh/comments/15799.aspx</comments><wfw:commentRss>http://thepowershellguy.com/blogs/posh/commentrss.aspx?PostID=15799</wfw:commentRss><wfw:comment>http://thepowershellguy.com/blogs/posh/rsscomments.aspx?PostID=15799</wfw:comment><description>&lt;P&gt;This time not a translation from a Hey scriptingguy article, but a&amp;nbsp;question that just came up in the #powerShell IRC channel, &lt;/P&gt;
&lt;P&gt;how to convert a Unix timestamp to a local datetime ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;A Unix Timestamp is expressed in seconds since 1 January 1970 in UTC time, this function will convert the unix timestamp to a UTC time first, and&amp;nbsp;then&amp;nbsp;convert it to a Local time for the current timezone.&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;Function get-Unixdate ($UnixDate) {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [timezone]::CurrentTimeZone.ToLocalTime(([datetime]'1/1/1970').AddSeconds($UnixDate))&lt;BR&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And now you can easy translate Unix timestamps like this :&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR&gt;&lt;STRONG&gt;PS C:\scripts&amp;gt; get-Unixdate 1204062874&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Tuesday, February 26, 2008 10:54:34 PM&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I did not make a -UTC parameter but if you want you can get back to UTC time like this ;-)&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;PS C:\scripts&amp;gt; (get-Unixdate 1204062874).ToUniversalTime()&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Tuesday, February 26, 2008 9:54:34 PM&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Enjoy,&lt;/P&gt;
&lt;P&gt;Greetings /\/\o\/\/&lt;/P&gt;&lt;img src="http://thepowershellguy.com/aggbug.aspx?PostID=15799" width="1" height="1"&gt;</description><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/PowerShell/default.aspx">PowerShell</category><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/DateTime/default.aspx">DateTime</category><category domain="http://thepowershellguy.com/blogs/posh/archive/tags/Unix/default.aspx">Unix</category></item></channel></rss>