What It Does
The script looks for about 25 RMM, endpoint-management and remote-management agents in three places: Windows services, the installed-programs list for 64-bit and 32-bit software, and program folders.
A product counts as installed when it has a service or an installed-programs entry. A program folder on its own is reported as a leftover and not counted, so an agent that was uninstalled badly does not read as live. The Intune management extension is listed as Microsoft (MDM).
Run it before you onboard a client to see which tool the previous provider left behind, and again after the migration to prove the old agent is gone. If you name a custom field, the product list goes into it.
Before You Run It
- Expect to see your own agent in the list. It is reported like any other.
- A leftover folder is worth cleaning up, but it is not a running agent. Check the services before you escalate.
- Use it across a whole new client in one scheduled run and export the rows, rather than machine by machine.
Type and Risk
- Type: Report. It collects facts into a table and never alerts. It exits 0, or 2 when it could not run.
- Risk: Low. It reads and changes nothing.
- Restart: It never restarts the machine.
- Typical run: Under 15 seconds.
- Example answer: "2 RMM agents: Datto RMM, ScreenConnect"
- Tested before listing on Windows 11 with Windows PowerShell 5.1, run as SYSTEM, against its own test cases.
Inputs
Pass an input as an argument (-Name value), as an environment variable with the same name, which is how most RMMs pass script variables, or change its default in the param() block at the top of the script. An argument wins over an environment variable, which wins over the default.
This script has no inputs of its own.
Every script also takes DryRun, OutputFormat (Text, Answer, Json or Csv), ExportPath and ResultField, which writes the answer to an RMM custom field.
License
Provided "as is" under the MIT License, without warranty of any kind. Test before production use. MSP Outpost and User First Digital Inc. accept no liability for any damage or loss.