Save-CMSoftwareUpdate

Saves software updates to update groups and packages.

Syntax

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

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
Required:True
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
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 the Get-CMSoftwareUpdateGroup cmdlet.

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

Specifies an array of IDs of software updates.

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

Specifies a location to save a software update.

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

Specifies an array of software update languages.

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