Get-ExMailboxByDomain
SYNOPSIS
Retrieves all Exchange mailboxes for a specified domain.
SYNTAX
Get-ExMailboxByDomain [-Domain] <String> [-RecipientTypeDetails <String>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
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
Get-ExMailboxByDomain -Domain "example.com"
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").
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RecipientTypeDetails
{{ Fill RecipientTypeDetails Description }}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.