MEA Center of Expertise

We are a 120+ technology enthusiasts helping Microsoft customers around Middle-East & Africa region. We bridge Microsoft tools & technologies to their businesses.

Compare Hotfixes installed on 2 computer using PowerShell

Compare Hotfixes installed on 2 computer using PowerShell

  • Comments 1
  • Likes
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
  • Nice. It works.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment