For the complete documentation index, see llms.txt. This page is also available as Markdown.

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"")

Things to Note

Certificates

Certificates are important in this process, the endpoint needs to trust the DeployR server, if you're using a public cert or even an internal CA for DeployR, typically everything will just work without thinking twice, however if you're using the 2PintSoftware self-signed cert, you'll have to add one more step of adding the 2PintSoftware root ca cert into the root certificate store of the endpoint before you try to start the task sequence. You can distribute the certificate via Intune, GPO, PowerShell etc. Note, this would be the same certificate you loaded into WinPE.

Logs

During the process, it will create the bootstrap log in C:\Windows\Temp and once the TS has started, it will create the DeployR logs in C:\_2P\Logs

Pre-reqs

To run a task sequence on an existing machine, it requires .Net and PS7 installed, when you run the commands above, it will try to automatically install those before launching. It will pull those installers from the DeployR server, and not the internet directly. The example below is from an existing machine that did not have the pre-reqs installed, but then loaded installed them automatically.

Console View

Troubleshooting

If it's failing to launch, most of the issues have been around certificates and the endpoint not trusting the DeployR server. There could be other things as well, .NET installation issues, permissions, network connectivity, etc. Here is a script on GitHub that you can run after your failed attempt to just double check some of the basics. https://github.com/2pintsoftware/2Pint-DeployR/blob/main/Troubleshooting/DeployR-ClientOSChecker.ps1

When looking for assistance, please make sure to include the log or screen capture of that running.