# Multi-server fleet

> Manage several Windows servers from one Zopanel panel: enroll with the MSI and a one-time token, place sites, update agents in rounds, remove servers.

Source: https://zopanel.net/windows/docs/fleet  
Updated: 2026-11-27

One Zopanel panel manages many servers. The panel server runs the web interface and the API; each other server runs only the **agent** and **broker** and hosts websites, databases and mail. Every server counts toward the license's server limit (Free: 1).

## How servers talk to the panel

Agents connect **out** to the panel on port 8443 over HTTPS and ask for jobs. A website server needs no inbound port open for the panel. The agent pins the panel's certificate fingerprint at enrollment. If a website server loses contact, its sites keep running: IIS does not depend on the agent. Only management and monitoring pause.

## Before you add a server

Set the panel's public address: **Security** → **Panel address** (format `https://name[:port]`, not an internal IP). Enrollment tokens carry this address. If you set `PUBLIC_URL` in the MSI, the address is fixed to it.

## Add a server

1. **Servers** → **Add server**, give it a name, keep **Install the recommended set** ticked if you want it.
2. The panel prints a command with a one-time token and the certificate fingerprint, in two forms.
3. On the new server, in PowerShell as Administrator, run the MSI form:

```powershell
msiexec /i C:\zopanel-0.9.213.msi /qn /l*v C:\zopanel-agent.log ROLES=agent `
  PANEL_URL=https://panel.example.com:8443 CA_SHA256=<fingerprint> ENROLL_TOKEN=<token>
```

or, from a release folder (shows fuller errors):

```powershell
.\zopanel-setup.exe install -roles agent -server https://panel.example.com:8443 -ca-sha256 <fingerprint> -enroll <token>
```

4. The server appears on **Servers** within about a minute, then installs the recommended set.

Use the same release on the new server as on the panel. Status: enrollment is available (Server 2019, 2022, 2025). Copy the MSI to the new server yourself; the panel does not serve it.

## Enrollment tokens

**Servers** → **Add server** lists active tokens and those used or expired in the last 24 hours, with who made them. Unused tokens can be revoked; a revoked token is refused. The panel stores only a hash of each token. Resellers who may manage their assigned servers see and revoke their own tokens.

## Placing work

- When you create a site, database or customer account, you choose the server.
- A reseller gets a set of servers; they and their customers can only place work there.
- A server in **maintenance** accepts nothing new; what runs on it keeps running.
- The provisioning API lists servers with `accepts_new`, load and free disk, so billing can pick one.

## Move sites between servers

A PHP site with MariaDB databases moves between two servers: the old server keeps serving until the new one is verified, a final sync runs, then traffic switches. You can move back. Status: available. Sites with PostgreSQL or SQL Server, Node/.NET/Python apps and mail are refused for now.

## Update agents

After the panel is updated, update agents from **Servers**: one canary server first, a health check and a soak period, then rounds of servers (5 per round by default). A failed round stops the rollout. The Updates page can start this by itself after a panel update. Status: limited.

## Remove a server

- Move or delete the server's sites, databases and mail, then remove it on **Servers**; its agent is revoked at once.
- A server that is gone for good (deleted VPS) can be removed with what the panel still kept for it: type its name to confirm. Each removal is audited.
- On the server itself, `msiexec /x` keeps customer data by default.

## Troubleshooting

| Symptom | Check |
|---|---|
| Server offline | `Get-Service ZopanelAgent, ZopanelBroker` on it; `Test-NetConnection <panel> -Port 8443` |
| TLS or fingerprint errors in `agent.log` | The panel's certificate changed without a restore; the server must be enrolled again |
| Jobs rejected | Check the clock: `w32tm /query /status`, `w32tm /resync` |
