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:

iex (irm "https://your-server-name.com:7281/v1/Service/Bootstrap")
  • When the DeployR client starts, choose the task sequence you want to execute.

To completely automate the process, the task sequence ID can also be specified:

iex (irm "https://your-server-name.com:7281/v1/Service/Bootstrap?tsid=00000002-0000-0000-0000-000000000001:1")

Additional information can be specified by setting a variable with the list of task sequence variables that should be defined. For example:

$DeployRBootstrap = @{ MyRole = "Accounting" }
iex (irm "https://your-server-name.com:7281/v1/Service/Bootstrap?tsid=00000002-0000-0000-0000-000000000001:1"")

Last updated