Add-CMSoftwareUpdateToGroup

Adds a software update to a software update group in Configuration Manager.

Syntax

Add-CMSoftwareUpdateToGroup
   [-Confirm]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   -SoftwareUpdate <IResultObject[]>
   -SoftwareUpdateGroupName <String>
   [-WhatIf]
   [<CommonParameters>]
Add-CMSoftwareUpdateToGroup [-Confirm] [-DisableWildcardHandling] [-ForceWildcardHandling]
 -SoftwareUpdate  -SoftwareUpdateGroup  [-WhatIf] []
Add-CMSoftwareUpdateToGroup [-Confirm] [-DisableWildcardHandling] [-ForceWildcardHandling]
 -SoftwareUpdate  -SoftwareUpdateGroupId  [-WhatIf] []
Add-CMSoftwareUpdateToGroup [-Confirm] [-DisableWildcardHandling] [-ForceWildcardHandling]
 -SoftwareUpdateGroup  -SoftwareUpdateId  [-WhatIf] []
Add-CMSoftwareUpdateToGroup [-Confirm] [-DisableWildcardHandling] [-ForceWildcardHandling]
 -SoftwareUpdateGroup  -SoftwareUpdateName  [-WhatIf] []
Add-CMSoftwareUpdateToGroup [-Confirm] [-DisableWildcardHandling] [-ForceWildcardHandling]
 -SoftwareUpdateGroupId  -SoftwareUpdateId  [-WhatIf] []
Add-CMSoftwareUpdateToGroup [-Confirm] [-DisableWildcardHandling] [-ForceWildcardHandling]
 -SoftwareUpdateGroupId  -SoftwareUpdateName  [-WhatIf] []
Add-CMSoftwareUpdateToGroup [-Confirm] [-DisableWildcardHandling] [-ForceWildcardHandling]
 -SoftwareUpdateGroupName  -SoftwareUpdateId  [-WhatIf] []
Add-CMSoftwareUpdateToGroup [-Confirm] [-DisableWildcardHandling] [-ForceWildcardHandling]
 -SoftwareUpdateGroupName  -SoftwareUpdateName  [-WhatIf] []

Description

The Add-CMSoftwareUpdateToGroup cmdlet adds a software update to a software update group in Microsoft System Center Configuration Manager. You can specify a software update by name or by ID or use the Get-CMSoftwareUpdate cmdlet to obtain an update. Likewise, you can specify a software update group by name or by ID or use the Get-CMSoftwareUpdateGroup cmdlet to obtain one.

Examples

Example 1: Add an update to a software group

PS C:\>Add-CMSoftwareUpdateToGroup -SoftwareUpdateGroupName "Accounting Group updates" -SoftwareUpdateId "SMS00078"

This command adds a software update with the ID SMS00078 to the update group named Accounting Group updates.

Example 2: Add an update to a software group by using IDs

PS C:\>Add-CMSoftwareUpdateToGroup -SoftwareUpdateGroupId "SUP00045" -SoftwareUpdateId "SMS00078"

This command adds a software update that has the ID SMS00078 to the update group with the specified ID.

Required Parameters

-SoftwareUpdate

Specifies a software update object. To obtain a software update object, use Get-CMSoftwareUpdate.

Type:IResultObject[]
Aliases:SoftwareUpdates
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-SoftwareUpdateGroup

Specifies a software update group object. 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
-SoftwareUpdateGroupId

Specifies an ID of a software group.

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

Specifies a name of a software group.

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

Specifies an ID of a software update.

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

Specifies a name of a software update.

Type:String[]
Aliases:SoftwareUpdateNames
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
-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