<?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>Why Should I Learn PowerShell? Real World Example Saves the Day!</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/28/why-should-i-learn-powershell-real-world-example-saves-the-day.aspx</link><description>Guest blogger, Tim Bolton, shares a real world story that brings home the need to learn Windows PowerShell.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Why Should I Learn PowerShell? Real World Example Saves the Day!</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/28/why-should-i-learn-powershell-real-world-example-saves-the-day.aspx#3562144</link><pubDate>Mon, 01 Apr 2013 14:32:59 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3562144</guid><dc:creator>rk</dc:creator><description>&lt;p&gt;Sorry for the necropost, but I was validating this for a list of my servers and logged into one that this script was telling me was not running RSA. &amp;nbsp;When I logged in, I saw that it was running RSA. &amp;nbsp;Is there a better way?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3562144" width="1" height="1"&gt;</description></item><item><title>re: Why Should I Learn PowerShell? Real World Example Saves the Day!</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/28/why-should-i-learn-powershell-real-world-example-saves-the-day.aspx#3477853</link><pubDate>Mon, 30 Jan 2012 14:54:05 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3477853</guid><dc:creator>troth</dc:creator><description>&lt;p&gt;@jrv why not?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3477853" width="1" height="1"&gt;</description></item><item><title>re: Why Should I Learn PowerShell? Real World Example Saves the Day!</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/28/why-should-i-learn-powershell-real-world-example-saves-the-day.aspx#3477734</link><pubDate>Mon, 30 Jan 2012 00:07:59 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3477734</guid><dc:creator>jrv</dc:creator><description>&lt;p&gt;@jeffery - I don&amp;#39;t think so.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3477734" width="1" height="1"&gt;</description></item><item><title>re: Why Should I Learn PowerShell? Real World Example Saves the Day!</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/28/why-should-i-learn-powershell-real-world-example-saves-the-day.aspx#3477727</link><pubDate>Sun, 29 Jan 2012 23:10:37 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3477727</guid><dc:creator>Jeffrey Snover</dc:creator><description>&lt;p&gt;Cool stuff!&lt;/p&gt;
&lt;p&gt;If you give GET-WMIObject a set of servers to work against, it will do so concurrently making your script run MUCH faster. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Try this:&lt;/p&gt;
&lt;p&gt;$Servers = Get-Content &amp;quot;C:\Temp\MyServers.txt&amp;quot;&lt;/p&gt;
&lt;p&gt;Foreach ($Service in &amp;nbsp;Get-WMIobject win32_service -computername $Servers -Filter &amp;quot;Name = &amp;#39;OASVC_Local&amp;#39;&amp;quot;)&lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt; If ($Service.state -eq &amp;quot;running&amp;quot;)&lt;/p&gt;
&lt;p&gt; {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; Write-Output &amp;quot;RSA is Running for $Server&amp;quot; | out-file -append C:\Temp\RSA.txt&lt;/p&gt;
&lt;p&gt; &amp;nbsp; Write-Host &amp;quot;RSA is Running for $Server&amp;quot;&lt;/p&gt;
&lt;p&gt; } else&lt;/p&gt;
&lt;p&gt; {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; Write-Output &amp;quot;RSA is NOT Running for $Server&amp;quot; | out-file -append C:\Temp\RSA.txt&lt;/p&gt;
&lt;p&gt; &amp;nbsp; Write-Host &amp;quot;RSA is NOT Running for $Server&amp;quot; -BackgroundColor red&lt;/p&gt;
&lt;p&gt; }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3477727" width="1" height="1"&gt;</description></item><item><title>re: Why Should I Learn PowerShell? Real World Example Saves the Day!</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/28/why-should-i-learn-powershell-real-world-example-saves-the-day.aspx#3477633</link><pubDate>Sat, 28 Jan 2012 16:02:54 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3477633</guid><dc:creator>Josh Atwell</dc:creator><description>&lt;p&gt;Great post Tim and wonderful real world example of how PowerShell comes into play on a regular basis. It is also a great example of the quality of the PowerShell community! Well done Claus and thanks for sharing your story Tim!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3477633" width="1" height="1"&gt;</description></item></channel></rss>