Set-CMSoftwareUpdateGroup

Changes configuration settings for software update groups in Configuration Manager.

Syntax

Set-CMSoftwareUpdateGroup
   -Id <Int32>
   [-NewName <String>]
   [-Description <String>]
   [-AddSoftwareUpdate <IResultObject[]>]
   [-RemoveSoftwareUpdate <IResultObject[]>]
   [-ClearSoftwareUpdate]
   [-ClearExpiredSoftwareUpdate]
   [-ClearSupersededSoftwareUpdate]
   [-PassThru]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMSoftwareUpdateGroup
   -InputObject <IResultObject>
   [-NewName <String>]
   [-Description <String>]
   [-AddSoftwareUpdate <IResultObject[]>]
   [-RemoveSoftwareUpdate <IResultObject[]>]
   [-ClearSoftwareUpdate]
   [-ClearExpiredSoftwareUpdate]
   [-ClearSupersededSoftwareUpdate]
   [-PassThru]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMSoftwareUpdateGroup
   -Name <String>
   [-NewName <String>]
   [-Description <String>]
   [-AddSoftwareUpdate <IResultObject[]>]
   [-RemoveSoftwareUpdate <IResultObject[]>]
   [-ClearSoftwareUpdate]
   [-ClearExpiredSoftwareUpdate]
   [-ClearSupersededSoftwareUpdate]
   [-PassThru]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Set-CMSoftwareUpdateGroup cmdlet changes the name or description of one or more Microsoft System Center Configuration Manager software update groups, or it adds or removes software update groups for one or more security scopes.

A software update group is a collection of one or more software updates. You can add software updates to a software update group and then deploy the group to clients. After you deploy a software update group, you can add new software updates to the group and System Center Configuration Manager automatically deploys them.

Examples

Example 1: Add a software update group to a security scope

PS C:\> Set-CMSoftwareUpdateGroup -SecurityScopeAction AddMembership -SecurityScopeName "ScopeNameD02" -Name "SUGroup01"

This command adds a software update group named SUGroup01 as a member of the security scope named ScopeNameD02.

Example 2: Remove a software update group from a security scope

PS C:\> Set-CMSoftwareUpdateGroup -SecurityScopeAction RemoveMembership -SecurityScopeName "ScopeNameD17" -Name "SUGroup01"

This command removes the software update group named SUGroup01 from membership in the security scope named ScopeNameD17.

Required Parameters

-Id

Specifies an array of IDs of software update groups.

Type:Int32
Aliases:CIId, CI_ID
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

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

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

Specifies an array of names of software update groups.

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

Optional Parameters

-AddSoftwareUpdate
Type:IResultObject[]
Aliases:AddSoftwareUpdates
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ClearExpiredSoftwareUpdate
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ClearSoftwareUpdate
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ClearSupersededSoftwareUpdate
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

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

Specifies a description for a software update group.

Type:String
Aliases:LocalizedDescription
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

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

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

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

Specifies a name for a software update group. This name replaces the current name of the group.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PassThru

Returns the current working object. By default, this cmdlet does not generate any output.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveSoftwareUpdate
Type:IResultObject[]
Aliases:RemoveSoftwareUpdates
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
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False