If your looking for something a bit prettier you could check out my Exchange 
Environment Report which will provide this and some additional info:

http://www.stevieg.org/2011/06/exchange-environment-report/

Sent from my iPhone

On 21 Jun 2012, at 14:38, "Michael B. Smith" 
<mich...@smithcons.com<mailto:mich...@smithcons.com>> wrote:

I didn’t write this original script, I just modified it to handle some obvious 
errors, but unfortunately I didn’t keep the original author’s byline handy.

The UR information is hidden pretty deeply. This script will get it out.

Get-ExchangeServer |% {
                [bool]$known = $false

        $name    = $_.ToString()
        $version = $_.AdminDisplayVersion.Major

        if ($version -eq "14")
        {
                $key = 
"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Installer\\UserData\\S-1-5-18\\Products\\AE1D439464EB1B8488741FFA028E291C\\Patches"
                $setup = "SOFTWARE\\Microsoft\\ExchangeServer\\v14\\Setup"
                                $known = $true
        }
        elseif ($version -eq "8")
        {
                $key = 
"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Installer\\UserData\\S-1-5-18\\Products\\461C2B4266EDEF444B864AD6D9E5B613\\Patches"
                $setup = "SOFTWARE\\Microsoft\\Exchange\\Setup"
                                $known = $true
        }

                if( $known )
                {
                        $VALUE1 = "DisplayName"
                $VALUE2 = "Installed"
                        $VALUE3 = "MsiInstallPath"

                        $reg = 
[Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey( 'LocalMachine', $name )
                $regKey= $reg.OpenSubKey( $setup )
                        $installPath = ( $regkey.getvalue( $VALUE3 ) | foreach 
{ $_ -replace (":", "`$") } )
                $binFile = "Bin\ExSetup.exe"
                        $exSetupVer = ( ( Get-Command 
"\\$name\$installPath$binFile" ).FileVersionInfo | ForEach { $_.FileVersion } )
                $regKey= $reg.OpenSubKey( $key ).GetSubKeyNames() | ForEach { 
"$key\\$_" }
                        $dispName = [array] ( $regkey | % { $reg.OpenSubKey( $_ 
).getvalue( $VALUE1 ) } )
                $instDate = [array] ( $regkey | % { $reg.OpenSubKey( $_ 
).getvalue( $VALUE2 ) } )
                        $countmembers = 0

                        if ($regkey -ne $null)
                {
                                while ($countmembers -lt $dispName.Count)
                                {
                                                $name + "," + $dispName[ 
$countmembers ] + "," + $instDate[ $countmembers ].substring( 0, 4 ) +
                                                                                
"/" + $instDate[ $countmembers ].substring( 4, 2 ) + "/" +
                                                                                
$instDate[ $countmembers ].substring( 6, 2 ) + "," + $exsetupver
                                        $countmembers++
                                }
                }
                        else
                {
                                $name + ",No Rollup Updates are installed,," + 
$exsetupver
                        }
                }
                else
                {
                                $name + ",Unknown version,,"
                }
}

From: Jason Benway [mailto:benw...@jsjcorp.com]
Sent: Thursday, June 21, 2012 8:49 AM
To: MS-Exchange Admin Issues
Subject: SP2 RU3

I install SP2 RU3 for exchange 2010 this weekend it seemed to finish 
successfully, but the version still shows 14.2 (build 247.5)
Looks like I should see a build number of 14.2.309.2 for RU3

So what happened to the RU, did it not install correctly?

jb

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe exchangelist

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe exchangelist

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe exchangelist

Reply via email to