Powershell Script to generate report on update rollup installed on all the Exchange Server 2010 Servers

Latest RU available at this point of time is RU5. When you start updating it’s hard to keep track which server is updated and which server is not unless you make note off. If you wanted to query all the exchange 2010 to find what the rollup version is installed then it’s not easy to find one. Exchange management shell and console will not show the version number of the RU, it only show the major version and service pack version. Exchange console and shell gets updated when ever we install server pack. So one of the best ways to find the latest RUs installed is by checking the version number of Exsetup.exe which is available in the Bin director on the Exchange installed servers.

Below is the script which queries all the Exchange 2010 serves for the file version of Exsetup.exe and write to the text file result.txt. It has the data in the format servername, version number and role installed and each is divided by “|” so its easy to format using excel

$installpath = "c$\Program Files\Microsoft\Exchange Server\V14\Bin\ExSetup.exe"Get-ExchangeServer  | ?{$_.admindisplayversion -like  "*14*"} | %{$Servername = $_.Name$role = $_.serverrole$Path = "\\" + $Servername + "\" + $installpath$fileversion = (Get-Command $Path).FileVersionInfo |ForEach {$_.FileVersion}$result = $Servername + "|" +  $fileversion + "|" + $role$result$result >> result.txt}

I hope this helps you some day to pull this report for your team and manager real quick 🙂

4 thoughts on “Powershell Script to generate report on update rollup installed on all the Exchange Server 2010 Servers

  1. Thanks for this, very concise code. While searching for a way to grab this information via powershell I’ve found some really huge scripts to do what this does in a few lines.

Leave a reply to Troy Cancel reply