Set-CMSoftwareUpdateDeploymentPackage

Modifies a software update deployment package.

Syntax

Set-CMSoftwareUpdateDeploymentPackage
   -Id <String>
   [-NewName <String>]
   [-Description <String>]
   [-Path <String>]
   [-Priority <Priorities>]
   [-RemoveExpired]
   [-RemoveSuperseded]
   [-RefreshDistributionPoint]
   [-PassThru]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMSoftwareUpdateDeploymentPackage
   -InputObject <IResultObject>
   [-NewName <String>]
   [-Description <String>]
   [-Path <String>]
   [-Priority <Priorities>]
   [-RemoveExpired]
   [-RemoveSuperseded]
   [-RefreshDistributionPoint]
   [-PassThru]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMSoftwareUpdateDeploymentPackage
   -Name <String>
   [-NewName <String>]
   [-Description <String>]
   [-Path <String>]
   [-Priority <Priorities>]
   [-RemoveExpired]
   [-RemoveSuperseded]
   [-RefreshDistributionPoint]
   [-PassThru]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Set-CMSoftwareUpdateDeploymentPackage cmdlet modifies a software update deployment package. A software update deployment package contains one or more software updates for deployment to a collection of computers.

Examples

Example 1: Update the name and description of a software update deployment package

PS C:\> Set-CMSoftwareUpdateDeploymentPackage -Id "ST10000C" -Description "Deployment pack 107" -NewName "SDPTest"

This command sets a new name and description for the deployment package that has the ID ST10000C.

Example 2: Add membership to a security scope of a software update deployment package

PS C:\> Set-CMSoftwareUpdateDeploymentPackage -Name "DP107" -SecurityScopeAction AddMembership -SecurityScopeName "testScopeName"

This command adds membership for the security scope named testScopeName.

Example 3: Remove membership from a security scope of a software update deployment package

PS C:\> Set-CMSoftwareUpdateDeploymentPackage -Name "DP107" -SecurityScopeAction RemoveMembership -SecurityScopeName "testScopeName"

This command removes membership for the security scope named testScopeName.

Required Parameters

-Id

Specifies an array of identifiers for the deployment package.

Type:String
Aliases:PackageId
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specifies a CMSoftwareUpdateDeploymentPackage object. To obtain an CMSoftwareUpdateDeploymentPackage object, use the Get-CMSoftwareUpdateDeploymentPackage cmdlet.

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

Specifies a name for the deployment package.

Type:String
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
-Description

Specifies a description for the deployment package.

Type:String
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
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
-NewName

Specifies a new name for the deployment package.

Type:String
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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Path

Specifies a package source (URL) for the deployment package.

Type:String
Aliases:PackageSourcePath, PkgSourcePath
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Priority

Specifies a distribution priority for the deployment package.

Type:Priorities
Parameter Sets:High, Normal, Low
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RefreshDistributionPoint
Type:SwitchParameter
Aliases:RefreshDistributionPointAfterRemoveSoftwareUpdateFromPackage
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveExpired
Type:SwitchParameter
Aliases:RemoveDownloadedExpiredSoftwareUpdateFromPackage
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveSuperseded
Type:SwitchParameter
Aliases:RemoveDownloadedSupersededSoftwareUpdateFromPackage
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