Set-CMSoftwareUpdateDeploymentPackage

Modifies a software update deployment package.

Syntax

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

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
Required:True
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
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

Specifies a name for the deployment package.

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

Specifies a description for the deployment package.

Type:String
Required:False
Position:Named
Default value:None
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
-NewName

Specifies a new name for the deployment package.

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

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

Type:SwitchParameter
Required:False
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
Required:False
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
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RefreshDistributionPoint
Type:SwitchParameter
Aliases:RefreshDistributionPointAfterRemoveSoftwareUpdateFromPackage
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveExpired
Type:SwitchParameter
Aliases:RemoveDownloadedExpiredSoftwareUpdateFromPackage
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveSuperseded
Type:SwitchParameter
Aliases:RemoveDownloadedSupersededSoftwareUpdateFromPackage
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