PowerShell: How to use Get-Hotfix to check if a Windows Update has been installed


Here is a really quick way of checking if a particular Windows Update patch has been installed using PowerShell.

And it’s much easier than searching through the Windows Update History!

Windows Update History

The PowerShell Cmdlet we’re going to be using is Get-HotFix.

Open a PowerShell window and type Get-Hotfix


If you are looking for a particlar KB article use the following: Get-Hotfix KB3185911

Get-Hotfix KB3185911

That’s great for the local computer but what if you need to check on a remote computer?

First let’s look at the help, type Get-Help Get-Hotfix

Get-Help Get-HotfixSo we can see there us a -ComputerName String parameter and -Credential, so let try the following:

Get-Hotfix KB3185911 -ComputerName MGMT, HV01 -Credential domain\username

You’ll be prompted for the user account password

Windows PowerShell CredentialsAnd then you will get a similar output to below.

Get-Hotfix KBnumber -ComputerName computer1 computer2 -Credential domain username



Related Posts:

1. PowerShell: Get-ADComputer to retrieve computer last logon date – part 1

2. PowerShell: Get-ADUser to retrieve password last set and expiry information

3. Exchange PowerShell: How to list all SMTP email addresses in Exchange

4. Exchange PowerShell: How to enumerate Distribution Lists, managers and members

5. Office 365 PowerShell: How to bulk change Office 365 calendar permissions using Windows PowerShell

1 thought on “PowerShell: How to use Get-Hotfix to check if a Windows Update has been installed

Comments are closed.