Agents on Windows
Weik.io 2026.2Run an agent on Windows Server 2022 or 2025, installed from an MSI that brings its .NET and Java runtimes.
On this page
A Windows agent needs an installation on Weik.io 2026.2.2 or later. On 2026.2.0 and 2026.2.1 every agent runs on a Linux host. The
weikioCLI runs on Windows on every release, installed withirm https://weik.io/install.ps1 | iex.
On Windows Server 2022 and 2025, an agent runs your integrations as it does on Linux, with the same link to Weik.io on port 443 and the same telemetry. A Windows agent runs integrations only, because a gateway at a site runs on Linux hosts. The installer, weikio-agent-win-x64-<version>.msi, puts everything the agent needs on the server. The agent’s identity comes from its folder, which Weik.io issues when you enrol the agent.
What the installer installs#
The installer puts these in C:\Program Files\Weikio\Agent\:
- The agent, with its .NET runtime
- A Java runtime built from Temurin JDK 21, which runs your Camel integrations
nats-server.exe, for the agent’s link to Weik.iorclone.exe, for file transfersotelcol-contrib.exe, the OpenTelemetry collector, which keeps the agent’s telemetry inC:\ProgramData\Weikio\agent\telemetryuntil Weik.io accepts itlicenses\, with the collector’s module listotelcol-contrib.modules
It also registers two services that start at boot and start again 10 seconds after a failure:
| Service | Runs as | What it does |
|---|---|---|
weikio- |
NT SERVICE\weikio- |
Runs the integrations, and stops them first when the server shuts down, within its pre-shutdown time of 120 seconds |
weikio-leaf |
NT SERVICE\weikio-leaf |
Runs nats- with the agent’s link to Weik.io |
The agent writes to the Application log under the event source Weikio.Agent.
Enrol a Windows agent#
Enrol the agent with --host windows, and give it capabilities and projects as for an agent on Linux:
$ weikio agent enrol agent-hq-w1 --host windows --capabilities os=windows,environment=production --projects finance --out ./agent-hq-w1The folder the CLI writes has the agent’s identity and an install.cmd.
Install it on the server#
Download weikio-agent-win-x64-2026.2.4.msi from weik.io, where SHA256SUMS gives its SHA-256, and put it in the folder beside install.cmd. Copy the folder to the Windows server and run install.cmd as an administrator.
install.cmd runs the installer and passes the folder to it as WEIKIO_BUNDLE_DIR. Then it loads the folder with Weikio.Agent.exe load-site <folder>, which places the agent’s files in C:\ProgramData\Weikio and sets who may read and write there. Last, it starts both services.
An install from the MSI alone starts neither service, because the agent’s folder is what makes the server an agent’s host.
Check the agent from your own machine:
$ weikio get agentsThen delete the folder on both machines, because it contains the agent’s credential.
Run under a service account#
By default the agent, and every integration it runs, runs as NT SERVICE\weikio-agent. To run them as a group managed service account or a domain account, give the installer these properties:
| Property | Default | What it does |
|---|---|---|
WEIKIO_ |
NT SERVICE\weikio- |
Sets the account that the agent and its integrations run as, such as a group managed service account EXAMPLE\weikio- or a domain account |
WEIKIO_ |
None | Sets the password of a domain account in WEIKIO_ |
msiexec /i weikio-agent-win-x64-2026.2.4.msi /qn WEIKIO_SERVICE_ACCOUNT=EXAMPLE\weikio-site$Upgrade and uninstall#
To upgrade, run a later release’s installer over the installed one. It replaces the program files and starts both services again. C:\ProgramData\Weikio stays, so the agent keeps its identity and settings. The telemetry that Weik.io hasn’t accepted yet waits there through the upgrade.
Windows Installer compares versions as three numbers, so the installer’s version counts the year from 2000. For example, release 2026.2.2 has the installer version 26.2.2.
Before you uninstall, revoke the agent with weikio agent revoke agent-hq-w1. Uninstalling removes these from the server:
- The program files
- The services
- The event source
C:\ProgramData\Weikio, with the agent’s credentials
To install the agent again, issue a new folder with weikio agent credentials agent-hq-w1.