Docs › Deploy the Windows agent

Deploy the Windows agent

MSI, EXE, PowerShell, and Intune .intunewin packages.

Get an enrolment token

From the admin console: Settings > API Keys > Create, or use the Deploy Agent wizard which generates one for you. The token is prefixed ppk_.

Option A: MSI (recommended)

Download the latest MSI from /downloads/PatchPilot-Agent.msi, then install with msiexec:

msiexec /i PatchPilot-Agent.msi ORGAPIKEY=ppk_your_token /qn

The /qn flag runs silent. Drop it for an interactive install when troubleshooting on a single machine.

Option B: PowerShell one-liner

For ad-hoc installs, the wizard provides a one-liner. Run it from an elevated PowerShell:

iwr https://patchpilot.co.uk/downloads/Install-PatchPilot-Agent.ps1 -UseBasicParsing | iex

The script will prompt for the token (or accept it via the -Token parameter).

Option C: Intune

Download the .intunewin package from /downloads/PatchPilot-Agent-latest.intunewin. In Intune, create a Win32 app with these install / uninstall commands:

Install:   msiexec /i PatchPilot-Agent.msi ORGAPIKEY=ppk_xxx /qn
Uninstall: msiexec /x {guid-from-msi} /qn

Set the detection rule to HKLM\SOFTWARE\PatchPilot\Agent\Version existing.

If you're already on Intune and want PatchPilot to wrap rather than replace it, enable Settings > Management mode > Intune co-management and add the +£20/mo Intune integration. PatchPilot will read device state from Graph and write compliance signals back.

Option D: GPO / SCCM

The MSI is a standard Windows Installer package — deploy it like any other software via Group Policy software installation or SCCM application deployment. Use the same ORGAPIKEY property.

Verify enrolment

  1. Wait ~60 seconds for first check-in.
  2. Open Devices in the admin console.
  3. The new device should show Online with a recent heartbeat.
  4. First inventory pass (winget list, installed updates, Defender posture) completes within ~5 minutes.

What the agent installs

Uninstall

msiexec /x {guid-from-msi} /qn

Or from Settings > Apps > Installed apps, uninstall PatchPilot Agent. The agent retires itself in the admin console on graceful uninstall.

Previous← API quickstart NextLinux agent →

Last updated: 2026-04-26 · Back to Docs