RMMZit

Deploy the RMMZit agent with Group Policy or Intune

How to install the RMMZit agent on dozens or hundreds of Windows computers at once: one enrollment code with enough uses, a silent MSI install, the ready-made Group Policy startup script or the Intune Win32 app settings from the site page — and how to check, update and remove the agents afterwards.

What this guide covers

RMMZit is a free, open-source (AGPLv3) remote monitoring and management tool without device limits. Every managed computer runs a small agent that connects outbound to your own server. Installing it by hand works for a few machines; for a whole domain or a fleet in Microsoft Intune, the console prepares everything you need on the page of each site, already filled in with your enrollment code.

What you need

  • A running RMMZit server with a customer and a site. If you do not have one yet, follow Install a self-hosted RMM and enroll the first computers first; it also shows the manual install on a single computer.
  • Windows computers: Windows 10 / 11 or Windows Server 2016 and newer, 64-bit.
  • The computers must reach the server on the agent port (TCP 8444 by default). For computers outside your network, set the Public agent address under Settings → Network and access before you create the code.
  • For Group Policy: an Active Directory domain and a file share. For Intune: the computers enrolled in Microsoft Intune and Microsoft's IntuneWinAppUtil tool.
  • A technician or administrator account in the console.

Step 1 — An enrollment code for many computers

Agents join a site of a customer with an enrollment code. Every computer that enrolls uses the code once, so a mass rollout needs a code with enough uses for all of them.

  1. Open Customers, choose the customer and the site the computers belong to.
  2. Under Enrollment codes, give the code a label if you like, set Valid for days (1–365) and Uses (the number of computers), and click Create enrollment code.
  3. Copy the code (RZ1-…) from New enrollment code. It is shown only once. It contains the agent server address and the fingerprint of the server certificate, so the installer needs nothing else.

While the code is on the screen, the section Add computers of the same page shows every command and script below already filled in with it. Copy what you need before you leave the page. The table Enrollment codes shows how many uses are left; Revoke a code as soon as the rollout is done.

Anyone with the code can add computers to this site until it expires or is used up. Treat it like a password and keep it only in places the target computers and your administrators can read.

Step 2 — The MSI and its silent install

Under Installer (MSI) on the site page, click Download the agent (MSI, 64-bit) to get rmmzit-agent-x64.msi. The server carries the installer of its own version. The silent install takes the code as a property:

msiexec /i rmmzit-agent-x64.msi /qn ENROLLCODE="RZ1-…"

This one command is the base for every tool — Group Policy, Intune or your own script. The agent installs as the Windows service RMMZit Agent (service name RMMZitAgent) into C:\Program Files\RMMZit Agent, enrolls with the code and connects. Managed computers need no open ports: the agent connects outbound and pins the server certificate by its fingerprint, so a fake server cannot take it over.

A computer can also bring its own display name for the console: add DEVICENAME="SERVER-MADRID-01" to the command. The name is used only when the computer enrolls (agent and server 0.15 or newer); updates and reinstalls do not change it. The Group Policy script and the Intune command of the site page set no name; names can be given later under Name and site on each device page.

Step 3a — Group Policy startup script

The site page shows the block Many Windows computers: Group Policy with a PowerShell startup script. The script installs the agent once; computers that already have the service RMMZitAgent skip it.

  1. Copy rmmzit-agent-x64.msi to a file share that the computer accounts (Domain Computers) may read. Startup scripts run as the computer, not as a user, so user permissions are not enough.
  2. Enter the UNC path of the file in Path of the MSI on the share, for example \\fileserver\software\rmmzit-agent-x64.msi. The script below the field changes with it.
  3. Copy the script with Copy and save it as a .ps1 file.
  4. In the Group Policy Management Console, create or edit a GPO linked to the organizational unit of the target computers and add the script under Computer Configuration → Policies → Windows Settings → Scripts → Startup → PowerShell Scripts.
  5. The computers install the agent at their next startup.

The script is short and readable:

# RMMZit agent: computer startup script (Group Policy)
$msi  = '\\fileserver\software\rmmzit-agent-x64.msi'
$code = 'RZ1-…'
if (Get-Service -Name RMMZitAgent -ErrorAction SilentlyContinue) { exit 0 }
$log = Join-Path $env:windir 'Temp\rmmzit-agent-install.log'
Start-Process -FilePath msiexec.exe -Wait -ArgumentList @('/i', "`"$msi`"", '/qn', "ENROLLCODE=$code", '/l*v', "`"$log`"")

Every installation writes a verbose log to %windir%\Temp\rmmzit-agent-install.log on the computer.

Step 3b — Microsoft Intune Win32 app

For computers managed by Intune, the site page shows Many Windows computers: Microsoft Intune with the values for a Windows app (Win32).

  1. Put the MSI in an empty folder and pack it with Microsoft's tool: IntuneWinAppUtil.exe -c <folder> -s rmmzit-agent-x64.msi -o <output>.
  2. In the Intune admin center, add a new Windows app of the type Windows app (Win32) and upload the .intunewin file.
  3. Enter the values from the site page:
    • Install command: msiexec /i rmmzit-agent-x64.msi /qn ENROLLCODE="RZ1-…"
    • Uninstall command: the PowerShell command from the site page, which finds the installed RMMZit Agent and removes it silently
    • Install behavior: System
    • Detection rule: File exists: C:\Program Files\RMMZit Agent\rmmzit-agent.exe
  4. Assign the app as required to the device group that should get the agent.

Do not add the agent as a line-of-business (LOB) MSI. The agent updates itself, and Intune would then install the old version again. The Win32 app with the file detection rule does not have this problem.

Linux computers

Linux has no MSI. Under Linux (systemd) on the site page, download the agent (x86-64, or ARM64 for Raspberry Pi and other ARM servers), copy it to each machine with your usual tools and run it as root with the same kind of code:

chmod +x rmmzit-agent-linux-amd64
sudo ./rmmzit-agent-linux-amd64 install --code "RZ1-…"

It copies itself to /usr/local/bin/rmmzit-agent, enrolls and starts the systemd service rmmzit-agent; --name SERVER-MADRID-01 after the code gives it a display name. The details are in the installation guide.

Check that the computers appear

  • The Devices panel of the site page lists every computer that enrolled with a code of this site. The inventory arrives a few seconds after the agent connects.
  • The Devices page lists all computers with customer, site, operating system, signed-in user, Online or Offline and the time they were last seen; filter it by customer to follow the rollout.
  • The Uses column of Enrollment codes shows how many computers have used the code so far.
  • On the computer itself, a small icon next to the clock shows whether the agent is connected (green) and opens a window with the server and who manages the computer.

Updating the agents

You do not need to push new MSIs through Group Policy or Intune. When the server is updated, it carries the agent installers of its new version, and Settings → Agent updates shows which agents are outdated:

  • Update all online agents now updates every outdated agent that is online.
  • Update outdated agents automatically when they connect updates them by themselves. The update takes about a minute and the device is offline meanwhile; a device that fails is tried again after an hour.
  • A single agent is updated on its device page with Update the agent now.

The agent downloads the installer over its own encrypted connection and installs it only if it matches the SHA-256 in the signed update command. With Upload a new installer you can also put another MSI or Linux agent on the server. For new computers, keep the MSI on your share or in Intune current; with automatic updates switched on, an older agent is updated when it connects anyway.

Removing agents

Delete a device on its page with Remove device, or many at once: tick them in the Devices list and click Remove. If a computer is online, the agent uninstalls itself within seconds. An offline computer can no longer connect; uninstall the agent there by hand (Apps → RMMZit Agent → Uninstall) ; for Intune, the Win32 app carries the uninstall command from the site page.

The agent switches off the automatic installation of Windows Update by policy, so that updates arrive only from RMMZit. The previous settings are saved and come back when the agent is removed.

Troubleshooting

  • The site page has no download button — the MSI is not on the server yet: copy rmmzit-agent-x64.msi into the downloads folder of the data directory.
  • Nothing happens after the startup — check that the GPO applies to the computer and that Domain Computers can read the share; then read %windir%\Temp\rmmzit-agent-install.log.
  • Installed, but no device appears — can the computer reach the agent port? Test-NetConnection rmm.example.com -Port 8444. Is the code still valid and not used up? Codes created while the console was open on localhost point agents at the wrong server: set the public agent address and create a new code.
  • Agent logs — C:\ProgramData\RMMZit Agent\agent.log on Windows; /var/lib/rmmzit-agent/agent.log and journalctl -u rmmzit-agent on Linux. For a connected device, open them from the console under Files.
  • Support request — download the diagnostics under Settings → Diagnostics.

Limits

  • The MSI is 64-bit only: Windows 10 / 11 and Windows Server 2016 and newer.
  • For Intune, use the Win32 app; a line-of-business MSI would reinstall old versions after the agent updates itself.
  • An enrollment code is shown only once, is valid for at most 365 days and enrolls only as many computers as its uses allow.
  • Removing a device uninstalls the agent only on a computer that is online; offline computers need a manual uninstall.
  • Linux agents are installed with a command per machine (systemd, x86-64 or ARM64); there is no Linux package. There is no macOS agent yet.

What to do next

Start with one test organizational unit or Intune group, check that the computers appear on the site page, then widen the assignment and revoke the code when the rollout is done. Once the agents are in, the guides Free Windows patch management with a self-hosted RMM and Self-hosted remote desktop and remote terminal for IT support show what to do with them. Every way to install the server is on the download page.

See everything RMMZit does on the features page, or read the full documentation. Questions are welcome in GitHub Discussions; companies can get commercial support from MaxZit.