CmdID

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

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

What it does

from the PowerShell reference, CC BY 4.0

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-HotFixIdentify

Get hotfixes from multiple computers filtered by a string

Get-HotFix -Description Security* -ComputerName Server01, Server02 -Credential Domain01\admin01Identify

Verify 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 }}Identify

Get the most recent hotfix on the local computer

(Get-HotFix | Sort-Object -Property InstalledOn)[-1]Identify

Its page in the reference: Get-HotFix.

Parameters

4 in the PowerShell reference
-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.