Remove-CMSoftwareUpdateGroup

Remove-CMSoftwareUpdateGroup

Removes Configuration Manager software update groups.

構文

Parameter Set: SearchByIdMandatory
Remove-CMSoftwareUpdateGroup -Id <String[]> [-Force] [-SecuredScopeNames <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByNameMandatory
Remove-CMSoftwareUpdateGroup -Name <String[]> [-Force] [-SecuredScopeNames <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory
Remove-CMSoftwareUpdateGroup -InputObject <IResultObject> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Remove-CMSoftwareUpdateGroup cmdlet removes software update groups from Microsoft System Center 2012 Configuration Manager. You can specify each software update group that you are removing by using the group IDs or names. Or, when you remove a software update group, you can use the Get-CMSoftwareUpdateGroup cmdlet to return a software update group object and use that object to specify the group that you want to remove.

パラメーター

-Force

Performs the action without a confirmation message.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-Id<String[]>

Specifies an array of software update group IDs.

エイリアス

CIId

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-InputObject<IResultObject>

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

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-Name<String[]>

Specifies an array of software update group names.

エイリアス

LocalizedDisplayName

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-SecuredScopeNames<String>

Specifies a security scope name. This name identifies the security scope from which you remove the software update groups. A security scope name can be either Default or the name of a custom security scope.

エイリアス

なし

必須?

false

位置は?

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: Remove a software update group by using an ID

This command removes the software update group that has the ID ST10000B.

PS C:\> Remove-CMSoftwareUpdateGroup -Id "ST10000B"

Example 2: Remove a software update group by using a name

This command removes the software update group named SUGroupD01.

PS C:\> Remove-CMSoftwareUpdateGroup -Name "SUGroupD01" 

Example 3: Remove a software update group by using an object variable

The first command gets the software update group that has the ID ST10000B and stores it in the variable $SubObj.

The second command removes the software update group by using the $SubObj variable.

PS C:\> $SubObj=Get-CMSoftwareUpdateGroup -Id "ST10000B" 
PS C:\> Remove-CMSoftwareUpdateGroup -SoftwareUpdateGroup $SubObj

関連トピック

Get-CMSoftwareUpdateGroup

New-CMSoftwareUpdateGroup

Set-CMSoftwareUpdateGroup