← Free Scripts | Diagnostics |PowerShell

Find Intune Script Content

Search the body of every Intune Remediation and platform script in your tenant for a pattern, and see which scripts match.

Intune keeps script bodies base64-encoded and unsearchable in the portal, so questions like “which of my scripts remove AppX packages” or “does anything still reference this registry key” normally mean opening scripts one at a time.

This script pulls every Remediation (both the detection and remediation halves) and every platform script, decodes them, and matches each against a regular expression you supply, then reports which scripts matched and what matched in them. It can write the results to CSV and optionally include the full script bodies. It is read-only, and it follows paging so a large tenant is fully covered.

Download Find-IntuneScriptContent.ps1 from the PowerStacks intune-scripts repository:

GitHub
Microsoft GraphRemediationsSearch

Want simplified Intune reporting?

PowerStacks BI for Intune and App Store for Intune do the heavy lifting, all inside your own tenant, with nothing leaving it.