Skip to main content

Install-SCCMSoftwareUpdates

SYNOPSISโ€‹

Scans for outstanding SCCM updates to be installed and installs the pending updates.

SYNTAXโ€‹

Install-SCCMSoftwareUpdates [[-SoftwareUpdatesScanWaitInSeconds] <Int32>]
[[-WaitForPendingUpdatesTimeout] <TimeSpan>] [[-ContinueOnError] <Boolean>] [<CommonParameters>]

DESCRIPTIONโ€‹

Scans for outstanding SCCM updates to be installed and installs the pending updates.

Only compatible with SCCM 2012 Client or higher. This function can take several minutes to run.

EXAMPLESโ€‹

EXAMPLE 1โ€‹

Install-SCCMSoftwareUpdates

PARAMETERSโ€‹

-SoftwareUpdatesScanWaitInSecondsโ€‹

The amount of time to wait in seconds for the software updates scan to complete. Default is: 180 seconds.

Type: Int32
Parameter Sets: (All)
Aliases:

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

-WaitForPendingUpdatesTimeoutโ€‹

The amount of time to wait for missing and pending updates to install before exiting the function. Default is: 45 minutes.

Type: TimeSpan
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: $(New-TimeSpan -Minutes 45)
Accept pipeline input: False
Accept wildcard characters: False

-ContinueOnErrorโ€‹

Continue if an error is encountered. Default is: $true.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
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โ€‹

Noneโ€‹

This function does not return any objects.โ€‹

NOTESโ€‹

https://psappdeploytoolkit.com