<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.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>Expert Commentary: 2012 Scripting Games Beginner Event 6</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/23/expert-commentary-2012-scripting-games-beginner-event-6.aspx</link><description>Microsoft Windows PowerShell MVP, Sean Kearney, provides expert commentary for 2012 Scripting Games Beginner Event 6.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Expert Commentary: 2012 Scripting Games Beginner Event 6</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/23/expert-commentary-2012-scripting-games-beginner-event-6.aspx#3493941</link><pubDate>Mon, 23 Apr 2012 22:31:40 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3493941</guid><dc:creator>Sean "The Energized Tech and Please don't name the Gerbil Cmdlet" Kearney</dc:creator><description>&lt;p&gt;@socaldavis My love affair with Powershell has gotten me into a LOT of trouble. &amp;nbsp;It truly is a tool we fall in love with because we need so little to make it useful.&lt;/p&gt;
&lt;p&gt;@plindgren I tried to sneak that into a casual Friday, but I&amp;#39;m pretty certain somebody would have countered that with a pink slip ;)&lt;/p&gt;
&lt;p&gt;@dawn Great Example of using ExpandProperty. &amp;nbsp; Really when you get down to it, all it does it pull the information out (all we want) and give it to us without a descriptive field.&lt;/p&gt;
&lt;p&gt;If anybody sees a small Gerbil running about singing &amp;quot;Highway to Powershell&amp;quot;, tell him his music contract is still up for negotiation :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3493941" width="1" height="1"&gt;</description></item><item><title>re: Expert Commentary: 2012 Scripting Games Beginner Event 6</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/23/expert-commentary-2012-scripting-games-beginner-event-6.aspx#3493911</link><pubDate>Mon, 23 Apr 2012 20:21:58 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3493911</guid><dc:creator>SoCalDavis</dc:creator><description>&lt;p&gt;@Dawn Villejoin&lt;/p&gt;
&lt;p&gt;Awesome! Thank you very much for that information/example! I have totally fallen in love with Powershell - we use it here at work pretty heavily, as well as me at home (learning).&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3493911" width="1" height="1"&gt;</description></item><item><title>re: Expert Commentary: 2012 Scripting Games Beginner Event 6</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/23/expert-commentary-2012-scripting-games-beginner-event-6.aspx#3493898</link><pubDate>Mon, 23 Apr 2012 18:55:36 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3493898</guid><dc:creator>Dawn Villejoin</dc:creator><description>&lt;p&gt;@SoCalDavis&lt;/p&gt;
&lt;p&gt;Another good use of the -ExpandProperty parameter is when one of the properties contains an array of items...&lt;/p&gt;
&lt;p&gt;Instead of getting the &amp;quot;array&amp;quot;, you get a list of each item in the array.&lt;/p&gt;
&lt;p&gt;For instance, if I did:&lt;/p&gt;
&lt;p&gt;Get-Service winrm | select ServicesDependedOn &lt;/p&gt;
&lt;p&gt;I get the following output:&lt;/p&gt;
&lt;p&gt;ServicesDependedOn &lt;/p&gt;
&lt;p&gt;------------------&lt;/p&gt;
&lt;p&gt;{HTTP, RPCSS}&lt;/p&gt;
&lt;p&gt;BUT if I did:&lt;/p&gt;
&lt;p&gt;Get-Service winrm | select -ExpandProperty ServicesDependedOn&lt;/p&gt;
&lt;p&gt;I get this output, which can be much more helpful depending on what I wanted to find out:&lt;/p&gt;
&lt;p&gt;Status &amp;nbsp; Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DisplayName&lt;/p&gt;
&lt;p&gt;------ &amp;nbsp; ---- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -----------&lt;/p&gt;
&lt;p&gt;Running &amp;nbsp;HTTP &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HTTP&lt;/p&gt;
&lt;p&gt;Running &amp;nbsp;RPCSS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Remote Procedure Call (RPC)&lt;/p&gt;
&lt;p&gt;Powershell is so versatile :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3493898" width="1" height="1"&gt;</description></item><item><title>re: Expert Commentary: 2012 Scripting Games Beginner Event 6</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/23/expert-commentary-2012-scripting-games-beginner-event-6.aspx#3493795</link><pubDate>Mon, 23 Apr 2012 11:08:24 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3493795</guid><dc:creator>SoCalDavis</dc:creator><description>&lt;p&gt;Oh wait, I think I just figured out - testing it with the example in the above blog post gives me the answer...lol... If you didn&amp;#39;t use -expandproperty, you would get the property name in the results as well... with -expandproperty, you only get the data in the column (Hope I said it right - please feel free to correct it) :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3493795" width="1" height="1"&gt;</description></item><item><title>re: Expert Commentary: 2012 Scripting Games Beginner Event 6</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/23/expert-commentary-2012-scripting-games-beginner-event-6.aspx#3493793</link><pubDate>Mon, 23 Apr 2012 11:06:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3493793</guid><dc:creator>SoCalDavis</dc:creator><description>&lt;p&gt;Great info... I still haven&amp;#39;t figured out exactly what the -expandproperty parameter of select-object is used for... read some help on it, and still confused. I&amp;#39;m going to continue reading, and testing examples out... thanks again for the info.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3493793" width="1" height="1"&gt;</description></item><item><title>re: Expert Commentary: 2012 Scripting Games Beginner Event 6</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/04/23/expert-commentary-2012-scripting-games-beginner-event-6.aspx#3493763</link><pubDate>Mon, 23 Apr 2012 07:46:34 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3493763</guid><dc:creator>plindgren</dc:creator><description>&lt;p&gt;I sincerely hope the kraken looks like that on casual friday&amp;#39;s&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3493763" width="1" height="1"&gt;</description></item></channel></rss>