Save-CMSoftwareUpdate

Saves software updates to update groups and packages.

Syntax

Save-CMSoftwareUpdate
    -SoftwareUpdate <IResultObject>
    [-Location <String>]
    -DeploymentPackageName <String>
    [-SoftwareUpdateLanguage <String[]>]
    [-DisableWildcardHandling]
    [-ForceWildcardHandling]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]
Save-CMSoftwareUpdate
    -SoftwareUpdateGroup <IResultObject>
    [-Location <String>]
    -DeploymentPackageName <String>
    [-SoftwareUpdateLanguage <String[]>]
    [-DisableWildcardHandling]
    [-ForceWildcardHandling]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]
Save-CMSoftwareUpdate
    -SoftwareUpdateGroupId <String[]>
    [-Location <String>]
    -DeploymentPackageName <String>
    [-SoftwareUpdateLanguage <String[]>]
    [-DisableWildcardHandling]
    [-ForceWildcardHandling]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]
Save-CMSoftwareUpdate
    -SoftwareUpdateGroupName <String[]>
    [-Location <String>]
    -DeploymentPackageName <String>
    [-SoftwareUpdateLanguage <String[]>]
    [-DisableWildcardHandling]
    [-ForceWildcardHandling]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]
Save-CMSoftwareUpdate
    -SoftwareUpdateId <String[]>
    [-Location <String>]
    -DeploymentPackageName <String>
    [-SoftwareUpdateLanguage <String[]>]
    [-DisableWildcardHandling]
    [-ForceWildcardHandling]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]
Save-CMSoftwareUpdate
    -SoftwareUpdateName <String[]>
    [-Location <String>]
    -DeploymentPackageName <String>
    [-SoftwareUpdateLanguage <String[]>]
    [-DisableWildcardHandling]
    [-ForceWildcardHandling]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Save-CMSoftwareUpdate cmdlet saves one or more software updates to update groups and packages.

You can specify one or more software updates associated with deployment packages. You can also specify the location to save the updates and the language of the software updates. Languages determine which summary details a software update synchronizes and the file languages to be downloaded for software updates.

Examples

Example 1: Save a software update and add a language to it

PS C:\> Save-CMSoftwareUpdate -SoftwareUpdateName "Cumulative Update for Windows 10 (KB3095020)" -DeploymentPackageName "Package01" -SoftwareUpdateLanguage "English"

This command saves the software update named Cumulative Update for Windows 10 (KB3095020) for the deployment package named Package01 adding English to its array of languages.

Example 2: Save a software update from a software update group

PS C:\> Get-CMSoftwareUpdateGroup -Name "TestSUgroup10" | Save-CMSoftwareUpdate -DeploymentPackageName "Package01"

This command gets the software update group object named TestSUgroup10 and uses the pipeline operator to pass the object to Save-CMSoftwareUpdate, which saves the software update with the package name Package01.

Required Parameters

-DeploymentPackageName

Specifies a name of a deployment package.

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

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

Type:IResultObject
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 the Get-CMSoftwareUpdateGroup cmdlet.

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

Specifies an array of IDs of software update groups.

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

Specifies an array of names of software update groups.

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

Specifies an array of IDs of software updates.

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

Specifies an array of software update names.

Type:String[]
Aliases:LocalizedDisplayName
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
Position:Named
Default value:False
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
-Location

Specifies a location to save a software update.

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

Specifies an array of software update languages.

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