Add-CMSoftwareUpdateToGroup

Fügt einer Softwareupdategruppe in Configuration Manager ein Softwareupdate hinzu.

Syntax

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

Beschreibung

Das Cmdlet Add-CMSoftwareUpdateToGroup fügt einer Softwareupdategruppe in Configuration Manager ein Softwareupdate hinzu. Sie können ein Softwareupdate anhand des Namens oder der ID angeben oder das Cmdlet Get-CMSoftwareUpdate verwenden, um ein Update abzurufen. Ebenso können Sie eine Softwareupdategruppe anhand des Namens oder der ID angeben oder das Cmdlet Get-CMSoftwareUpdateGroup verwenden, um eine abzurufen.

Hinweis

Führen Sie Configuration Manager Cmdlets auf dem Configuration Manager-Websitelaufwerk aus, z. PS XYZ:\>B. . Weitere Informationen finden Sie unter Erste Schritte.

Beispiele

Beispiel 1: Hinzufügen eines Updates zu einer Softwaregruppe

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

Dieser Befehl fügt der Updategruppe mit dem Namen Buchhaltungsgruppenupdates ein Softwareupdate mit der ID SMS00078 hinzu.

Beispiel 2: Hinzufügen eines Updates zu einer Softwaregruppe mithilfe von IDs

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

Dieser Befehl fügt der Updategruppe mit der angegebenen ID ein Softwareupdate mit der ID SMS00078 hinzu.

Parameter

-Confirm

Fordert Sie vor dem Ausführen des Cmdlets zur Bestätigung auf.

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

-DisableWildcardHandling

Dieser Parameter behandelt Wildcardzeichen als Literalzeichenwerte. Sie können es nicht mit ForceWildcardHandling kombinieren.

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

-ForceWildcardHandling

Dieser Parameter verarbeitet Wildcardzeichen und kann zu unerwartetem Verhalten führen (nicht empfohlen). Sie können es nicht mit DisableWildcardHandling kombinieren.

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

-SoftwareUpdate

Gibt ein Softwareupdateobjekt an. Verwenden Sie Get-CMSoftwareUpdate, um ein Softwareupdateobjekt abzurufen.

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

-SoftwareUpdateGroup

Gibt ein Softwareupdategruppenobjekt an. Verwenden Sie Get-CMSoftwareUpdateGroup, um ein Softwareupdategruppenobjekt abzurufen.

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

-SoftwareUpdateGroupId

Gibt eine ID einer Softwaregruppe an.

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

-SoftwareUpdateGroupName

Gibt einen Namen einer Softwaregruppe an.

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

-SoftwareUpdateId

Gibt eine ID eines Softwareupdates an.

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

-SoftwareUpdateName

Gibt einen Namen eines Softwareupdates an.

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

-WhatIf

Zeigt, was passieren würde, wenn das Cmdlet ausgeführt wird. Das Cmdlet wird nicht ausgeführt.

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

Eingaben

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject[]

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject

Ausgaben

System.Object