Sub topic 15
RMM platforms
Remote monitoring and management (RMM) software lets a support team watch, maintain and repair many computers from one console. This chapter covers how RMM works, what it does, and the mistakes that cause trouble with it. It assumes you know the basic remote access tools from earlier chapters (RDP, VNC, SSH). It also assumes you can read a short script and understand terms like port, firewall and outbound connection.
What an RMM platform is
An RMM platform is a central service plus a small program, called an agent, that runs on each managed device. The agent is software that runs in the background, usually as a Windows service or a Linux daemon. It collects data about the device and carries out tasks that the central console sends to it.
RMM is built for scale. RDP, VNC and SSH connect you to one machine at a time. An RMM lets you ask, "Which of our 800 laptops are missing last week's security update?" and then fix all of them in one action.
Managed service providers (MSPs) are companies that run IT for other businesses, and they depend heavily on RMM. Internal IT departments with large fleets use it too.
How the pieces fit together
The agent starts the connection to the console, not the other way around. The agent makes an outbound encrypted connection, typically over HTTPS on TCP port 443. Because of this, the managed device does not need an open inbound port. It works from behind a home router or a customer firewall with no port forwarding.
The console may be hosted by the vendor in the cloud, or the organization may run it on its own server. The technician never connects directly to the managed device. All traffic passes through the console, which also records who did what.
Core features
Most RMM products offer the same group of features.
| Feature | What it does | Example |
|---|---|---|
| Monitoring and alerting | Agents report CPU, memory, disk, service status and events. Thresholds create alerts. | Alert when free disk space drops below 10 percent |
| Patch management | Detects missing OS and application updates and deploys them on a schedule | Install Windows updates every Tuesday night |
| Script deployment | Runs a script on one device, a group, or everything | Map a network drive for all sales staff |
| Remote control | Opens a screen sharing or shell session to a device | Take over a user's desktop to fix an Outlook problem |
| Asset inventory | Collects hardware and software lists | Find every PC with less than 8 GB of RAM |
| Ticketing integration | Turns alerts into tickets in a help desk system | A failed backup job opens a ticket automatically |
Script deployment ties this chapter to the scripting chapters. The RMM is what turns a single-machine script into a fleet-wide action. The platform usually decides whether a script succeeded by its exit code. An exit code is a number a script returns when it finishes, and 0 conventionally means success.
Here is a PowerShell script of the kind an RMM might run every hour on every Windows machine:
# Alert if free space on C: is under 10 percent
$disk = Get-CimInstance -ClassName Win32_LogicalDisk -Filter "DeviceID='C:'"
$freePercent = [math]::Round(($disk.FreeSpace / $disk.Size) * 100, 1)
if ($freePercent -lt 10) {
Write-Output "ALERT: C: has $freePercent% free"
exit 1
} else {
Write-Output "OK: C: has $freePercent% free"
exit 0
}The script stores a value in a variable and tests it with a conditional. It then ends with exit 1 or exit 0. The RMM reads that number and raises an alert when it sees 1. The printed text is saved in the console's log so the technician can see why the alert fired.
RMM compared with other remote tools
The A+ exam asks you to choose the right tool for a scenario. This table shows where RMM fits.
| Need | Best fit |
|---|---|
| Work on one Windows desktop from your own desk | RDP |
| Share a screen across Windows, Mac and Linux | VNC |
| Run commands on a Linux server | SSH |
| Reach internal file servers from home | VPN |
| Help a user who is sitting at their PC and can approve the session | Microsoft Remote Assistance |
| Patch, monitor and script many devices continuously | RMM |
The main difference is that RMM works continuously and across a whole fleet. The other tools wait until a person starts a session. An RMM agent keeps reporting even when nobody is logged in.
Common errors and gotchas
- Treating the RMM as a convenience tool instead of critical infrastructure. One console reaches every managed device, so it is a high-value target. In July 2021, attackers exploited flaws in the Kaseya VSA RMM product and pushed ransomware to the customers of several MSPs at once. The same feature that saves time, pushing code to everything, also spreads damage quickly.
- Weak console logins. Require multi-factor authentication (MFA) for every technician. Give each person a separate account so the audit log means something.
- Giving every technician full rights. Use role-based access control. A help desk tier 1 technician may need remote control and ticketing but not the ability to deploy scripts to all clients.
- Pushing an untested script to everyone. A script with a typo can delete files or change settings on hundreds of machines in minutes. Test on one device, then a small pilot group, then the whole fleet.
- Letting the agent go out of date. An old agent or console may have known vulnerabilities. Patch the RMM itself, not just the machines it manages.
- Ignoring unapproved RMM tools. Attackers often install a legitimate RMM or remote tool on a victim's computer, because security software trusts it. An unknown agent on a workstation is a warning sign. Keep a list of approved remote tools and alert on anything else.
- Alert fatigue. Thresholds set too low produce hundreds of alerts a day, and technicians start ignoring them. Tune thresholds and group related alerts.
- Offline devices. A laptop that is powered off or off the network cannot receive a task. Good RMM platforms queue the task and run it when the agent next checks in. Do not assume "sent" means "done." Check the result.
Securing an RMM deployment
- Turn on MFA for all console accounts.
- Use role-based access and least privilege, so each technician has only the rights the job needs.
- Keep the console and agents patched.
- Keep audit logs of logins, remote sessions and script runs, and review them.
- Restrict where technicians can log in from, for example by IP address or through a VPN.
- Test scripts on a small group before wide deployment.
- Remove agents from devices that leave management, such as a retired laptop or a former client's machines.
These steps reflect the general rule from the final chapter of this tutorial: strong authentication, encryption in transit, and least privilege apply to every remote access method.
Exercises
Exercise
An MSP wants to install the same security update on 300 client laptops overnight, then see a report of which ones failed. Which remote access technology fits best, and why is it a better choice than RDP?
Show answer
RMM. Its agents on each laptop support scheduled patch deployment and central reporting across many devices. RDP connects to one machine at a time, only while a person is in a session, and gives no fleet-wide reporting.
Exercise
A technician's RMM account is stolen. Name two controls that would have reduced the damage.
Show answer
Any two of these: multi-factor authentication on the console login, role-based access with least privilege so the account could not deploy scripts to all clients, login restrictions by IP address or VPN, and audit logging that lets the team detect and trace the misuse.
Exercise
In the disk space script above, what does the RMM use to decide that an alert is needed?
Show answer
The exit code. The script ends with exit 1 when free space is under 10 percent, and the RMM treats a nonzero exit code as a failure and raises an alert. The printed text is stored as a log message.