<?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>Format PowerShell Output with an Easy-to-Use Table</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/02/23/format-powershell-output-with-an-easy-to-use-table.aspx</link><description>Summary : The Scripting Wife learns how to format Windows PowerShell output with the easy-to-use Format-Table cmdlet. 
 Microsoft Scripting Guy, Ed Wilson, here. I wonder how you might describe the perfect day? For me, it consists of receiving feedback</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Format PowerShell Output with an Easy-to-Use Table</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/02/23/format-powershell-output-with-an-easy-to-use-table.aspx#3479972</link><pubDate>Thu, 09 Feb 2012 17:06:52 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3479972</guid><dc:creator>Ed Wilson</dc:creator><description>&lt;p&gt;@shsScripting You need to use the WMI class win32_Service class to obtain the log on as portion. You cannot obtain the information from the Get-Service Windows PowerShell cmdlet. Here is an example gwmi win32_service | select name, startname&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3479972" width="1" height="1"&gt;</description></item><item><title>re: Format PowerShell Output with an Easy-to-Use Table</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/02/23/format-powershell-output-with-an-easy-to-use-table.aspx#3479967</link><pubDate>Thu, 09 Feb 2012 16:47:30 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3479967</guid><dc:creator>shscripting</dc:creator><description>&lt;p&gt;How can you get the &amp;quot;Log On As&amp;quot; as part of the output? &amp;nbsp;For example: &amp;nbsp;get-service | Format-Table -property Name, DisplayName, Status, [log on as] -auto&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3479967" width="1" height="1"&gt;</description></item><item><title>re: Format PowerShell Output with an Easy-to-Use Table</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/02/23/format-powershell-output-with-an-easy-to-use-table.aspx#3389632</link><pubDate>Wed, 23 Feb 2011 22:27:30 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3389632</guid><dc:creator>ambrosis</dc:creator><description>&lt;p&gt;Ahh, of course, that makes sense now.&lt;/p&gt;
&lt;p&gt;Is there any way a script can detect whether &amp;quot;FT -auto&amp;quot; or &amp;quot;-FT&amp;quot; have been used, so I can have the script react accordingly by writing to host from the loop when -auto has been used?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3389632" width="1" height="1"&gt;</description></item><item><title>re: Format PowerShell Output with an Easy-to-Use Table</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/02/23/format-powershell-output-with-an-easy-to-use-table.aspx#3389540</link><pubDate>Wed, 23 Feb 2011 18:05:04 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3389540</guid><dc:creator>IamMred</dc:creator><description>&lt;p&gt;@ambrosis this is because when using -autosize parameter all of the information has to be collected and evaluated according to the size of the output prior to determining the number and size of columns. On the other hand, without using -autosize, each item that comes accross the pipeline is displayed to the table. Depending on how your function is written, and how you use your function this might generate one table of varying widths, or multiple tables with a single width. Learning how to work with the pipeline, and with output can offer some challenges ... and that is the reason for its inclusion in this years Scripting Games. Keep in mind, use of -autosize is not called for in all occasions. At times it will add a significant amount of overhead to a script especially when dealing with millions of objects.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3389540" width="1" height="1"&gt;</description></item><item><title>re: Format PowerShell Output with an Easy-to-Use Table</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/02/23/format-powershell-output-with-an-easy-to-use-table.aspx#3389396</link><pubDate>Wed, 23 Feb 2011 10:45:23 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3389396</guid><dc:creator>ambrosis</dc:creator><description>&lt;p&gt;I&amp;#39;ve noticed a difference to WHEN data is output depending on whether I use Forat-table or Format-Table -AutoSize.&lt;/p&gt;
&lt;p&gt;I have a while loop within which is a call to a function that returns an object. If I run this script with &amp;quot;| FT&amp;quot; it outputs each object during as the functions is called, if I use &amp;quot;| FT -auto&amp;quot; it outputs the objects together once the while loop has completed! What gives?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3389396" width="1" height="1"&gt;</description></item></channel></rss>