Starting a task sequence in an existing OS

Task sequences can also be started in an existing OS. This can be useful in cases where there is a need to perform any series of steps: installation of apps, applying configuration, etc. To initiate a task sequence in an existing OS, it is necessary to bootstrap the process using PowerShell. The process:

  • Start an elevated PowerShell.exe session.

  • Execute the following commands:

$DeployRHost = "https://your-server-name.com:7281"
iex (irm "$DeployRHost/Content/Boot/DeployR.ps1")
  • When the DeployR client starts, choose the task sequence you want to execute.

To completely automate the process, additional information can be specified by setting a variable with the list of task sequence variables that should be defined. For example, to avoid the prompt to choose a task sequence, specify a "TSID" value that specifies which task sequence to execute:

$DeployRHost = "https://contoso-mgmt.contosomn.com:7281"
$DeployRBootstrap = @{ TSID = "00000002-0000-0000-0000-000000000001" }
iex (irm "$DeployRHost/Content/Boot/DeployR.ps1")

Last updated