What It Does
The script looks for 25 remote-access tools in Windows services, the installed-programs list, program folders and running processes, and alerts when any of them is not matched by AllowedTools. A tool that is only running from a download counts.
Unless SearchPortable is false, it also looks for portable copies and downloaded installers by file name in each user's Downloads, Desktop, Documents and AppData folders, a few levels deep. A portable copy that was never run still alerts.
Every tool found is a row, allowed or not. A program folder with no service, installed entry or running process is a leftover of an uninstall and is listed but never alerts.
Before You Run It
- Put the tools you use in AllowedTools before the first run. With an empty list, every remote tool alerts, your own included.
- Some RMMs install another tool on purpose. If yours does, allow that tool too.
- Run get-remote-access-tools across a client first to see what is there, then turn this on.
Type and Risk
- Type: Monitor. It checks one condition. It exits 1 when it finds the problem, so your RMM can alert on it, 0 when all is well, and 2 when it could not run.
- Risk: Low. It reads and changes nothing.
- Restart: It never restarts the machine.
- Typical run: Under 1 minute.
- Example answer: "2 unapproved remote-access tool(s): AnyDesk, TeamViewer"
- 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.
- AllowedTools: The tools you use yourself, separated by commas, e.g. "ScreenConnect, TeamViewer". Wildcards work. Matched against the Tool column of the table. Default none: every remote tool alerts.
- SearchPortable: true to also search user folders for portable copies and installers. Default true.
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.