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!
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
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
So 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
And then you will get a similar output to below.
References:
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
need script to apply Microsoft KB’s on multiple servers remotly.
please help.