Getting Exchange Server Update Rollups

by Arman Obosyan 7. December 2009 23:31

…и снова определяем установленные Update Rollup на наших (или чужих) серверах. Я уже как то раз затрагивал эту тему, но недавно наткнулся на ещё один интересный скрипт по определению установленных Update Rollup на Exchange Server-ах

Так выглядит output отработанного скрипта,

get-UpdateRollup

get-UpdateRollup

 

Немного модифицированная версия скрипта (спасибо ребятам из PowerShell_Ru v2.0 и Microsoft Exchange Server – Russia за советы)

 

$exservers = Get-ExchangeServer | ? {$_.ServerRole -notlike "edge"}
foreach ($ex in $exservers)
{
$version = (get-exchangeserver -identity $ex).admindisplayversion
$edition = (get-exchangeserver -identity $ex).edition
write-host " "
write-host
"-----------------------------------------------------"
write-host
" "
write-host
"Exchange Server: $ex"
write-host
$version
write-host
"Edition: $edition"
write-host "Installed Update Rollups:"
$baseKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey(’LocalMachine’, $ex)
$regKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\461C2B4266EDEF444B864AD6D9E5B613\Patches\"
$baseKey = $baseKey.OpenSubKey($regKey)
$Updates = $baseKey.GetSubKeyNames()
$array = New-Object -comObject System.Collections.ArrayList
ForEach($Update in $Updates)
{
$fullPath= $regKey + $Update
$UpdateKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey(’LocalMachine’, $ex)
$UpdateKey = $UpdateKey.OpenSubKey($fullPath)
$values = $UpdateKey.GetValueNames()
ForEach($value in $values)
{
if ($value -eq "DisplayName")
{[
void]$array.Add($UpdateKey.GetValue($value))}
}
}
$array | sort -desc
write-host " "
write-host
"-----------------------------------------------------"
write-host
" "
}

 

сам скрипт тут

Get-E12UpdateRollup.ps1

 

Updated, Для Exchange Server 2010 ключ

$regKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\AE1D439464EB1B8488741FFA028E291C\Patches\"

исправленый скрипт тут

Get-E14UpdateRollup.ps1


get-UpdateRollup

 

See also Exchange Server Update Rollup Version and Build Numbers Table (updates regular)

 

Comments

12/10/2009 6:11:36 PM #

Andrey

Для Exchange 2010 информацию не выдает?

Andrey Russia | Reply

12/10/2009 10:08:42 PM #

Arman Obosyan



Дело в том что обновления UR для Exchange Server 2010 находятся в другом ключе

Если для Exchange 2007 они тут
"\Products\461C2B4266EDEF444B864AD6D9E5B613\Patches\"

то для Exchange 2010 уже тут
"\Products\AE1D439464EB1B8488741FFA028E291C\Patches\"

Таким образом в коде для Exchange 2010 это выглядит так,
$regKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\AE1D439464EB1B8488741FFA028E291C\Patches\"


Спасибо что спросили!, обновил в посте.


Arman Obosyan Georgia | Reply

12/11/2009 11:49:19 AM #

Andrey

Это даже не вопрос был, а констатация факта)
Свой скрипт переделал, спасибо.

Andrey Russia | Reply

12/11/2009 12:53:52 PM #

Arman Obosyan



ну обычно знак вопроса в конце предложения означает вопрос Smile

anyway прификсили!

Arman Obosyan Georgia | Reply

2/1/2010 6:42:10 PM #

trackback

Exchange Server and Update Rollups builds number

Exchange Server and Update Rollups builds number

EHLO ! | Reply

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



About the...

Author Arman Obosyan is an experienced IT Pro. with over 8 years work experience in Information Technologies sector. Now is working in National Bank of Georgia on a position Head of IT Infrastructure. Last 3 years working with one of the leading Bank in Georgia. His specialization is Messaging, Directory Services and other Microsoft server software solutions; also has good experience in maintenance and configuring Enterprise class storages and Enterprise class hardware/software solutions from various vendors,....

His hobby is Computers and despite very loaded and heavy working schedule he always finds time to participate in testing of Microsoft’s new Beta products.

Certified since 2003 year, have passed following certifications MCP, MCSA, MCSE, MCTS, MCITP

Calendar

<<  March 2010  >>
MoTuWeThFrSaSu
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

View posts in large calendar

RecentComments

Comment RSS