Set-CMSoftwareUpdateGroup

SYNOPSIS

Changes configuration settings for software update groups in Configuration Manager.

SYNTAX

SetById (Default)

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

SetByName

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

SetByValueMandatory

Set-CMSoftwareUpdateGroup -InputObject <IResultObject> [-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.

PARAMETERS

-AddSoftwareUpdate

Type: IResultObject[]
Parameter Sets: (All)
Aliases: AddSoftwareUpdates

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ClearExpiredSoftwareUpdate

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ClearSoftwareUpdate

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ClearSupersededSoftwareUpdate

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

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
Parameter Sets: (All)
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
Parameter Sets: (All)
Aliases: LocalizedDescription

Required: False
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
Parameter Sets: (All)
Aliases: 

Required: False
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
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Id

Specifies an array of IDs of software update groups.

Type: Int32
Parameter Sets: SetById
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
Parameter Sets: SetByValueMandatory
Aliases: 

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
Parameter Sets: SetByName
Aliases: LocalizedDisplayName

Required: True
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
Parameter Sets: (All)
Aliases: 

Required: False
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
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RemoveSoftwareUpdate

Type: IResultObject[]
Parameter Sets: (All)
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
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

OUTPUTS

NOTES

Get-CMSoftwareUpdateGroup

New-CMSoftwareUpdateGroup

Remove-CMSoftwareUpdateGroup