Skip to content
Menu

Unapproved Remote-Access Tool Installed

Alerts when any of 25 remote-access tools that you have not allowed is installed, running, or present as a portable copy in a user folder.

Unapproved remote-access tool installed is free for members.

Enter your email to create your free account and get the file.

We'll email you the script and the weekly MSP Outpost email. Unsubscribe anytime. Privacy policy.

Already a member? Sign in.

Be the first to review Unapproved remote-access tool installed. Tell other MSPs how it worked for you.

Write a Review

LanguagePowerShell
Runs onWindows 10, Windows 11, Windows Server 2016+; runs as SYSTEM
NeedsPowerShell 5.1
Read-onlyReads, changes nothing

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.

The Script

test-unapproved-remote-tools.ps1 · 994 lines · 54.7 KB

Free for Members

Create a free account or sign in to read, copy and download this script.

Welcome Back

Sign in to your MSP Outpost account.