What It Does
The script is read-only. It looks in every local user's profile folder, not only the signed-in user, and lists each installed extension with its ID, name and version.
For Chrome, Edge and Brave it reads every browser profile's Extensions folder, taking the newest installed version of each extension from its manifest.json. A name written as __MSG_appName__ is looked up in the extension's own _locales folder: the manifest's default locale, then English, then any locale. For Firefox it reads each profile's extensions.json and leaves out themes, dictionaries, language packs and Firefox's built-in add-ons.
Extensions that an organisation forces on a browser by policy are listed too once they are installed. Only extensions on disk are seen, so a browser that has never been opened by a user, or a profile on a roaming or cloud drive, has none. Opera, Vivaldi and Arc are not read.
NameMatch keeps only extensions whose name or ID contains one of your words. Each word must be at least 3 characters and is matched as plain text, with no wildcards.
Before You Run It
- Run it as an administrator or from your RMM as SYSTEM so it can read every user's profile.
- Use ExportPath to save a CSV when you want to review the full list or hand it to a client.
- Try NameMatch with words such as vpn, coupon or copilot to find a kind of extension quickly.
- Remember it sees only extensions on disk. A user who never opened a browser shows none.
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 30 seconds.
- Example answer: "48 extensions in 7 browser profiles for 3 users"
- 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.
- NameMatch: Only list extensions whose name or ID contains one of these words (not case sensitive; separate several with commas or semicolons). Each word must be at least 3 characters and is matched as plain text, no wildcards. Default: empty, list every extension.
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.