Compare Hotfixes installed on 2 computer using PowerShell

 function hotfixcompare ($computer1, $computer2)
{
$node1 = Get-HotFix -ComputerName $computer1
$node2 = Get-HotFix -ComputerName $computer2
Compare-Object -ReferenceObject $node1 -DifferenceObject $node2  -Property HotFixID
}
hotfixcompare ex01 lyncse |sort -Property sideindicator

Description of Script

node1 = ex01

node2 = lyncse

Sideindicator == means that the 2 nodes have the same hotfixes

Sideindicator => means that the hotfix is installed on the second node “lyncse”

Sideindicator <= means that the hotfix is installed on the first node “ex01”

Comments

  • Anonymous
    December 20, 2012
    Nice. It works.