Skip to main content

SYNOPSIS

Retrieves all Exchange mailboxes for a specified domain.

SYNTAX

DESCRIPTION

This function retrieves all Exchange mailboxes that belong to a specified domain. It filters the mailboxes based on their primarySMTP address to ensure they match the provided domain.

EXAMPLES

EXAMPLE 1

Returns all Exchange mailboxes associated with the domain “example.com”.

PARAMETERS

-Domain

The domain for which to retrieve the mailboxes. This should be a string representing the domain (e.g., “example.com”).

-ExportToExcel

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

-RecipientTypeDetails

Filters the mailboxes by their recipient type details. Acceptable values include:
  • UserMailbox
  • SharedMailbox
  • RoomMailbox
  • EquipmentMailbox
  • LinkedMailbox
  • SchedulingMailbox

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