Set-CMSoftwareUpdateGroup

Changes configuration settings for software update groups in Configuration Manager.

Syntax

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

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
Required:True
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
Required:True
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
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-AddSoftwareUpdate
Type:IResultObject[]
Aliases:AddSoftwareUpdates
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ClearExpiredSoftwareUpdate
Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ClearSoftwareUpdate
Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ClearSupersededSoftwareUpdate
Type:SwitchParameter
Required:False
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
Required:False
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
Required:False
Position:Named
Default value:None
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
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
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
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PassThru

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

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