Publish-CMPrestageContentTaskSequence

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

Syntax

Publish-CMPrestageContentTaskSequence
       [-Description <String>]
       -DistributionPointName <String>
       -FolderName <String>
       [-IgnoreApplicationDependency]
       -TaskSequence <IResultObject>
       [-DisableWildcardHandling]
       [-ForceWildcardHandling]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]
Publish-CMPrestageContentTaskSequence
       [-Description <String>]
       -DistributionPointName <String>
       -FolderName <String>
       [-IgnoreApplicationDependency]
       -TaskSequenceId <String[]>
       [-DisableWildcardHandling]
       [-ForceWildcardHandling]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]
Publish-CMPrestageContentTaskSequence
       [-Description <String>]
       -DistributionPointName <String>
       -FolderName <String>
       [-IgnoreApplicationDependency]
       -TaskSequenceName <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.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Examples

Example 1: Publish content required by a task sequence

PS XYZ:\>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.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required: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
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DisableWildcardHandling

This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DistributionPointName

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

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

-ForceWildcardHandling

This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-IgnoreApplicationDependency

Type:SwitchParameter
Aliases:DisableIncludeApplicationDependencies, IgnoreApplicationDependencies
Position:Named
Default value:None
Required:False
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
Required:True
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
Required:True
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
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet doesn't run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

System.Object