Circleci Launch Agent Not Starting On Windows Self-Hosted Runner

Hi, I’ve recently tried to setup a Windows 11 machine using the powershell installation script. The script seemed to have run successfully (see output below) but the windows tasks are failing to start circleci launch agent.

I’ve checked the Task Scheduler and can see the tasks were created successfully. However the CircleCI Launch Agent task looks to be triggerd by the log on of the circleci user that was created by the install script. When would that trigger normally be expected to occur?

Note: I ran the uninstall script and reran the install script as a trouble shooting step. The output below is from the most recent run of the install script.

Script output

PS [spoiler]C:\Users\ci\repos[/spoiler]runner-installation-files\windows-install> Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; .\Install-CircleCIRunner.ps1
Installing Chocolatey as a prerequisite
WARNING: ‘choco’ was found at ‘C:\ProgramData\chocolatey\bin\choco.exe’.
WARNING: An existing Chocolatey installation was detected. Installation will not continue. This script will not
overwrite existing installations.
If there is no Chocolatey installation at ‘C:\ProgramData\chocolatey’, delete the folder and attempt the installation
again.

Please use choco upgrade chocolatey to handle upgrades of Chocolatey itself.
If the existing installation is not functional or a prior installation did not complete, follow these steps:

  • Backup the files at the path listed above so you can restore your previous installation if needed.
  • Remove the existing installation manually.
  • Rerun this installation script.
  • Reinstall any packages previously installed, if needed (refer to the lib folder in the backup).

Once installation is completed, the backup folder is no longer needed and can be deleted.

Installing Git, which is required to run CircleCI jobs
Chocolatey v2.3.0
Installing the following packages:
git
By installing, you accept licenses for the packages.
git v2.45.2 already installed. Use --force to reinstall, specify a version to install, or try upgrade. Chocolatey installed 0/1 packages. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). Warnings: - git - git v2.45.2 already installed.
Use --force to reinstall, specify a version to install, or try upgrade.

Installing Gzip, which is required to run CircleCI jobs
Chocolatey v2.3.0
Installing the following packages:
gzip
By installing, you accept licenses for the packages.
gzip v1.3.12 already installed.
Use --force to reinstall, specify a version to install, or try upgrade.

Chocolatey installed 0/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Warnings:

  • gzip - gzip v1.3.12 already installed.
    Use --force to reinstall, specify a version to install, or try upgrade.

Installing CircleCI Launch Agent to C:\Program Files\CircleCI
Determining latest version of CircleCI Launch Agent
Using CircleCI Launch Agent version 1.1.73189-8792751
Downloading and verifying CircleCI Launch Agent Binary
Downloading CircleCI Launch Agent: circleci-launch-agent.exe
Verifying CircleCI Launch Agent download
Generating a random password
Creating a new administrator user to run CircleCI tasks
Saving the password to Credential Manager
Configuring Remote Desktop Client
Updating policy…

Computer Policy update has completed successfully.
User Policy update has completed successfully.

Registering CircleCI Launch Agent tasks to Task Scheduler
Preparing a config template for CircleCI Launch Agent
Opening the config file for CircleCI Launch Agent in Notepad

Please edit the file accordingly and close Notepad

Starting CircleCI Launch Agent