Retrieves a list of mailboxes for a specified customer tenant ID.
The Get-CIPPMailboxes function retrieves a list of mailboxes for a specified customer tenant ID. It can also include soft-deleted mailboxes if the -SoftDeletedMailboxes switch is used.
Specifies the customer tenant ID for which to retrieve the mailbox list.
Indicates whether to include soft-deleted mailboxes in the result. By default, this parameter is set to $false.
PS > Get-CIPPMailboxes -CustomerTenantID "contoso.onmicrosoft.com"
PS > Get-CIPPMailboxes -CustomerTenantID "contoso.onmicrosoft.com" -SoftDeletedMailboxes