Add-CMSoftwareUpdateToGroup

Add-CMSoftwareUpdateToGroup

Adds a software update to a software update group in Configuration Manager.

構文

Parameter Set: AddSoftwareUpdateToGroupById_Id
Add-CMSoftwareUpdateToGroup -SoftwareUpdateGroupId <String> -SoftwareUpdateId <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddSoftwareUpdateToGroupById_Name
Add-CMSoftwareUpdateToGroup -SoftwareUpdateGroupName <String> -SoftwareUpdateId <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddSoftwareUpdateToGroupById_Object
Add-CMSoftwareUpdateToGroup -SoftwareUpdateGroup <IResultObject> -SoftwareUpdateId <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddSoftwareUpdateToGroupByName_Id
Add-CMSoftwareUpdateToGroup -SoftwareUpdateGroupId <String> -SoftwareUpdateName <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddSoftwareUpdateToGroupByName_Name
Add-CMSoftwareUpdateToGroup -SoftwareUpdateGroupName <String> -SoftwareUpdateName <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddSoftwareUpdateToGroupByName_Object
Add-CMSoftwareUpdateToGroup -SoftwareUpdateGroup <IResultObject> -SoftwareUpdateName <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddSoftwareUpdateToGroupByObject_Id
Add-CMSoftwareUpdateToGroup -SoftwareUpdate <IResultObject> -SoftwareUpdateGroupId <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddSoftwareUpdateToGroupByObject_Name
Add-CMSoftwareUpdateToGroup -SoftwareUpdate <IResultObject> -SoftwareUpdateGroupName <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: AddSoftwareUpdateToGroupByObject_Object
Add-CMSoftwareUpdateToGroup -SoftwareUpdate <IResultObject> -SoftwareUpdateGroup <IResultObject> [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Add-CMSoftwareUpdateToGroup cmdlet adds a software update to a software update group in Microsoft System Center 2012 Configuration Manager. You can specify a software update by name or by ID or use the Get-CMSoftwareUpdate cmdlet to obtain an update. Likewise, you can specify a software update group by name or by ID or use the Get-CMSoftwareUpdateGroup cmdlet to obtain one.

パラメーター

-SoftwareUpdate<IResultObject>

Specifies a software update object. To obtain a software update object, use the Get-CMSoftwareUpdate cmdlet.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-SoftwareUpdateGroup<IResultObject>

Specifies a software update group object. To obtain a software update group object, use the Get-CMSoftwareUpdateGroup cmdlet.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-SoftwareUpdateGroupId<String>

Specifies an ID of a software group.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-SoftwareUpdateGroupName<String>

Specifies a name of a software group.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-SoftwareUpdateId<String>

Specifies an ID of a software update.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-SoftwareUpdateName<String>

Specifies a name of a software update.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1: Add an update to a software group

This command adds a software update with the ID SMS00078 to the update group named Accounting Group updates.

PS C:\> Add-CMSoftwareUpdateToGroup -SoftwareUpdateGroupName "Accounting Group updates" -SoftwareUpdateId "SMS00078"

Example 2: Add an update to a software group by using IDs

This command adds a software update that has the ID SMS00078 to the update group with the specified ID.

PS C:\> Add-CMSoftwareUpdateToGroup -SoftwareUpdateGroupId "SUP00045" -SoftwareUpdateId "SMS00078"

関連トピック

Get-CMSoftwareUpdate

Get-CMSoftwareUpdateGroup