Remove-CMSoftwareUpdateGroup

Removes Configuration Manager software update groups.

Syntax

Remove-CMSoftwareUpdateGroup
      [-Confirm]
      [-DisableWildcardHandling]
      [-Force]
      [-ForceWildcardHandling]
      -Id <String[]>
      [-WhatIf]
      [<CommonParameters>]
Remove-CMSoftwareUpdateGroup [-Confirm] [-DisableWildcardHandling] [-Force] [-ForceWildcardHandling]
 -InputObject  [-WhatIf] []
Remove-CMSoftwareUpdateGroup [-Confirm] [-DisableWildcardHandling] [-Force] [-ForceWildcardHandling]
 -Name  [-WhatIf] []

Description

The Remove-CMSoftwareUpdateGroup cmdlet removes software update groups from Microsoft System Center Configuration Manager. You can specify each software update group that you are removing by using the group IDs or names. If 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.

Examples

Example 1: Remove a software update group by using an ID

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

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

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

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

This command removes the software update group named SUGroupD01.

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

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

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

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

Required Parameters

-Id

Specifies an array of software update group IDs.

Type:String[]
Aliases:CIId
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

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

Type:IResultObject
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

Specifies an array of software update group names.

Type:String
Aliases:LocalizedDisplayName
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False