<?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>Updated : Exchange version powershell script</title><link>http://blogs.technet.com/msukucc/archive/2009/05/07/updated-exchange-version-powershell-script.aspx</link><description>Further to my blog post on April 30th , I have updated the powershell script to output in a more usable manner and also detect more information about your exchange servers… ServerName TransportVer CASver StoreVer SERVER1 08.01.0336.000 08.01.0336.000</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Updated : Exchange version powershell script</title><link>http://blogs.technet.com/msukucc/archive/2009/05/07/updated-exchange-version-powershell-script.aspx#3250765</link><pubDate>Fri, 05 Jun 2009 15:07:42 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3250765</guid><dc:creator>DLang</dc:creator><description>&lt;p&gt;Hey, I am trying to adapt your original code to check for a specified file on a network share. So, far, i cannot get it to set the property correctly for the host, therefore, it always comes back else, mind taking a look at it?(See Below)&lt;/p&gt;
&lt;p&gt;PS:after the function is succesful, can i pipe $storever to Out-File?&lt;/p&gt;
&lt;p&gt;#Attempts to get a list of computer names to test&lt;/p&gt;
&lt;p&gt;$exservers = gc pclist.txt&lt;/p&gt;
&lt;p&gt;#Beginning of the function loop&lt;/p&gt;
&lt;p&gt;foreach ($server in $exservers)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;write-host -f green &amp;quot;Examining Store on $server...&amp;quot; -nonewline&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;# To get around Cluster share scoping, we need to query via IP...&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;$ping = new-object System.Net.NetworkInformation.Ping&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;$reply = $ping.send($server) &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;$ipaddress = $reply.address &lt;/p&gt;
&lt;p&gt; #I think this is the problem, it does not resolve this path correctly&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;if (Test-Path &amp;quot;\\$ipaddress\c$\Program Files\Microsoft Office\Office12\WINWORD.EXE)&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$storever = Get-FileVersionInfo(&amp;quot;\\$ipaddress\c$\Program Files\Microsoft Office\Office12\WINWORD.EXE&amp;quot;).Fileversion&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;write-host -f yellow $storever&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;else&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;write-host -f red &amp;quot;Unable to Find Store.exe&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
</description></item><item><title>re: Updated : Exchange version powershell script</title><link>http://blogs.technet.com/msukucc/archive/2009/05/07/updated-exchange-version-powershell-script.aspx#3254872</link><pubDate>Mon, 15 Jun 2009 13:18:21 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3254872</guid><dc:creator>msukucc</dc:creator><description>&lt;p&gt;Looks like the parenthesis are in the wrong place, try this...&lt;/p&gt;
&lt;p&gt;if (Test-Path &amp;quot;\\$ipaddress\c$\Program Files\Microsoft Office\Office12\WINWORD.EXE&amp;quot;)&lt;/p&gt;
&lt;p&gt;Neil.&lt;/p&gt;
</description></item></channel></rss>