CmdID / PowerShell / Cmdlets / Get
Get-HotFix
Gets the hotfixes that are installed on local or remote computers. PowerShell reference
From the PowerShell reference 4 parameters
What it does
Gets the hotfixes that are installed on local or remote computers. This cmdlet is only available on the Windows platform. The Get-HotFix cmdlet uses the Win32_QuickFixEngineering WMI class to list hotfixes that are installed on the local computer or specified remote computers.
Get-HotFix [[-Id] <String[]>] [-ComputerName <String[]>] [-Credential <PSCredential>] [<CommonParameters>]Get-HotFix [-Description <String[]>] [-ComputerName <String[]>] [-Credential <PSCredential>] [<CommonParameters>]
Get all hotfixes on the local computer
Get-HotFixIdentifyGet hotfixes from multiple computers filtered by a string
Get-HotFix -Description Security* -ComputerName Server01, Server02 -Credential Domain01\admin01IdentifyVerify if an update is installed and write computer names to a file
$A = Get-Content -Path ./Servers.txt
$A | ForEach-Object { if (!(Get-HotFix -Id KB957095 -ComputerName $_))
{ Add-Content $_ -Path ./Missing-KB957095.txt }}IdentifyGet the most recent hotfix on the local computer
(Get-HotFix | Sort-Object -Property InstalledOn)[-1]IdentifyIts page in the reference: Get-HotFix.
Parameters
-ComputerNameSpecifies a remote computer. Type the NetBIOS name, an Internet Protocol (IP) address, or a fully qualified domain name (FQDN) of a remote computer.
When the ComputerName parameter isn't specified, Get-HotFix runs on the local computer.
The ComputerName parameter doesn't rely on Windows PowerShell remoting. If your computer isn't configured to run remote commands, use the ComputerName parameter.-CredentialSpecifies a user account that has permission to access the computer and run commands. The default is the current user
Credentials are stored in a PSCredential object and the password is stored as a SecureString.
NOTE: For more information about SecureString data protection, see How secure is SecureString?.-DescriptionGet-HotFix uses the Description parameter to specify hotfix types. Wildcards are permitted.-IdFilters the Get-HotFix results for specific hotfix Ids. Wildcards aren't accepted.