Exchange Online PowerShell Flags & Options
The ExchangeOnlineManagement module: mailboxes, permissions, transport and mail flow in Microsoft 365.All Exchange Online PowerShell pages
- Connect-ExchangeOnline -Device (device code sign-in, PowerShell 7 only)Connect-ExchangeOnline -Device prints a code to enter at microsoft.com/devicelogin from any browser. It exists only in PowerShell 7, not in Windows PowerShell.
- Connect-ExchangeOnline -ShowBanner:$false: hide the connection bannerConnect-ExchangeOnline -ShowBanner:$false hides the banner. ShowBanner is a switch: with a space, $false binds to -ConnectionUri instead. Checked in 3.10.1.
- Get-EXOMailbox -PropertySets: return archive, quota, hold or delivery propertiesGet-EXOMailbox returns only the Minimum property set. -PropertySets Archive, Quota, Hold or Delivery adds the rest; the valid values read from module 3.10.1.
- Get-EXOMailbox -ResultSize Unlimited: return more than 1000 mailboxesGet-EXOMailbox returns at most 1000 mailboxes unless you add -ResultSize Unlimited. Accepted values, binding errors and how to keep large tenant reports fast.