PowerTip: Use PowerShell to List All Domains in Office 365 Subscription

Doctor Scripto

Summary: Use Windows Powershell and the MSOnline cmdlets to identify all Internet domains attached to an Office 365 subscription.

Hey, Scripting Guy! Question How can I use Windows PowerShell to easily audit an Office 365 subscription for domains that are attached to it?

Hey, Scripting Guy! Answer Use the Get-MSolDomain cmdlet, and if you want a list in a CSV file for auditing purposes, add
           the Export parameter, for example:

Get-MsolDomain | Export-CSV o365domains.csv


Discussion is closed.

Feedback usabilla icon