Script repository

Check if 'Automatically update e-mail addresses based on e-mail address policy' option is enabled

Updated on: Jan 18, 2026, Views: 5001

Exchange

The script checks whether the Automatically update e-mail addresses based on e-mail address policy option is enabled for an Exchange recipient. To execute the script, add the If PowerShell script returns true condition to a business rule, custom command or scheduled task. The script returns $true if the Automatically update e-mail addresses based on e-mail address policy option is enabled.

$Context.ConditionIsMet = $False

try
{
    $mailboxParams = $Context.TargetObject.GetMailParameters()
}
catch
{
    return
}

$Context.ConditionIsMet = $mailboxParams.EmailAddressPolicyEnabled -eq $True

Comments 0

You must be signed in to comment.

    Got questions?

    Support Questions & Answers

    We use cookies to improve your experience.
    By your continued use of this site you accept such use.
    For more details please see our privacy policy and cookies policy.