How to Find the AI Apps Hiding on Your Windows Devices with a Free PowerShell Script

Antique natural-history plate with neatly arranged hand-painted leaves, ferns, seed pods, beetles and butterflies on aged parchment

Ask most business owners which AI tools their staff use and you will get the answer that is in the policy. Ask the laptops and you will get a different one. People install a desktop chat app, add a browser extension that rewrites their emails, or drop an AI assistant into their code editor, and none of it goes through IT. I wrote a PowerShell script to answer the laptop version of the question: ai-apps-report.ps1. This post covers what it looks at, how to run it, how to read the report and what it will not tell you.

Everything below comes from the script itself and from the Windows AI Application Inventory documentation, which I re-read on 30 November 2026. Where I add my own suggestions, I say so.

Why inventory AI apps at all

You cannot govern what you cannot see. If you are working through Copilot readiness, data classification or an AI use policy, the first question is simple: what is already on these devices? Staff who paste client data into a tool you have never heard of are a data protection problem whether or not the tool is any good. An inventory will not tell you what people typed into those tools, but it does tell you which tools are present, on which machine, under which user. That is enough to start the right conversation.

What the script is, and what it is not

It is a local, read-only inventory for Windows endpoints. According to the script header and the documentation:

  • It installs no software and no modules, and changes no system settings.
  • It does not mount unloaded user registry hives, and it does not upload device data. The only network use is the optional catalog refresh, covered below.
  • It writes a self-contained HTML report that works offline, and opens it in your default browser unless you tell it not to.
  • It needs Windows PowerShell 5.1 or PowerShell 7 on Windows, with no additional modules. The script checks the operating system and stops with an error on anything other than Windows.
  • It runs as a standard user. Administrator is optional, and I cover why you would want it in a moment.

It is not a block list, an enforcement tool or proof of usage. It reports evidence that something AI-related is present. I will come back to the limits, because they matter for how you use the results.

What it looks at: six stages

The console shows progress through six numbered stages. Here is what each one covers, based on the script and the documentation:

StageWhat it inspects
1/6 Installed applications and Store packagesThe HKLM and HKCU Uninstall registrations (including the 32-bit view), other user hives that are already loaded, and Microsoft Store packages. Store packages are read for all users when elevated, and for the current user when not.
2/6 Running processesA snapshot of running processes, checking the name, path, file description and file version.
3/6 Portable and per-user locationsProgram Files, Program Files (x86) and ProgramData, plus per-profile folders such as AppData\Local\Programs, Desktop and Downloads. It also looks for command-line tools on the PATH. The default list is ollama, aider, claude, codex, gemini, gpt4all, lmstudio, goose, open-webui, llama-cli and koboldcpp, plus any the catalog adds.
4/6 Start Menu and web app shortcutsStart Menu shortcuts for all users and each profile, including browser web apps (PWAs) launched with an app ID. These are labelled as an application shortcut or a browser web app shortcut.
5/6 Browser extensionsExtensions across Chromium-based browsers (Chrome, Edge, Brave, Arc, Perplexity Comet, Vivaldi, Opera and others) and Firefox-based browsers (Firefox and Zen). It reads whether each extension is enabled or disabled where the browser records that.
6/6 Code editor extensionsExtensions installed for Visual Studio Code and the Insiders build, Cursor, Windsurf and Trae.

The documentation lists 16 browser variants in total, with Chrome Stable, Beta and Canary and Edge Stable, Beta, Dev and Canary counted separately. That is a lot of ground for one script, and it is the part I find most useful, because browser and editor extensions are exactly where AI tools turn up unannounced.

How it decides something is AI

Detection is catalog driven. Every finding carries a match type, and the two types mean different things:

  • Known AI-capable product. A name or identifier matched a rule in the catalog. The built-in catalog in the current script (version 2026.11.30-builtin) has 74 product rules, covering things like ChatGPT, Claude, Copilot, Gemini, Grok, DeepSeek, Mistral, Perplexity, Ollama, LM Studio, Cursor, Windsurf, Grammarly and ComfyUI. The rules use word boundaries and anchors to keep false positives down.
  • Possible AI product. No product rule matched, but a keyword pattern did. It looks for phrases such as artificial intelligence, generative AI, large language model, AI assistant and powered by AI in the name, description, publisher or comments. The phrase that matched is shown in the Evidence column, so you can judge it yourself.

The catalog is layered. The script ships with the built-in offline baseline. If an ai-apps-catalog.json file sits next to the script, or you point -CatalogPath at your own, its entries are merged with the built-in rules, and if the file is missing or unreadable the script falls back to the built-in rules. Add -UpdateCatalog and the script downloads the latest catalog over HTTPS first, with a 15 second timeout, saves it to the catalog path if that location is writable and falls back if you are offline. The script rejects a catalog address that is not HTTPS.

A custom catalog is a JSON file with a version, an updated date, a list of products (each with a name and a regular expression) and optionally extra command-line tools. Invalid regular expressions are skipped and reported as scan warnings rather than stopping the run. This is handy if you want to flag a line-of-business tool, or an AI product that is not yet in the shared catalog.

Getting it and running it

Download the script and, ideally, the catalog into the same folder. This download snippet is my suggestion, built from the repository paths in the links above:

$dest = 'C:\Tools\AI-Inventory'
New-Item -ItemType Directory -Path $dest -Force | Out-Null
$base = 'https://raw.githubusercontent.com/directorcia/Office365/master'
Invoke-WebRequest "$base/ai-apps-report.ps1"   -OutFile "$dest\ai-apps-report.ps1"
Invoke-WebRequest "$base/ai-apps-catalog.json" -OutFile "$dest\ai-apps-catalog.json"
Unblock-File "$dest\ai-apps-report.ps1"

Windows may block a downloaded script depending on your execution policy, which is why I added Unblock-File. Read the script before you run it, as you should with anything you pull from the internet, including mine. Then the simplest run is:

cd C:\Tools\AI-Inventory
.\ai-apps-report.ps1

That scans the current user, writes AI-apps-<yyyyMMdd-HHmmss>.html in the current folder and opens it. These are the parameters:

ParameterWhat it does
-OutputPathWhere to save the report. Defaults to a timestamped file in the current folder. It must end in .html or .htm, and missing parent folders are created.
-NoLaunchSaves the report without opening the browser. Use it for anything unattended.
-ElevateAsks Windows for administrator rights (a UAC prompt) before scanning. If you decline, the script reports that and does not run a partial scan.
-CatalogPathPath to a JSON catalog. Defaults to ai-apps-catalog.json next to the script.
-UpdateCatalogDownloads the latest catalog before scanning, as described above.
-CatalogUriThe HTTPS address used by -UpdateCatalog. Defaults to the catalog in the same GitHub repository.
-PassThruReturns a summary object to the pipeline: the report path, evidence count, distinct name count, warning count, catalog version and source, and the full list of findings.

A few examples, taken from the documentation:

# Refresh the catalog first, then scan
.\ai-apps-report.ps1 -UpdateCatalog

# Broader coverage: other users' profiles and all-user Store packages
.\ai-apps-report.ps1 -Elevate

# Unattended run (the documentation labels this for RMM or Intune execution)
.\ai-apps-report.ps1 -OutputPath 'C:\Reports\AI-inventory.html' -NoLaunch

# Use your own catalog and work with the results in PowerShell
$summary = .\ai-apps-report.ps1 -CatalogPath 'C:\Config\custom-ai-catalog.json' -NoLaunch -PassThru
$summary.Findings | Format-Table Name, Kind, Version, User, Confidence

Standard user or administrator?

Both work, but they see different things. As a standard user, the script scans your own profile and reports a permissions warning, because other profiles and all-user Store packages may be out of reach. On a shared PC or a server, that is a real gap. When the script is not elevated, it prints two options in the console and saves the same text in the report: re-run with -Elevate, or open PowerShell with Run as administrator and run the command it prints. The second option writes a separate AI-apps-admin-<timestamp>.html in the same folder and keeps flags such as -NoLaunch and a custom catalog path. For a single-user laptop, the standard run is usually enough to get started.

Reading the report

The HTML report is the main deliverable. It has summary cards for evidence records, known AI-capable matches, possible matches, distinct matched names, coverage warnings and scan duration. Below that is a table you can search, filter by evidence type and match type, and sort by name, type, version, user, source, match type, evidence, state, ID or location. You can export the filtered rows to CSV or JSON, switch between light and dark themes and print to PDF. The CSV export is built to be safe to open in a spreadsheet.

A few habits make the results easier to act on:

  • Evidence records are not apps. One product can appear several times, for example as an installed app, a running process and a Start Menu shortcut. Use the distinct names count to see how many different products you are dealing with.
  • Start with Known matches. Those are the rules someone has deliberately written. Treat the Possible matches as leads and read the Evidence column before you decide.
  • Check the State column for extensions. A disabled browser extension is a different conversation from an enabled one.
  • Read the scan warnings and source coverage. Each source shows as scanned, partial or partial / failed. A report with warnings is telling you where the blind spots are, so do not skip it.

The console also prints a summary by evidence type (installed application, store application, running process, application path candidate, command-line tool, browser extension and editor extension), so you can see the shape of a run before you open the file.

Running it across a fleet

The documentation shows the unattended pattern (-OutputPath with -NoLaunch) and describes it as suitable for RMM or Intune execution. It does not describe a fleet collection or reporting process, so the rest of this section is my own suggestion rather than anything in the docs, and I have not tested it:

  • Deploy the script and catalog through your RMM or Intune as a script or a scheduled task, and run it with -NoLaunch so nothing pops up on a user screen.
  • Write each report to a path that includes the device name, or have your tool collect the file, since the script names the report by timestamp only. The report records the computer name inside it.
  • Use -PassThru if you want counts and findings returned to your tooling instead of reading HTML. The findings carry Name, Kind, Version, User and Confidence, which is enough to build a simple cross-device view.
  • Check how your tool runs the script. Whether it runs as the signed-in user or as SYSTEM changes whose profile is scanned, and I would test that on a pilot device before trusting the numbers.
  • Run it on a schedule, monthly to start with, and compare the distinct names from one run to the next. New names are your conversation starters.

If you use an agent such as Grok Bot to help with reporting, a sensible job is to read the collected summaries, list names that are new since last time and draft the questions to ask the client. Keep a human deciding what to do about them.

Limits and privacy

The documentation is upfront about what an inventory like this cannot see, and I would repeat it to every client before they read the report as gospel:

  • Presence is not use. An app on the disk does not prove anyone opened it, paid for it or sent data to it.
  • Websites are invisible unless there is a local trace. An AI site that someone just visits in a browser, with no extension or web app shortcut, will not show up, and neither will browser history or bookmarks.
  • Some locations are out of scope: custom portable paths, extensions installed outside the standard profile folders, WSL distributions, Docker containers, Python virtual environments and AI features built silently into general software.
  • It is a point in time snapshot, and the catalog is only as current as the rules in it.

On privacy, the report contains the computer name, local usernames and file and registry paths. According to the documentation it does not contain credentials, browser history, prompts, messages or document contents. That is still information about your people and their machines, so store and share reports in line with your security policy. If you are an MSP, that includes how you handle them across clients.

Where it fits with Intune, Defender and Purview

This is my view, not a feature of the script. It does not enforce anything and it does not feed Intune, Defender or Purview. What it gives you is a quick, vendor-neutral look at what is on a device, including editor extensions and browser web apps, that you can run without onboarding the device to anything. I use that kind of snapshot to decide where to point the tools that do enforce: which apps to allow or block, which users need a conversation, and whether the AI use policy matches reality. Run it first, decide second, then configure your management and data protection tools to match the decision.

The takeaway

Shadow AI is not a technology problem to solve with a block list on day one. It is a visibility problem, and visibility is cheap. One script, no modules, no installs and no uploads gets you a report you can put in front of a client and say: here is what is actually on your machines. Start with a pilot on a few devices, read the coverage warnings, and decide what you want to do about the names you did not expect. If you spot a missing product or a false positive, the catalog is the place to fix it.

Sources (checked 30 November 2026)

Leave a Reply