Exchange Server Share

… Information sharing on Exchange Server …

Exchange Powershell Tip #03

Exchange Powershell Tip #03

How to find which Service Pack and Update Rollup is installed on all Exchange servers in your organization? This applies to Exchange 2010 and 2013 both.

Get-ExchangeServer | Sort-Object Name | ForEach{Invoke-Command -ComputerName $_.Name -ScriptBlock { Get-Command ExSetup.exe | ForEach{$_.FileVersionInfo } } } | Format-Table -Auto

Compare the Product/File Version Result from the output of above cmdlet with Exchange Server and Update Rollups Build Numbers to find the actual Service Pack and Update Rollup.

Sample Output:

ExShellTip3-ExVersion

==> Get All Exchange Powershell Tips from the Archive Here<==

Written by Amit Tank

May 24, 2014 at 5:00 pm

3 Responses

Subscribe to comments with RSS.

  1. It would be helpful to use full cmdlet names instead of aliases and to show a result. But it is a great example of how you can accomplish a lot with one command.

    • That’s good suggestion Jeff! Just updated it with full cmdlet and a sample output from my lab. And yeh, thanks for sharing it with others.🙂

      I am planning to post one Exchange related Powershell tip (mostly one liner cmdlets) every day that I have in my notes and using them to manage my client’s Exchange infrastructure…

      Amit Tank

      May 25, 2014 at 10:47 am

  2. Much better. The best practice for posted code samples is no aliases. If someone wants to use them when they type the command that is fine, otherwise your code might be cryptic to PowerShell beginners and it really doesn’t have to be.


Comments are closed.

%d bloggers like this: