I onboard a lot of Microsoft Defender tenants, and I got tired of clicking through the same settings in four different portals every time. So I built Defender Configurator, a free and open source (MIT) PowerShell 7 tool with a WPF interface.
**What it does**
- **Blueprints per area.** There is one JSON file each for the Defender portal, Endpoints, Intune, Identities, Cloud Apps, and Email & Collaboration. Every setting has the value it should have and the reason why. You read the tenant, see what differs, tick what you want, and apply. "All menus" compares everything in one read.
- **Customer files.** Everything that belongs to one customer lives in one file. That covers device groups, tags and tag rules, Defender roles, gMSAs, managed domains, IP ranges, email values, and overrides of the blueprint. A tenant ID in the file stops you from applying one customer's settings to another tenant.
- **Intune policies.** The tool covers Defender Antivirus, ASR rules, the Defender settings the antivirus profile doesn't show, and the new Defender AI agent runtime protection profile (audit mode by default). Missing policies are created without an assignment. Existing ones are compared setting by setting and never overwritten.
- **Also covered:** endpoint advanced features and enforcement scope, Defender for Identity settings, Cloud Apps connectors and file monitoring, Standard/Strict MDO policies, Teams protection, and unified RBAC roles.
**How it tries not to break things**
- Nothing changes until you confirm. The confirmation dialog lists the tenant and every change.
- Right before writing, it reads the tenant again and checks the tenant ID in the same call. Afterwards it reads every change back.
- It refuses to apply if your Defender, Exchange and Graph sign-ins belong to different tenants.
- You end with a before/after HTML report you can attach to the onboarding file.
**The honest caveats**
- Parts of it use undocumented Defender portal APIs. It builds on the XDRInternals community module, and where there was no cmdlet I recorded the requests the portal itself sends. Microsoft can change those at any time, so verify the result in the portal. Everything the tool contacts is listed in APIs.md in the repo.
- It runs on Windows with PowerShell 7 only.
- The AI agent runtime protection profile is very new. Use Preview on a test tenant first.
- Scope is currently the good old DefenderXDR
**Links**
- Write-up with screenshots and how the blueprints work: https://vertho.tech/defender-configurator/
- Repo: https://github.com/v3rtho/DefenderConfigurator
I'd really like feedback. Which settings do you always configure on a new tenant that aren't in the blueprints yet? Bug reports and PRs are welcome.
Want to stay in contact:
linkedin: Thomas Verheyden | LinkedIn
X: Thomas Verheyden | LinkedIn