Windows

MeshCentral Windows – Server Hosting and Agent Deployment

Everything Windows administrators need, from running the server as a service to rolling out agents across a domain.

MeshCentral device details page showing live CPU and memory graph for a Windows 11 computer

MeshCentral on Windows covers two quite different jobs, and it helps to separate them from the outset. The first is hosting the MeshCentral server on a Windows machine, which many small organisations prefer because their administrators already know Windows Server well. The second, far more common, is managing Windows computers with MeshAgent, regardless of where the server itself runs. This article covers both, explaining how to install and run the server as a Windows service, how to deploy agents across Windows desktops and servers, and how to deal with the antivirus, firewall and permission questions that come up along the way.

Should You Host the Server on Windows?

The MeshCentral server is a Node.js application, and Node.js runs well on Windows. A Windows host is a reasonable choice when:

  • your team is more comfortable administering Windows than Linux;
  • you already have a Windows Server virtual machine with spare capacity;
  • the server will manage a modest number of devices inside one organisation.

Linux remains the more common choice for internet-facing servers, mainly because it is lighter, easier to automate and better covered by community guides. Neither choice limits which devices you can manage; a Windows-hosted server manages Linux and macOS agents just as well as Windows ones.

Installing the Server on Windows

There are two supported routes.

The official Windows installer

The project provides a Windows installer that sets up Node.js and the MeshCentral server, then registers the server as a Windows service. It is the quickest way to get a server running on a single machine and is well suited to evaluation and small deployments. As always, obtain it only from the official project.

The npm method

The npm method gives you more control and mirrors how the server is installed on other platforms.

Install a current long-term support release of Node.js from the official Node.js installer, accepting the default option to add it to the system path. Then open a command prompt as an administrator and create a dedicated folder.

mkdir C:\meshcentral
cd C:\meshcentral
npm install meshcentral

Do not install the package globally with the -g switch. MeshCentral expects to find its own folders next to node_modules, and a global installation will not run correctly.

Run the server once in the foreground so that it creates its folders and certificates:

node node_modules\meshcentral --cert mesh.yourdomain.example

When you see it listening, stop it with Ctrl+C.

Running the Server as a Windows Service

On Windows, MeshCentral can register itself as a background service:

node node_modules\meshcentral --install

The service starts automatically with Windows and restarts the server if it stops. You can manage it from the Services console like any other service, and the matching --uninstall option removes it. Run these commands from the same folder in which you installed the package.

Because the service account needs to read and write the meshcentral-data, meshcentral-files and meshcentral-backups folders, keep them inside the installation folder and avoid moving them to locations with restrictive permissions.

Configuring Windows Firewall for the Server

Windows Defender Firewall blocks incoming connections by default. Allow inbound TCP traffic on the ports the server uses, typically 443 for HTTPS and 80 for redirects and certificate validation. Create rules that are scoped as narrowly as your situation allows; for a server that only manages computers on the same network, restricting the rules to the local subnet is sensible.

netsh advfirewall firewall add rule name="MeshCentral HTTPS" dir=in action=allow protocol=TCP localport=443
netsh advfirewall firewall add rule name="MeshCentral HTTP" dir=in action=allow protocol=TCP localport=80

If Internet Information Services or another web server is already using port 443 on the same machine, MeshCentral will not be able to bind to it. Either move MeshCentral to a different port or put a reverse proxy in front of both.

Deploying MeshAgent to Windows Computers

Whatever platform hosts the server, managing a Windows computer means installing MeshAgent on it. Open the device group in the dashboard and choose the option to add an agent. The server offers several Windows installers, typically for 64-bit and 32-bit systems and for ARM64 where supported. Each installer is tied to that device group and carries the information it needs to find and trust your server.

Installation modes

When the installer runs, it offers choices that determine how the agent behaves.

  • Install registers the agent as a permanent background service that starts with Windows. This is the normal choice for computers you manage on an ongoing basis.
  • Connect runs the agent temporarily without installing a service, which suits one-off support sessions. When the program closes, the connection ends.
  • Uninstall removes a previously installed agent.

On Windows, the installed agent runs as a service under the local system account, which is what allows it to capture the sign-in screen, handle Ctrl+Alt+Del and act on behalf of administrators.

Deploying at scale

For more than a handful of machines, manual installation becomes tedious. Because the installer supports command-line options for a silent installation, it can be distributed with the tools organisations already use:

  • Group Policy software deployment or a start-up script in an Active Directory domain;
  • Microsoft Intune or Configuration Manager;
  • an existing remote management or scripting platform.

Always test the deployment on a small pilot group before rolling it out widely, and confirm that the agents appear in the correct device group.

Antivirus and SmartScreen Warnings

It is common for Windows Defender SmartScreen or an antivirus product to raise a warning about MeshAgent. There are understandable reasons for this. Remote management tools are, by design, able to control a computer, and criminals have abused legitimate tools of this kind, including MeshAgent, in real attacks. Some security products therefore flag remote access software generally, and freshly generated installers have no established reputation.

The right response is to verify rather than simply bypass. Make sure the installer came from your own server's dashboard, confirm the server name inside it and, in a managed environment, create a specific exclusion or allow rule through your security platform rather than disabling protection. Your security team should also know the server exists, so that genuine alerts about unauthorised MeshAgent installations are not dismissed as false alarms.

Working with Windows Through the Dashboard

Once the agent is connected, MeshCentral exposes a set of Windows-specific capabilities.

  • Desktop shows the console session, including the sign-in screen, with keyboard, mouse and clipboard support. Multiple monitors can be selected individually.
  • Terminal opens a command prompt or PowerShell session, either as the system account or as the signed-in user, depending on the options available.
  • Files browses local drives with upload, download and basic file operations.
  • Details lists hardware and operating system information, including the Windows edition, version and installed applications.
  • Console gives access to agent commands for diagnostics.

Power actions such as restart, sleep and shut down are also available, along with Wake-on-LAN for compatible hardware on the same network as another agent.

User Consent and Privacy on Windows Desktops

On computers used by other people, administrators should think about consent. MeshCentral can be configured per device group to ask the signed-in user for permission before a desktop, terminal or file session begins, and to display a notification or privacy bar while a session is active. In many workplaces and schools, these settings are not just courteous but expected by policy or law.

Updating Agents and the Server

MeshCentral updates installed agents automatically when the server is updated with a newer agent build, so there is usually no need to redeploy installers. To update the server itself on an npm installation, stop the service, back up the data folder, run npm install meshcentral again in the installation folder and start the service. With the Windows installer, follow the update method that installer documents.

Troubleshooting Windows-Specific Problems

The service starts and stops immediately

Run the server in the foreground from a command prompt to see the error. Common causes are invalid JSON in config.json, a port already in use or an outdated Node.js version.

The agent shows as offline

Check that the Mesh Agent service is running in the Services console, that the computer can resolve the server's name and that outbound HTTPS is not blocked by a proxy or firewall.

The desktop is black or shows only the sign-in screen

This can happen when no user is signed in, when the display is asleep or when a remote desktop protocol session has taken over the console. Wake the display or sign in, and avoid mixing RDP and console sessions on the same machine.

Ctrl+Alt+Del does not work

Use the dedicated button in the desktop toolbar rather than pressing the keys on your own keyboard, which your local computer intercepts.

Installer or npm: Which Suits You?

The two installation routes suit different people. The official installer is ideal when you want a working server quickly with minimal command-line work, or when the person maintaining it is not comfortable with Node.js. The npm route suits administrators who want to see exactly where every file lives, control the Node.js version independently and follow the same update procedure on Windows as on Linux. Whichever you choose, keep a record of it, because the update method follows the installation method.

Frequently Asked Questions

Yes. MeshAgent supports current releases of Windows 10 and Windows 11, as well as Windows Server, with installers for the common processor architectures.

Yes. The project provides a Windows installer that sets up the server as a service. The npm method is also fully supported.

Remote access software is frequently flagged because attackers have misused such tools. Verify the installer came from your own server and add a targeted allow rule rather than disabling protection.

Yes. The installer supports silent command-line installation, so it can be deployed through Group Policy, Intune or other software distribution tools.

Yes. Because the agent runs as a system service, administrators can see and interact with the sign-in screen and send Ctrl+Alt+Del.

Yes. The server's own operating system does not limit which agents it can manage.

Conclusion

MeshCentral fits naturally into Windows environments, whether the server runs on Windows itself or Windows computers are simply among the devices being managed. Install the server with the official installer or npm, run it as a service, open only the firewall ports it needs, and deploy agents through the tools your organisation already trusts. Handle antivirus warnings by verifying rather than switching protection off, respect the people using the computers with sensible consent settings, and Windows administration through MeshCentral becomes both efficient and responsible.