Skip to main content

Test-MSUpdates

SYNOPSISโ€‹

Test whether a Microsoft Windows update is installed.

SYNTAXโ€‹

Test-MSUpdates [-KBNumber] <String> [[-ContinueOnError] <Boolean>] [<CommonParameters>]

DESCRIPTIONโ€‹

Test whether a Microsoft Windows update is installed.

EXAMPLESโ€‹

EXAMPLE 1โ€‹

Test-MSUpdates -KBNumber 'KB2549864'

PARAMETERSโ€‹

-KBNumberโ€‹

KBNumber of the update.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ContinueOnErrorโ€‹

Suppress writing log message to console on failure to write message to log file. Default is: $true.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: True
Accept pipeline input: False
Accept wildcard characters: False

CommonParametersโ€‹

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTSโ€‹

Noneโ€‹

You cannot pipe objects to this function.โ€‹

OUTPUTSโ€‹

System.Booleanโ€‹

Returns $true if the update is installed, otherwise returns $false.โ€‹

NOTESโ€‹

https://psappdeploytoolkit.com