Compartilhar via


Set-SCUpdate

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

Syntax

Default (Default)

Set-SCUpdate
    [-Update] <SoftwareUpdate>
    [-VMMServer <ServerConnection>]
    [-AcceptLicenseAgreement]
    [-RunAsynchronously]
    [-PROTipID <Guid>]
    [-JobVariable <String>]
    [<CommonParameters>]

UIOnlyEULAAcceptance

Set-SCUpdate
    [-Update] <SoftwareUpdate>
    -ClientID <Guid>
    [-VMMServer <ServerConnection>]
    [-AcceptLicenseAgreement]
    [-RunAsynchronously]
    [-PROTipID <Guid>]
    [-JobVariable <String>]
    [<CommonParameters>]

Description

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

Examples

Example 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 whether to accept or decline it.

Parameters

-AcceptLicenseAgreement

Indicates that the Microsoft Software License Terms for a software update are accepted.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ClientID

For internal use only (not for use in your code).

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UIOnlyEULAAcceptance
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-JobVariable

Specifies that job progress is tracked and stored in the variable named by this parameter.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Update

Specifies a software update object.

Parameter properties

Type:SoftwareUpdate
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-VMMServer

Specifies a VMM server object.

Parameter properties

Type:ServerConnection
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

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

Outputs

Update

This cmdlet returns an Update object.