如何从命令行或PowerShell中获取为Exchange安装的RU,SP和其他更新的列表?

有没有办法从命令行,PowerShell或Exchange命令行pipe理程序获取为MS Exchange服务器安装的更新,汇总和服务包列表?

我已经尝试过Get-HotfixGet-WmiObjectSysteminfo但是上面的所有内容似乎都只返回了为系统(Windows)而不是为Exchange安装的更新列表。

编辑: Get-ExchangeServer不满足我的需求,因为Exchange 2010 SP3它似乎总是报告生成版本123.4尽pipe所有新的汇总安装和实际构build号码是224.2。

Get-ExchangeServer结果vs Exchange安装的更新列表

Microsoftbuild议的获取Exchange Service Pack和汇总版本的方法是获取Exsetup.exe上的文件版本信息。

在Exchange命令行pipe理程序中,使用:

Get-Command Exsetup.exe | ForEach-Object {$ _。FileversionInfo}

然后查看针对Microsoft Exchange Server Updates: build numbers and release dates返回的版本Exchange Server Updates: build numbers and release dates页面。

是的,这是非常细粒度,除非你想parsing所有安装的更新列表的Exchange特定的更新。