Categories: Blog

What Is Different between the OS’s on Two Machines?

Don’t you love it when your application works on one machine, but not the other? We were running into this exact issue with a client and needed to see what was different between the operating systems on two machines. Thinking that the issue might have been a problem that got fixed in a hotfix/service pack, I whipped up the following PowerShell commands to get you the OS updates. I thought I’d share mainly so I wouldn’t have to figure out how to write this again six months from now.

$updateSearcher = new-object -com “Microsoft.Update.Searcher”
$updateCount= $updateSearcher.GetTotalHistoryCount()
$updateSearcher.QueryHistory(0,$updateCount) | Sort-Object -Property Date | ForEach-Object { Write-Output $_.Date $_.Title }

 Edit: Sept. 10, 2010: Thanks for the comments, <blush>, I used the wrong variable name. All fixed now.

John Robbins

Recent Posts

8-Step AWS to Microsoft Azure Migration Strategy

Microsoft Azure and Amazon Web Services (AWS) are two of the most popular cloud platforms.…

5 days ago

How to Navigate Azure Governance

 Cloud management is difficult to do manually, especially if you work with multiple cloud…

2 weeks ago

Why Azure’s Scalability is Your Key to Business Growth & Efficiency

Azure’s scalable infrastructure is often cited as one of the primary reasons why it's the…

4 weeks ago

Unlocking the Power of AI in your Software Development Life Cycle (SDLC)

https://www.youtube.com/watch?v=wDzCN0d8SeA Watch our "Unlocking the Power of AI in your Software Development Life Cycle (SDLC)"…

1 month ago

The Role of FinOps in Accelerating Business Innovation

FinOps is a strategic approach to managing cloud costs. It combines financial management best practices…

1 month ago

Azure Kubernetes Security Best Practices

Using Kubernetes with Azure combines the power of Kubernetes container orchestration and the cloud capabilities…

2 months ago