Skip to main content

SYNOPSIS

Lists Exchange Online mailboxes with an @onmicrosoft.com email address

SYNTAX

DESCRIPTION

Retrieves Exchange Online mailboxes that have an email address ending with @onmicrosoft.com. Returns an object for each mailbox with relevant details.

EXAMPLES

EXAMPLE 1

Returns objects containing mailbox details for those with @onmicrosoft.com addresses.

EXAMPLE 2

Returns mailboxes with @onmicrosoft.com addresses filtered by the specified domain.

EXAMPLE 3

Returns the @onmicrosoft.com address for the specified mailbox identity.

EXAMPLE 4

EXAMPLE 5

Exports results to an Excel file.

PARAMETERS

-ByDomain

{{ Fill ByDomain Description }}

-ExportPath

Optional output directory for the Excel export (defaults to the user profile).

-ExportToExcel

If specified, exports the results to an Excel file in the user’s profile directory.

-Identity

{{ Fill Identity Description }}

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String[]

OUTPUTS

NOTES