Skip to main content

Test-ExMailboxProxyAddress

SYNOPSIS

Test if a given email address exists in the proxy addresses of a mailbox.

SYNTAX

Single

Test-ExMailboxProxyAddress [-Mailbox <String>] [-EmailToCheck <String>] [-OnlyMatch] [-OnlyNotMatch]
[-ProgressAction <ActionPreference>] [<CommonParameters>]

Csv

Test-ExMailboxProxyAddress [-CsvPath <String>] [-MailboxColumn <String>] [-EmailColumn <String>] [-OnlyMatch]
[-OnlyNotMatch] [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

This cmdlet checks whether a specified email address is present in the proxy addresses of a given mailbox. It can process a single mailbox/email pair or read multiple entries from a CSV file.

EXAMPLES

EXAMPLE 1

Test-ExMailboxProxyAddress -Mailbox "user@example.com" -EmailToCheck "alias@example.com"

Tests if "alias@example.com" exists in the proxy addresses of the mailbox "user@example.com".

EXAMPLE 2

Test-ExMailboxProxyAddress -CsvPath "C:\path\to\file.csv" -MailboxColumn "PrimarySmtpAddress" -EmailColumn "OnMicrosoftAddress" -OnlyMatch

Reads mailbox and email pairs from the specified CSV file and returns only those where the email address matches a proxy address in the mailbox.

PARAMETERS

-Mailbox

{{ Fill Mailbox Description }}

Type: String
Parameter Sets: Single
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-EmailToCheck

{{ Fill EmailToCheck Description }}

Type: String
Parameter Sets: Single
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CsvPath

{{ Fill CsvPath Description }}

Type: String
Parameter Sets: Csv
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-MailboxColumn

{{ Fill MailboxColumn Description }}

Type: String
Parameter Sets: Csv
Aliases:

Required: False
Position: Named
Default value: PrimarySmtpAddress
Accept pipeline input: False
Accept wildcard characters: False

-EmailColumn

{{ Fill EmailColumn Description }}

Type: String
Parameter Sets: Csv
Aliases:

Required: False
Position: Named
Default value: OnMicrosoftAddress
Accept pipeline input: False
Accept wildcard characters: False

-OnlyMatch

{{ Fill OnlyMatch Description }}

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-OnlyNotMatch

{{ Fill OnlyNotMatch Description }}

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
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.

INPUTS

OUTPUTS

NOTES