Start-CMTaskSequenceDeployment

Starts a task sequence deployment in Configuration Manager.

Syntax

Start-CMTaskSequenceDeployment
     [-InputObject] <IResultObject>
     [-CollectionName <String>]
     [-CollectionId <String>]
     [-Collection <IResultObject>]
     [-Comment <String>]
     [-DeployPurpose <DeployPurposeType>]
     [-SendWakeupPacket <Boolean>]
     [-UseMeteredNetwork <Boolean>]
     [-Availability <MakeAvailableToType>]
     [-DeploymentAvailableDay <DateTime>]
     [-DeploymentAvailableTime <DateTime>]
     [-DeploymentAvailableDateTime <DateTime>]
     [-UseUtcForAvailableSchedule <Boolean>]
     [-DeploymentExpireDay <DateTime>]
     [-DeploymentExpireTime <DateTime>]
     [-DeploymentExpireDateTime <DateTime>]
     [-UseUtcForExpireSchedule <Boolean>]
     [-ScheduleEvent <ScheduleEventType[]>]
     [-Schedule <IResultObject[]>]
     [-RerunBehavior <RerunBehaviorType>]
     [-RunFromSoftwareCenter <Boolean>]
     [-ShowTaskSequenceProgress <Boolean>]
     [-SoftwareInstallation <Boolean>]
     [-SystemRestart <Boolean>]
     [-PersistOnWriteFilterDevice <Boolean>]
     [-InternetOption <Boolean>]
     [-PercentSuccess <Int32>]
     [-AlertDay <DateTime>]
     [-AlertTime <DateTime>]
     [-AlertDateTime <DateTime>]
     [-PercentFailure <Int32>]
     [-DeploymentOption <DeploymentOptionType>]
     [-AllowSharedContent <Boolean>]
     [-AllowFallback <Boolean>]
     [-PassThru]
     [-DisableWildcardHandling]
     [-ForceWildcardHandling]
     [-WhatIf]
     [-Confirm]
     [<CommonParameters>]
Start-CMTaskSequenceDeployment
     [-TaskSequencePackageId] <String>
     [-CollectionName <String>]
     [-CollectionId <String>]
     [-Collection <IResultObject>]
     [-Comment <String>]
     [-DeployPurpose <DeployPurposeType>]
     [-SendWakeupPacket <Boolean>]
     [-UseMeteredNetwork <Boolean>]
     [-Availability <MakeAvailableToType>]
     [-DeploymentAvailableDay <DateTime>]
     [-DeploymentAvailableTime <DateTime>]
     [-DeploymentAvailableDateTime <DateTime>]
     [-UseUtcForAvailableSchedule <Boolean>]
     [-DeploymentExpireDay <DateTime>]
     [-DeploymentExpireTime <DateTime>]
     [-DeploymentExpireDateTime <DateTime>]
     [-UseUtcForExpireSchedule <Boolean>]
     [-ScheduleEvent <ScheduleEventType[]>]
     [-Schedule <IResultObject[]>]
     [-RerunBehavior <RerunBehaviorType>]
     [-RunFromSoftwareCenter <Boolean>]
     [-ShowTaskSequenceProgress <Boolean>]
     [-SoftwareInstallation <Boolean>]
     [-SystemRestart <Boolean>]
     [-PersistOnWriteFilterDevice <Boolean>]
     [-InternetOption <Boolean>]
     [-PercentSuccess <Int32>]
     [-AlertDay <DateTime>]
     [-AlertTime <DateTime>]
     [-AlertDateTime <DateTime>]
     [-PercentFailure <Int32>]
     [-DeploymentOption <DeploymentOptionType>]
     [-AllowSharedContent <Boolean>]
     [-AllowFallback <Boolean>]
     [-PassThru]
     [-DisableWildcardHandling]
     [-ForceWildcardHandling]
     [-WhatIf]
     [-Confirm]
     [<CommonParameters>]

Description

The Start-CMTaskSequenceDeployment cmdlet starts a task sequence deployment. A task sequence deployment assigns a task sequence to a collection of computers.

Examples

Example 1: Start a task sequence deployment

PS C:\> Start-CMTaskSequenceDeployment -Name "Task Sequence 1333" -CollectionName "Collection 01"

This command starts a task sequence deployment by using the name of the task sequence deployment and the name of a collection.

Example 2: Start a task sequence deployment for devices

PS C:\> Start-CMTaskSequenceDeployment -Name "Task Sequence 1333" -CollectionName "Collection 02" -Comment "Task sequence test" -DeployPurpose Required -SendWakeUpPacket $True -UseMeteredNetwork $True -ScheduleEvent AsSoonAsPossible -RerunBehavior NeverRerunDeployedProgram -AllowUsersRunIndependently $True -ShowTaskSequenceProgress $False -SoftwareInstallation $True -SystemRestart $True -PersistOnWriteFilterDevice $False -AllowFallback $True -CreatAlertBaseOnPercentSuccess $True -CreatAlertBaseOnPercentFailure $True -DeploymentOption DownloadAllContentLocallyBeforeStartingTaskSequence -AllowSharedContent $True -InternetOption $True

This command starts a task sequence deployment for mobile devices. The command does not allow the use of the PersistOnWriteFilterDevice parameter.

Required Parameters

-InputObject

Specifies a task sequence deployment object.

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

Specifies an array of IDs for a task sequence package.

Type:String
Aliases:PackageId
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-AlertDateTime

Specifies a day and time to notify clients of a new deployment.

Type:DateTime
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AlertDay

This parameter is deprecated. Use AlertDateTime.

Type:DateTime
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AlertTime

This parameter is deprecated. Use AlertDateTime.

Type:DateTime
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AllowFallback

Indicates whether to allow a fallback status point for clients.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AllowSharedContent

Indicates whether to allow shared content, such as a shared network folder.

Type:Boolean
Aliases:AllowUseRemoteDistributionPoint
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Availability

Specifies the collections that receive this deployment. Valid values for this parameter are:

  • Clients
  • ClientsMediaAndPxe
  • MediaAndPxe
  • MediaAndPxeHidden

If you specify Clients for the for this parameter, the default value for the DeploymentOption parameter is DownloadAllContentLocallyBeforeStartingTaskSequence. If you specify ClientsMediaAndPxe, MediaAndPxe, or MediaAndPxeHidden for this parameter, the default value for the DeploymentOption parameter is DownloadContentLocallyWhenNeededByRunningTaskSequence.

Type:MakeAvailableToType
Aliases:MakeAvailableTo
Parameter Sets:Clients, ClientsMediaAndPxe, MediaAndPxe, MediaAndPxeHidden
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Collection

Specifies a collection object. To obtain a collection object, use the Get-CMCollection cmdlet.

Type:IResultObject
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CollectionId

Specifies the ID of a collection designated to receive a task sequence deployment.

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

Specifies a name of a collection designated to receive a task sequence deployment. A collection is a group of client computers.

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

Specifies a comment for the task sequence deployment.

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

Specifies a task sequence as either required or available. A required task sequence installation is mandatory. The acceptable values for this parameter are:

  • Available
  • Required
Type:DeployPurposeType
Parameter Sets:Available, Required
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DeploymentAvailableDateTime

Specifies a date and time when a deployment becomes available to clients. By default, the deployment becomes available immediately.

Type:DateTime
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DeploymentAvailableDay

This parameter is deprecated. Use DeploymentAvailableDateTime.

Type:DateTime
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DeploymentAvailableTime

This parameter is deprecated. Use DeploymentAvailableDateTime.

Type:DateTime
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DeploymentExpireDateTime

Specifies a date and time when a deployment expires. By default, a deployment never expires.

Type:DateTime
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DeploymentExpireDay

This parameter is deprecated. Use DeploymentExpireDateTime.

Type:DateTime
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DeploymentExpireTime

This parameter is deprecated. Use DeploymentExpireDateTime.

Type:DateTime
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DeploymentOption

Specifies if clients download all content before starting the task sequence, or download content as needed by the running task sequence. By default, clients download content as needed. The acceptable values for this parameter are:

  • DownloadAllContentLocallyBeforeStartingTaskSequence
  • DownloadContentLocallyWhenNeededByRunningTaskSequence
  • RunFromDistributionPoint

If you specify Clients for the Availability parameter, the default value for this parameter is DownloadAllContentLocallyBeforeStartingTaskSequence. If you specify ClientsMediaAndPxe, MediaAndPxe, or MediaAndPxeHidden for the Availability parameter, the default value for this parameter is DownloadContentLocallyWhenNeededByRunningTaskSequence.

Type:DeploymentOptionType
Parameter Sets:DownloadContentLocallyWhenNeededByRunningTaskSequence, DownloadAllContentLocallyBeforeStartingTaskSequence, RunFromDistributionPoint
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
-InternetOption

Indicates whether the task sequence runs on clients connecting over the Internet.

Type:Boolean
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
-PercentFailure

Specifies a percentage for failed task sequence deployment.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PercentSuccess

Specifies a percentage for successful task sequence deployment.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PersistOnWriteFilterDevice

Indicates whether to install a task sequence on the temporary overlay and commit changes later, or commit the changes at an installation deadline or a maintenance window.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RerunBehavior

Specifies that a task sequence will be rerun on a computer if it has previously been run before the scheduled mandatory time. By default, the task sequence is always rerun. The acceptable values for this parameter are:

  • AlwaysRerunProgram
  • NeverRerunDeployedProgram
  • RerunIfFailedPreviousAttempt
  • RerunIfSucceededOnPreviousAttempt
Type:RerunBehaviorType
Parameter Sets:NeverRerunDeployedProgram, AlwaysRerunProgram, RerunIfFailedPreviousAttempt, RerunIfSucceededOnPreviousAttempt
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunFromSoftwareCenter

Indicates whether to allow users to independently run the program, regardless of its assignment status.

Type:Boolean
Aliases:AllowUsersRunIndependently
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Schedule

Specifies an array of schedule objects.

Type:IResultObject[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ScheduleEvent

Specifies an array of events that determine when the task sequence deployment runs. The acceptable values for this parameter are:

  • AsSoonAsPossible
  • LogOff
  • LogOn
Type:ScheduleEventType[]
Parameter Sets:AsSoonAsPossible, LogOn, LogOff
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SendWakeupPacket

Indicates whether to send a wake up packet to computers before the deployment begins. If this value is $True, Configuration Manager wakes a computer from sleep. If this value is $False, it does not wake computers from sleep. For computers to wake, you must first configure Wake On LAN. The Purpose parameter must be set to Required.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ShowTaskSequenceProgress

Indicates whether to show a process dialog for a task sequence.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SoftwareInstallation

Indicates whether to allow the application to install, even if the installation occurs outside of a maintenance window.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SystemRestart

Indicates whether to allow an advertised program to restart the system, even if the restart occurs outside of a maintenance window.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UseMeteredNetwork

Indicates whether to allow clients to connect to a metered network to download a program.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UseUtcForAvailableSchedule

Indicates whether client computers use UTC time to determine the availability of a program. UTC time makes the task sequence available at the same time for all computers.

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UseUtcForExpireSchedule

Indicates whether client computers use UTC time to determine the expiration of a program. UTC time makes the task sequence available at the same time for all computers.

Type:Boolean
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