June 22nd, 2015

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

Doctor Scripto
Scripter

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

Category
Scripting

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.