Why use this template?
Use this PowerShell template when you need to export accepted domain configuration. It is generated locally and can be reviewed before you run it yourself in your own PowerShell session.
The template uses ExchangeOnlineManagement and requires View-Only Configuration. Output: CSV report. Level: Beginner. Action: Read-only. Risk: Low.
Review before running
The script is generated in your browser. Read it before you run it, and test it outside production first. “Read-only” describes the script itself; anything you add around it can still change data.
Generate the script
- Open the template in the PowerShell Builder.
- Enter the requested values and review the module, permissions, output and risk.
- Generate the script, read it carefully, and test it outside production before use.
The script is generated locally in your browser. Nothing needs to be uploaded to Opselith.
Generate Export Exchange accepted domains →How to use this result
Use this report to review which SMTP domains Exchange Online accepts and how each domain is configured.
When this helps
- Create an accepted-domain inventory before mail-flow or migration changes.
- Check which accepted domain is marked as default and which domain types are configured.
- Compare Exchange Online domain configuration with a planned tenant or namespace design.
How to read the result
- DomainType describes how Exchange treats recipients for the domain; the report also includes Default, MatchSubDomains and OutboundOnly values.
- A row confirms Exchange configuration for that namespace. It does not by itself prove that public DNS, MX records or domain verification are healthy.
Things to check
- Review routing and DNS separately before changing accepted-domain configuration.
- This template is read-only and does not add, remove or modify accepted domains.
What to do next: Compare unexpected domains or domain types with your documented mail-flow design before making any configuration change.
Related tasks
Official references