<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://powershell.com/cs/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>Search results for 'app:weblogs' matching tags '2012 Scripting Games' and 'operating system'</title><link>http://powershell.com/cs/search/SearchResults.aspx?q=app:weblogs&amp;tag=2012+Scripting+Games,operating+system&amp;orTags=0&amp;o=DateDescending</link><description>Search results for 'app:weblogs' matching tags '2012 Scripting Games' and 'operating system'</description><dc:language>en-US</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><item><title>2012 Scripting Games Advanced Event 10: Create a CSV Log File</title><link>http://powershell.com/cs/blogs/hey-scriptingguy/archive/2012/04/13/2012-scripting-games-advanced-event-10-create-a-csv-log-file.aspx</link><pubDate>Fri, 13 Apr 2012 05:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:15955</guid><dc:creator>Anonymous</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-18/8203.hsg_2D00_2_2D00_4_2D00_12_2D00_1.png"&gt;&lt;img title="2012 Scripting Games badge" alt="2012 Scripting Games badge" src="http://blogs.technet.com/resized-image.ashx/__size/150x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-18/8203.hsg_2D00_2_2D00_4_2D00_12_2D00_1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Summary&lt;/b&gt;: &amp;nbsp;In Advanced Event 10, you want to create a CSV log file of all the counters in the &lt;b&gt;Processor&lt;/b&gt; counter set.&lt;/p&gt;
&lt;p class="TableNum-Title"&gt;&lt;strong&gt;About this event&lt;/strong&gt;&lt;/p&gt;
&lt;table cellspacing="0" cellpadding="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p class="TableText"&gt;Division&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p class="TableText"&gt;Advanced&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p class="TableText"&gt;Date of Event&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p class="TableText"&gt;4/13/2012 12:01 AM&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p class="TableText"&gt;Due Date&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p class="TableText"&gt;4/20/2012 12:01 AM&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2&gt;Event scenario&lt;/h2&gt;
&lt;p&gt;You are a server admin, and you are concerned about the processor performance of one particular server. You decide to use Windows PowerShell to create a CSV log file of all the counters in the &lt;b&gt;Processor&lt;/b&gt; counter set. You decide to take the counter snapshot at two-second intervals for a total of ten snapshots. You plan to analyze the data in a Microsoft Excel spreadsheet. An acceptable output is shown in the figure that follows. Create the CSV file in the &lt;i&gt;Documents &lt;/i&gt;special folder for the current logged-on user. The file name should be &lt;i&gt;servername_processorCounters.csv.&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-18/0160.adv_2D00_10_2D00_2012.png"&gt;&lt;img src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-18/0160.adv_2D00_10_2D00_2012.png" alt="Image of command output" title="Image of command output" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Design points&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Make sure that you include all of the counters for all instances of the processor object.&lt;/li&gt;
&lt;li&gt;Make sure that the saved CSV file is readable from within Microsoft Excel.&lt;/li&gt;
&lt;li&gt;Make sure that you get the number of snapshots with the prescribed time between snapshots.&lt;/li&gt;
&lt;li&gt;This can be a &amp;ldquo;one liner&amp;rdquo; single logical command. Do not write complex, difficult-to-understand script because you will lose points.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;2012 Scripting Games links&lt;/h2&gt;
&lt;p style="padding-left:30px;"&gt;&lt;a href="http://blogs.technet.com/b/heyscriptingguy/archive/2012/02/04/the-2012-windows-powershell-scripting-games-all-links-on-one-page.aspx" target="_blank"&gt;&lt;strong&gt;2012 Scripting Games: All Links on One Page&lt;/strong&gt;&lt;/a&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;I invite you to follow me on&amp;nbsp;&lt;a href="http://bit.ly/scriptingguystwitter" target="_blank"&gt;Twitter&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="http://bit.ly/scriptingguysfacebook" target="_blank"&gt;Facebook&lt;/a&gt;. If you have any questions, send email to me at&amp;nbsp;&lt;a href="mailto:scripter@microsoft.com"&gt;scripter@microsoft.com&lt;/a&gt;, or post your questions on the&amp;nbsp;&lt;a href="http://bit.ly/scriptingforum" target="_blank"&gt;Official Scripting Guys Forum&lt;/a&gt;. Good luck as you compete in this year&amp;rsquo;s Scripting Games. We wish you well.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Ed Wilson, Microsoft Scripting Guy&lt;/b&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3487521" width="1" height="1" alt="" /&gt;</description></item><item><title>2012 Scripting Games Beginner Event 10: Collect Performance Counter Information</title><link>http://powershell.com/cs/blogs/hey-scriptingguy/archive/2012/04/13/2012-scripting-games-beginner-event-10-collect-performance-counter-information.aspx</link><pubDate>Fri, 13 Apr 2012 05:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:15954</guid><dc:creator>Anonymous</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-18/8203.hsg_2D00_2_2D00_4_2D00_12_2D00_1.png"&gt;&lt;img title="2012 Scripting Games badge" alt="2012 Scripting Games badge" src="http://blogs.technet.com/resized-image.ashx/__size/150x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-18/8203.hsg_2D00_2_2D00_4_2D00_12_2D00_1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Summary&lt;/b&gt;: In Beginner Event 10, you are required to collect performance counter information about your CPU.&lt;/p&gt;
&lt;p class="TableNum-Title"&gt;&lt;strong&gt;About this event&lt;/strong&gt;&lt;/p&gt;
&lt;table cellspacing="0" cellpadding="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p class="TableText"&gt;Division&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p class="TableText"&gt;Beginner&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p class="TableText"&gt;Date of Event&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p class="TableText"&gt;4/13/2012 12:01 AM&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p class="TableText"&gt;Due Date&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p class="TableText"&gt;4/20/2012 12:01 AM&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2&gt;Event scenario&lt;/h2&gt;
&lt;p&gt;You are a network administrator for a small company, and you are attempting to monitor a transient problem with CPU spiking on one of your servers. You decide that rather than running the performance monitor or task manager, you want to use Windows PowerShell to collect the performance counter information. You do not have time to manually choose a bunch of counters, but you want to gather all of the counter information from the processor counter set. You should take three separate readings at five-second intervals. All of the counter information should be appended to a single text file that is named after the server and placed in the &lt;i&gt;Documents &lt;/i&gt;special folder. An appropriate output is shown in the image that follows.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-18/8272.beg_2D00_10_2D00_2012.png"&gt;&lt;img src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-18/8272.beg_2D00_10_2D00_2012.png" alt="Image of command output" title="Image of command output" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Design points&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;You can write the performance counter information directly to a text file named after the server. Place the text file into the &lt;i&gt;Documents&lt;/i&gt; special folder. The file name will look like the following: &lt;i&gt;servername_ProcessorCounters.txt.&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;Your command should retrieve all of the performance counter information from the &lt;b&gt;Processor&lt;/b&gt;&lt;i&gt; &lt;/i&gt;performance counter set.&lt;/li&gt;
&lt;li&gt;You do not need to write a long convoluted script to meet the requirements of this scenario. You will lose points for long, complicated, hard-to-read scripts.&lt;/li&gt;
&lt;li&gt;A &amp;ldquo;one liner&amp;rdquo; command can be written that will satisfy the requirements of this scenario.&lt;/li&gt;
&lt;li&gt;You should use &lt;i&gt;native &lt;/i&gt;Windows PowerShell commands for this scenario where possible.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;2012 Scripting Games links&lt;/h2&gt;
&lt;p style="padding-left:30px;"&gt;&lt;a href="http://blogs.technet.com/b/heyscriptingguy/archive/2012/02/04/the-2012-windows-powershell-scripting-games-all-links-on-one-page.aspx" target="_blank"&gt;&lt;strong&gt;2012 Scripting Games: All Links on One Page&lt;/strong&gt;&lt;/a&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;I invite you to follow me on&amp;nbsp;&lt;a href="http://bit.ly/scriptingguystwitter" target="_blank"&gt;Twitter&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="http://bit.ly/scriptingguysfacebook" target="_blank"&gt;Facebook&lt;/a&gt;. If you have any questions, send email to me at&amp;nbsp;&lt;a href="mailto:scripter@microsoft.com"&gt;scripter@microsoft.com&lt;/a&gt;, or post your questions on the&amp;nbsp;&lt;a href="http://bit.ly/scriptingforum" target="_blank"&gt;Official Scripting Guys Forum&lt;/a&gt;. Good luck as you compete in this year&amp;rsquo;s Scripting Games. We wish you well.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Ed Wilson, Microsoft Scripting Guy&lt;/b&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3487520" width="1" height="1" alt="" /&gt;</description></item><item><title>The Scripting Wife Uses PowerShell to Find Service Accounts</title><link>http://powershell.com/cs/blogs/hey-scriptingguy/archive/2012/02/15/the-scripting-wife-uses-powershell-to-find-service-accounts.aspx</link><pubDate>Wed, 15 Feb 2012 06:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:14664</guid><dc:creator>Anonymous</dc:creator><description>&lt;p&gt;&lt;b&gt;Summary&lt;/b&gt;: The Scripting Wife interrupts Brahms to learn how to use Windows PowerShell to find service accounts and service start modes.&lt;/p&gt;
&lt;p&gt;Microsoft Scripting Guy, Ed Wilson, is here. One of life&amp;rsquo;s real pleasures is sitting around a fireplace, listening to a &lt;a href="http://en.wikipedia.org/wiki/Double_Concerto_(Brahms)" target="_blank"&gt;Brahms concerto&lt;/a&gt;, and sipping a cup of &lt;a href="http://en.wikipedia.org/wiki/Chamomile" target="_blank"&gt;chamomile tea&lt;/a&gt;. I like to add a bit of local honey, and drop in a cinnamon stick. So here I am&amp;hellip;mellow and as relaxed as a cat lying in a bay window on a warm summer afternoon. The &lt;a href="http://charlotte-sql.org/" target="_blank"&gt;Charlotte SQL User Group&lt;/a&gt; meeting tonight was awesome. We had not seen Chris Skorlinski (the speaker) since the &lt;a href="http://www.sqlsaturday.com/46/eventhome.aspx" target="_blank"&gt;Raleigh SQL Saturday&lt;/a&gt;, so we were excited to go. The Scripting Wife and I had a great time, and it was a nice chance to see some friends we had not seen for a while.&lt;/p&gt;
&lt;p&gt;Anyway, work finished, now it is time for a warm fire, a little Brahms, and a cup of warm (but not boiling) tea. About to nod off, I was suddenly startled back into reality as the overhead light suddenly switched on.&lt;/p&gt;
&lt;p&gt;&amp;ldquo;How can you see in here in the dark,&amp;rdquo; the Scripting Wife exclaimed.&lt;/p&gt;
&lt;p&gt;&amp;ldquo;There was nothing to see&amp;mdash;I was listening to Brahms,&amp;rdquo; I began.&lt;/p&gt;
&lt;p&gt;&amp;ldquo;You need to turn that racket down. The neighbor&amp;rsquo;s dog is beginning to howl. I think he prefers Trace Adkins to that classical stuff anyway,&amp;rdquo; she continued, &amp;ldquo;As long as you are awake, I have a problem with a Windows PowerShell command.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;&amp;ldquo;I see. I think it is you who likes Trace Adkins.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;&amp;ldquo;Yep, but don&amp;rsquo;t sidetrack me with talk about Trace Adkins, I need to be prepared for the 2012 Scripting Games so I do not embarrass you or me. Now back to what I came to ask you. I am trying to figure out what account a service uses to start, and I don&amp;rsquo;t see it. &amp;ldquo;&lt;/p&gt;
&lt;p&gt;&amp;ldquo;And&amp;hellip;&amp;rdquo;&lt;/p&gt;
&lt;p&gt;&amp;ldquo;And nothing. I type &lt;b&gt;Get-Service&lt;/b&gt;, and I do not see anything about service user accounts.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;&amp;ldquo;Show me your command,&amp;rdquo; I wearily asked.&lt;/p&gt;
&lt;p&gt;&amp;ldquo;It is right here. Nothing hard&amp;hellip;see?&amp;rdquo;&lt;/p&gt;
&lt;p&gt;She plopped down beside me on the sofa and showed me her laptop. She had typed the single command shown here.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Get-Service&lt;/p&gt;
&lt;p&gt;The command and the output from the command are shown in the image that follows.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-18/6266.hsg_2D00_2_2D00_15_2D00_12_2D00_01.png"&gt;&lt;img src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-18/6266.hsg_2D00_2_2D00_15_2D00_12_2D00_01.png" alt="Image of command output" title="Image of command output" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;ldquo;You know that there is more information don&amp;rsquo;t you?&amp;rdquo; I asked.&lt;/p&gt;
&lt;p&gt;&amp;ldquo;Well, duh,&amp;rdquo; she said. &amp;ldquo;OK, I will clear the screen and send the output to the &lt;b&gt;Format-List&lt;/b&gt; cmdlet.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;Here is what the Scripting Wife did to clear the screen and to obtain all the information available from the &lt;b&gt;Get-Service&lt;/b&gt; cmdlet.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;She cleared the screen by using the &lt;b&gt;Clear-Host&lt;/b&gt; command. But instead of typing &lt;b&gt;Clear-Host&lt;/b&gt;, she used the &lt;b&gt;cls&lt;/b&gt;&lt;i&gt; &lt;/i&gt;shortcut command instead.&lt;/li&gt;
&lt;li&gt;Next, she pressed the Up arrow one time to retrieve the previous &lt;b&gt;Get-Service&lt;/b&gt; command.&lt;/li&gt;
&lt;li&gt;She then typed a space &amp;lt;space&amp;gt; by tapping the Space bar one time, and then she typed a pipe character (the pipe character | is located above the Enter key on my keyboard).&lt;/li&gt;
&lt;li&gt;She then typed a space and &lt;b&gt;Format-List&lt;/b&gt; * after the pipe character.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The complete command is shown here.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Get-Service | Format-List *&lt;/p&gt;
&lt;p&gt;The command and the associated output from the command are shown in the image that follows.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-18/2146.hsg_2D00_2_2D00_15_2D00_12_2D00_02.png"&gt;&lt;img src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-18/2146.hsg_2D00_2_2D00_15_2D00_12_2D00_02.png" alt="Image of command output" title="Image of command output" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;ldquo;OK. I am looking at this output, and I still do not see anything about the service account that a service uses to start up,&amp;rdquo; she complained.&lt;/p&gt;
&lt;p&gt;&amp;ldquo;Well, I did not say it was there, did I? I just asked you if you had looked at all of the information that the &lt;b&gt;Get-Service&lt;/b&gt; cmdlet provides,&amp;rdquo; I stated. &amp;ldquo;To find the service account start-up information, you need to use WMI. Remember yesterday when we talked about &lt;a href="http://blogs.technet.com/b/heyscriptingguy/archive/2012/02/14/the-scripting-wife-uses-powershell-to-get-hardware-information.aspx" target="_blank"&gt;Using PowerShell to Get Hardware Information&lt;/a&gt;? You can use the same technique today as you used yesterday.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;The Scripting Wife thought for a few seconds, and then she typed the following command.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Get-WmiObject &amp;ndash;list *service*&lt;/p&gt;
&lt;p&gt;&amp;ldquo;Wow, that is a lot of information,&amp;rdquo; she exclaimed. She turned the laptop monitor so I could look at the display. Indeed, as is shown here, it is a lot of information.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-18/1524.hsg_2D00_2_2D00_15_2D00_12_2D00_03.png"&gt;&lt;img src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-18/1524.hsg_2D00_2_2D00_15_2D00_12_2D00_03.png" alt="Image of command output" title="Image of command output" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;ldquo;Use the same technique that you used yesterday to find the WMI class you need to work with services,&amp;rdquo; I prompted.&lt;/p&gt;
&lt;p&gt;Within a few minutes, the Scripting Wife was pointing at &lt;b&gt;Win32_Service&lt;/b&gt;.&lt;/p&gt;
&lt;p&gt;&amp;ldquo;Now use the &lt;b&gt;Get-WmiObject&lt;/b&gt; cmdlet to query that WMI class,&amp;rdquo; I said.&lt;/p&gt;
&lt;p&gt;It did not take her long to modify her command line to query the &lt;b&gt;Win32_Service WMI&lt;/b&gt; class. Here is the command she composed.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Get-WmiObject Win32_Service&lt;/p&gt;
&lt;p&gt;The command and the associated results are shown in the image that follows.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-18/6011.hsg_2D00_2_2D00_15_2D00_12_2D00_04.png"&gt;&lt;img src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-18/6011.hsg_2D00_2_2D00_15_2D00_12_2D00_04.png" alt="Image of command output" title="Image of command output" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;ldquo;OK, so where are the service accounts?&amp;rdquo; she asked.&lt;/p&gt;
&lt;p&gt;&amp;ldquo;Remember, you need to use the same technique that you used with the &lt;b&gt;Get-Service&lt;/b&gt; cmdlet to retrieve all the information,&amp;rdquo; I said.&lt;/p&gt;
&lt;p&gt;She thought for a bit, then pressed the Up arrow to retrieve the previous command. Then she added a pipeline character and the &lt;b&gt;Format-List&lt;/b&gt; cmdlet. The revised command is shown here.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Get-WmiObject win32_service | format-list *&lt;/p&gt;
&lt;p&gt;The command and its associated output are shown in the image that follows.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-18/6683.hsg_2D00_2_2D00_15_2D00_12_2D00_05.png"&gt;&lt;img src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-18/6683.hsg_2D00_2_2D00_15_2D00_12_2D00_05.png" alt="Image of command output" title="Image of command output" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;ldquo;So where is the service account name?&amp;rdquo; she asked.&lt;/p&gt;
&lt;p&gt;&amp;ldquo;Look closely at the output. See where it says &lt;i&gt;StartName&lt;/i&gt;? That is the service account. See where it says &lt;i&gt;StartMode&lt;/i&gt;? That is the way the service starts,&amp;rdquo; I said, &amp;ldquo;Why don&amp;rsquo;t you create a table with just the &lt;i&gt;Name&lt;/i&gt;, &lt;i&gt;StartName&lt;/i&gt;, and &lt;i&gt;StartMode&lt;/i&gt;.&amp;rdquo;&lt;/p&gt;
&lt;p&gt;This time the Scripting Wife did not hesitate. She first cleared the screen, then used the Up arrow to retrieve the previous command. She then edited it by changing it to a &lt;b&gt;Format-Table&lt;/b&gt; command. The command that she arrived at is shown here with its associated output.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-18/4666.hsg_2D00_2_2D00_15_2D00_12_2D00_06.png"&gt;&lt;img src="http://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-76-18/4666.hsg_2D00_2_2D00_15_2D00_12_2D00_06.png" alt="Image of command output" title="Image of command output" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;ldquo;That&amp;rsquo;s cool,&amp;rdquo; she said.&lt;/p&gt;
&lt;p&gt;And with that, she was gone. Just in time for the &lt;i&gt;Andante &lt;/i&gt;movement in D-major. Brahms may not have had Windows PowerShell in mind when he wrote, but somehow it seems to fit.&lt;/p&gt;
&lt;p&gt;I invite you to follow me on &lt;a href="http://bit.ly/scriptingguystwitter" target="_blank"&gt;Twitter&lt;/a&gt; and &lt;a href="http://bit.ly/scriptingguysfacebook" target="_blank"&gt;Facebook&lt;/a&gt;. If you have any questions, send email to me at &lt;a href="mailto:scripter@microsoft.com" target="_blank"&gt;scripter@microsoft.com&lt;/a&gt;, or post your questions on the &lt;a href="http://bit.ly/scriptingforum" target="_blank"&gt;Official Scripting Guys Forum&lt;/a&gt;. See you tomorrow. Until then, peace.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Ed Wilson, Microsoft Scripting Guy&lt;/b&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3480247" width="1" height="1" alt="" /&gt;</description></item></channel></rss>