Describe what you need. We'll write the PowerShell.
The IntuneAutomation Script Generator is a free, browser-based AI tool that turns plain-English requests into production-ready PowerShell scripts for Microsoft Intune and Microsoft Graph. No sign-in and no installation required. Your prompt is sent to Anthropic for processing and is never stored on our servers.
Powered by Claude Haiku 4.5. Free for everyone — please use responsibly so it stays free.
No prompt storageUnlike general-purpose AI chat tools, the IntuneAutomation Script Generator is purpose-built for Microsoft Intune and Microsoft Graph. It enforces an Intune-focused system prompt, runs a PSScriptAnalyzer-style lint pass on every result with one-click fix-ups, redacts secrets before sending the prompt, and produces scripts that follow the same comment-based help conventions used by the 120+ open-source scripts in the IntuneAutomation library.
| Price | Free |
|---|---|
| Sign-in required | No |
| Daily limit | 20 generations per IP |
| AI model | Claude Haiku 4.5 (Anthropic) |
| Output format | PowerShell (.ps1) |
| Prompt storage | None — not stored on our servers |
| Secret redaction | Automatic for GUIDs, tokens, API keys, and emails |
| Targets | Microsoft Intune, Microsoft Graph, Windows, macOS |
| Lint pass | Built-in, with one-click Fix issues |
Type what you want the script to do — for example, list all stale Intune devices that haven't checked in for 90 days and export to CSV.
The generator streams a production-ready PowerShell script that uses the Microsoft Graph PowerShell SDK and includes comment-based help and the required Graph permission scopes.
Read the script, optionally use the inline Refine box to ask for changes (for example, switch to Managed Identity authentication), then copy or download the .ps1 file and run it locally with Connect-MgGraph or deploy it to Azure Automation.
Every generated script runs through six independent checks. The inspector panel on the right of the output streams these in real time during generation. Any warning or failure triggers an automatic fix pass at no quota cost.
The comment-based help block at the top of every script must be complete and tagged correctly.
Every Microsoft Graph permission scope declared in .PERMISSIONS must be a real scope, not invented.
Detects code-injection and credential-leak risks in the script body.
Catches logic bugs that pass syntax check but fail at runtime against a real Graph tenant.
Guards on destructive bulk operations. Different from Security — Safety is about protecting the tenant from accidental mass changes, not about code-level vulnerabilities.
Each Microsoft Graph URI literal in the script is checked against the full published endpoint catalog in real time as the script streams in.
Real-world Intune automation prompts the generator handles well. Use one as a starting point or paste your own.
The IntuneAutomation Script Generator is a free, browser-based AI tool that turns plain-English requests into production-ready PowerShell scripts for Microsoft Intune and Microsoft Graph. It runs entirely in your browser, requires no sign-in or installation, and is designed specifically for endpoint administrators who want to automate Intune tasks without writing the boilerplate by hand.
Yes. The generator is free for everyone, with no sign-in required. To keep the service sustainable for the community, generation is rate-limited to 20 generations per IP per day. Refinements and lint-fix passes count toward the same daily quota.
The generator is powered by Anthropic's Claude Haiku 4.5. Haiku 4.5 is fast, code-aware, and tuned for structured output, which makes it well-suited for generating PowerShell that follows IntuneAutomation conventions including comment-based help, parameter validation, and explicit Microsoft Graph permission scopes.
No. Prompts are sent to Anthropic for processing and are not stored on our servers. Anthropic does not use API inputs or outputs to train its models by default. Before your prompt leaves the browser the generator scrubs obvious sensitive patterns including GUIDs, tokens, API keys, and email addresses, but you should still avoid pasting real credentials, tenant IDs, or production data.
The generator targets Microsoft Intune, Microsoft Graph, and Windows or macOS device management. Common use cases include device inventory and stale-device reports, compliance and configuration policy reporting, app deployment and failure summaries, Conditional Access auditing, BitLocker and security baseline detection scripts, Autopilot diagnostics, and remediation scripts for Intune Endpoint Analytics. Requests outside this scope are rejected.
Unlike a general-purpose chat tool, the IntuneAutomation Script Generator is purpose-built for Microsoft Intune. It enforces a system prompt focused on Intune and Microsoft Graph, runs a PSScriptAnalyzer-style lint pass on every result with one-click fix-ups, redacts secrets before sending the prompt, and outputs scripts that follow the same comment-based help conventions used by the 120+ open-source scripts in the IntuneAutomation library.
Yes. After generation, use the inline Refine box to ask for changes — for example, switch to Managed Identity authentication, add CSV export, or adjust the Graph permissions. Each refinement counts as one generation against your daily quota. You can also click Fix issues to auto-resolve any lint warnings the generator detects.
The IntuneAutomation library includes 120+ open-source PowerShell scripts maintained by the community, each with one-click deployment to Azure Automation as a scheduled runbook. Browse the catalog or read the blog for guides and best practices.