<?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>Use PowerShell to Group and Format Output</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/14/use-powershell-to-group-and-format-output.aspx</link><description>Microsoft Scripting Guy, Ed Wilson, teaches how to use Windows PowerShell to group and to format output.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Use PowerShell to Group and Format Output</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/14/use-powershell-to-group-and-format-output.aspx#3525053</link><pubDate>Wed, 10 Oct 2012 00:13:06 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3525053</guid><dc:creator>Amed H</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have been searching for a way to split an ordered set of columns across the screen and I found none. I hear Powershell is the thing now so I hope it can be done.&lt;/p&gt;
&lt;p&gt;Here what I want&lt;/p&gt;
&lt;p&gt;Key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Value&lt;/p&gt;
&lt;p&gt;---- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -------&lt;/p&gt;
&lt;p&gt;C &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/p&gt;
&lt;p&gt;A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/p&gt;
&lt;p&gt;D &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/p&gt;
&lt;p&gt;I&amp;#39;d like the above to look like this instead&lt;/p&gt;
&lt;p&gt;Key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Value &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; Key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Value&lt;/p&gt;
&lt;p&gt;---- &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; &amp;nbsp; -------&lt;/p&gt;
&lt;p&gt;C &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &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;D &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/p&gt;
&lt;p&gt;A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3525053" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Group and Format Output</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/14/use-powershell-to-group-and-format-output.aspx#3522611</link><pubDate>Wed, 26 Sep 2012 15:33:44 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3522611</guid><dc:creator>@thommck</dc:creator><description>&lt;p&gt;This is just what I was looking for.&lt;/p&gt;
&lt;p&gt;One more thing I would like, how would I add a total as a summary.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to output a table showing all the computers in AD along with their OS. I then want it grouped by OS and give me a total value for each (e.g. 700xXP, 300xWin7). Is that possible?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3522611" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Group and Format Output</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/14/use-powershell-to-group-and-format-output.aspx#3477847</link><pubDate>Mon, 30 Jan 2012 14:47:31 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3477847</guid><dc:creator>K_Schulte</dc:creator><description>&lt;p&gt;Hi Ed,&lt;/p&gt;
&lt;p&gt;again something for the daily work toolbox!&lt;/p&gt;
&lt;p&gt;And again using script blocks increases the flexibility of &amp;quot;Goupby&amp;quot; a lot!&lt;/p&gt;
&lt;p&gt;Klaus (Schulte)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3477847" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Group and Format Output</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/14/use-powershell-to-group-and-format-output.aspx#3475428</link><pubDate>Sat, 14 Jan 2012 10:24:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3475428</guid><dc:creator>jrv</dc:creator><description>&lt;p&gt;Useful:&lt;/p&gt;
&lt;p&gt;Fully sorted list:&lt;/p&gt;
&lt;p&gt;Get-Service | sort-object status,name | Format-List name -GroupBy status&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3475428" width="1" height="1"&gt;</description></item></channel></rss>