The nine Get-EXO cmdlets
The REST-optimised Get-EXO cmdlets are built for bulk reads, and there are exactly nine:
- Get-EXOMailbox, Get-EXORecipient, Get-EXOCasMailbox
- Get-EXOMailboxPermission, Get-EXORecipientPermission
- Get-EXOMailboxStatistics, Get-EXOMailboxFolderStatistics, Get-EXOMailboxFolderPermission
- Get-EXOMobileDeviceStatistics
Each maps to its classic Get- equivalent. There is no Get-EXOTransportRule, Get-EXODistributionGroup or Get-EXOMessageTrace. With several connections open, Get-EXO cmdlets run against the most recent one.
Property sets
Get-EXOMailbox, Get-EXOCasMailbox, Get-EXOMailboxStatistics and Get-EXORecipient return a minimal set of properties by default. Ask for more with -PropertySets or -Properties. Piping to Format-List * only shows what was returned, and -ResultSize Unlimited returns more objects, not more properties. Version 3.7.1 added ExoExchangeSecurityDescriptor to Get-EXOMailbox output.
The reserved prefix
-Prefix on Connect-ExchangeOnline renames imported cmdlets, which helps when two tenants share a window. -Prefix cannot be EXO, because that prefix is reserved for the nine built-in cmdlets. Pick any other prefix.
REST limits that break old scripts
- REST cmdlets time out after 15 minutes. Microsoft's example is Update-DistributionGroupMember with 10,000 members: split the batch into smaller calls.
- Invoke-Command does not work with REST connections. Call cmdlets directly.
- -PageSize takes 1 to 1000; it does not cure a timeout.
- -UseRPSSession is deprecated since 3.9.2, so it is no escape hatch for any of these limits.
When a long bulk job fails partway, check the 15-minute timeout first and cut the work into batches that each finish well inside it.
The 100-queries-per-5-minutes throttle belongs to Get-MessageTraceV2, not to bulk recipient changes.
These are PowerShell behaviours; the EAC lists and edits recipients one page at a time and has no equivalent for bulk reads.