← Free Scripts | Diagnostics |PowerShell

Search Inside Every Intune Script in Your Tenant

Intune hides script bodies behind base64. This script decodes every Remediation and platform script and tells you which ones match a pattern you supply.

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.