Publish-CMPrestageContentTaskSequence

Distributes the content that a task sequence uses to a distribution point.

Syntax

Publish-CMPrestageContentTaskSequence
       [-Confirm]
       [-Description <String>]
       [-DisableWildcardHandling]
       -DistributionPointName <String>
       -FolderName <String>
       [-ForceWildcardHandling]
       [-IgnoreApplicationDependency]
       -TaskSequence <IResultObject>
       [-WhatIf]
       [<CommonParameters>]
Publish-CMPrestageContentTaskSequence [-Confirm] [-Description ] [-DisableWildcardHandling]
 -DistributionPointName  -FolderName  [-ForceWildcardHandling] [-IgnoreApplicationDependency]
 -TaskSequenceId  [-WhatIf] []
Publish-CMPrestageContentTaskSequence [-Confirm] [-Description ] [-DisableWildcardHandling]
 -DistributionPointName  -FolderName  [-ForceWildcardHandling] [-IgnoreApplicationDependency]
 -TaskSequenceName  [-WhatIf] []

Description

The Publish-CMPrestageContentTaskSequence cmdlet distributes the content that a task sequence uses to a distribution point. Optionally, you can exclude the application dependencies for applications indicated in the task sequence.

Examples

Example 1: Publish content required by a task sequence

PS C:\>Publish-CMPrestageContentTaskSequence -DistributionPointName "distribution-server.contoso.com" -FolderName "ToBePublished" -TaskSequenceName "ContosoDeploymentSequence"

This command copies content required by the task sequence ContosoDeploymentSequence to the distribution point distribution-server.contoso.com.

Required Parameters

-DistributionPointName

Specifies the name of a distribution point that is associated with the task sequence.

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

Specifies a folder name. The folder that you specify contains prestaged content files.

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

Specifies a task sequence object. To obtain a task sequence object, use the Get-CMTaskSequence cmdlet.

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

Specifies an array of IDs of task sequences.

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

Specifies an array of names of task sequences.

Type:String[]
Aliases:TaskSequenceNames
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 content to prestage.

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
-IgnoreApplicationDependency
Type:SwitchParameter
Aliases:DisableIncludeApplicationDependencies, IgnoreApplicationDependencies
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