Set-SCUpdate

Set-SCUpdate

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

Syntax

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

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

Detailed Description

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

Parameters

-AcceptLicenseAgreement

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

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ClientID<Guid>

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

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-JobVariable<String>

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

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-PROTipID<Guid]>

Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-RunAsynchronously

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

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Update<SoftwareUpdate>

Specifies a software update object.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-VMMServer<ServerConnection>

Specifies a VMM server object.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Update

Examples

Example 1: Accept the license agreement for an update

The first command gets the update for KB article 948465, and then stores the object in the $Update variable.

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

PS C:\> $Update = Get-SCUpdate -KBArticle "948465"
PS C:\> Set-SCUpdate -Update $Update -AcceptLicenseAgreement

Get-SCUpdate