Deploy the Agent on Windows

Install the octoja Agent on a Windows computer or server

Written By Erdinc Akay

Last updated 26 days ago

This guide shows you how to install and register the octoja Agent on a Windows system.

Requirements

  • An octoja account with the Agent Management permission β€” without it, Administration β†’ Agent Deployment does not appear in your navigation
  • Windows 10 / Windows Server 2016 or newer. Older versions down to Windows Server 2012 R2 also work, but first install the Microsoft Visual C++ Redistributable (x64) and .NET Framework 4.7.2 or later β€” both are available from Microsoft
  • Administrator account on the device
  • Internet access (outbound HTTPS on port 443)

Steps

  1. In octoja, go to Administration β†’ Agent Deployment.
  2. In Step 1 – Settings, review the deployment mode (open deployment or token-based).
  3. In Step 2 – Choose Platform, click Windows.
  4. In Step 3 – Choose Installation Method, pick the method you want:
    • Quick Install β€” a single PowerShell command that auto-detects architecture and installs silently. Best for one device at a time.
    • Manual Install β€” download the ZIP archive, extract the MSI, and install it yourself with a wizard or silent flag.
    • Automatic Rollout β€” generate the Intune or Group Policy (GPO) command for deploying to many devices at once.
  5. Copy the command or download the installer from the on-screen panel. Keep the panel open β€” the command contains your unique server URL.
  6. Run the command on the Windows device (see below).
  7. Back in octoja, go to Devices. The device should appear within 1–2 minutes.
Step 3 of the Agent Deployment wizard showing the three Windows installation-method cards each marked with a red numbered badge (1, 2, 3): Quick Install (single command, auto-detects architecture), Manual Install (download installer, step-by-step setup), and Automatic Rollout (Intune or GPO, for large-scale rollouts).

Copy the PowerShell command from the deployment page and paste it into an elevated PowerShell on the target device.

The full Agent Deployment page in open-deployment mode with Windows and Quick Install selected. Step 4 (Install) shows the PowerShell command to run in an Administrator terminal; Step 5 (Verification) confirms the agent will appear on the Devices page.

The PowerShell command will look similar to this:

& ([scriptblock]::Create((irm https://cdn.octoja.com/installer/install.ps1))) -OctojaUrl 'https://YOUR-OCTOJA-URL'

If token-based deployment is enabled, the command includes a -Token argument β€” copy it verbatim:

& ([scriptblock]::Create((irm https://cdn.octoja.com/installer/install.ps1))) -OctojaUrl 'https://YOUR-OCTOJA-URL' -Token 'YOUR-TOKEN'

The script detects the device architecture (x64 or ARM64), downloads the correct package, extracts the MSI it contains, and runs it silently. It requires an administrator PowerShell session.

Windows Server 2016 (and older Windows): enable TLS 1.2 first. On these systems Windows PowerShell still defaults to an older TLS version, so the command can fail at the download step (irm https://cdn.octoja.com/installer/install.ps1) with a connection error such as "The underlying connection was closed: An unexpected error occurred on a receive." β€” before the installer's own TLS handling can take effect. In the same elevated PowerShell session, switch to TLS 1.2, then run the octoja command again:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

If it still cannot connect, confirm the device can reach the CDN over HTTPS β€” a firewall, proxy or DNS problem produces the same symptom:

Test-NetConnection cdn.octoja.com -Port 443Resolve-DnsName cdn.octoja.com

Manual Install (MSI)

Choose Manual Install on the deployment page to see the Download x64 / Download ARM64 button. The download is a ZIP archive β€” extract it first, then run the contained MSI (octoja.Launcher.<version>.<arch>.msi) with msiexec:

msiexec /i octoja.Launcher.<version>.<arch>.msi OCTOJA_URL="https://YOUR-OCTOJA-URL"

Append /qn for silent installation with no UI:

msiexec /i octoja.Launcher.<version>.<arch>.msi OCTOJA_URL="https://YOUR-OCTOJA-URL" /qn

If an enrollment token is required, add TOKEN="...":

msiexec /i octoja.Launcher.<version>.<arch>.msi OCTOJA_URL="https://YOUR-OCTOJA-URL" TOKEN="YOUR-TOKEN" /qn

Automatic Rollout (Intune / Group Policy)

The Automatic Rollout card walks you through each deployment tool. The MSI itself comes from the Manual Install download β€” extract it from the ZIP archive first.

ToolHow to deploy
Microsoft IntuneAdd the MSI as a line-of-business app and set its command-line arguments to OCTOJA_URL="https://YOUR-OCTOJA-URL" (add TOKEN="..." if required), then assign it to the target device groups. See Microsoft's Intune documentation for the current menu path.
Group Policy (GPO)Use the generated transform file (see below) β€” GPO software installation has no field for MSI properties, so the transform supplies them for you.

Roll out with Group Policy

For a Group Policy rollout, octoja generates a ready-made Windows Installer transform file (named like octoja.Launcher.<version>.mst) that already carries your server URL and enrollment token. You no longer set any MSI properties by hand β€” the transform sets the same OCTOJA_URL and TOKEN properties that the manual msiexec command would. Follow these steps:

  1. On the Automatic Rollout card, select the Group Policy (GPO) tab and click Download transform (.mst). If you change the enrollment token later, download the transform again so it carries the new token.
  2. Place the MSI installer and the .mst transform on a network share the target machines can reach (use UNC paths like \\server\share\…).
  3. In a GPO, add the MSI under Computer Configuration β†’ Software Installation with the Advanced deployment method, then attach the .mst on the package's Modifications tab. Microsoft's Group Policy software-installation guide covers the console steps. The agent installs at the next computer startup.

Sidecar JSON alternative for Manual Install. Instead of passing the URL and token on the msiexec command line, you can place a settings file next to the MSI. Create installer.settings.json in the same folder as the MSI:

{  "octojaUrl": "https://YOUR-OCTOJA-URL",  "token": "YOUR-TOKEN"}

Then run msiexec /i octoja.Launcher.<version>.<arch>.msi /qn with no extra properties β€” the installer reads the JSON file automatically. This footnote also appears in the Manual Install step of the deployment wizard.

Parameter reference

ParameterWhat it does
/iInstall the specified MSI package
OCTOJA_URLTells the Agent which octoja server to connect to (HTTPS URL)
TOKENOptional β€” enrollment token issued by an octoja administrator
/qnQuiet mode β€” no user interface, no prompts

Verify the installation

  1. In the Windows Services console, confirm both agent services are Running: Octoja Agent (Octoja.Agent) and Octoja Launcher (Octoja.Launcher).
  2. In octoja, go to Devices β€” the device should appear within 1–2 minutes.
The octoja Devices table after enrollment. The Windows workstation CONTOSO-WS-002 is highlighted with the entire row outlined in blue; columns shown are Device, Status, Kind, Operating System, Customer and Last User.

Need an enrollment token? See Configure Agent Enrollment Tokens.