Publish-CMPrestageContentTaskSequence

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

Syntax

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

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
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
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
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
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
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 content to prestage.

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