Set-SCUpdate

Accepts Microsoft Software License Terms for software updates that require acceptance.

Description

The Set-Update cmdlet is used to accept Microsoft Software License Terms for updates that require acceptance.

For more information about Select-Update, type: "Get-Help Set-Update -oline".

Parameters

AcceptLicenseAgreement

Required? true
Accept Pipeline Input? false
Position? named
Prompts the user to accept or decline a license agreement for a software update.

ClientID

Required? true
Accept Pipeline Input? false
Position? named
For internal use only (not for use in your code).

JobVariable

Required? false
Accept Pipeline Input? false
Position? named
Specifies that job progress is tracked and stored in the variable named by this parameter. 

PROTipID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

RunAsynchronously

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the job runs asynchronously so that control returns to the command shell immediately. 

Update

Required? false
Accept Pipeline Input? false
Position? named
Specifies a software update object.

VMMServer

Required? false
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM server object.

Examples

1: Accept the license agreement for an update.
PS C:\> $Update = Get-SCUpdate -KBArticle "948465"
PS C:\> Set-SCUpdate -Update $Update -AcceptLicenseAgreement
The first command gets the update for KB article 948465 and stores the object in the $Update variable.

The second command displays the license agreement text for the update stored in $Update and prompts you to accept or decline it.

See Also