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.

Script Repository

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

February 24, 2021 Views: 3500

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

Return Values:

  • True: the option is enabled for the recipient;
  • False: either the option is not enabled for the recipient or the AD object is not a reciepent in Exchange.
Edit Remove
$Context.ConditionIsMet = $False

    $mailboxParams = $Context.TargetObject.GetMailParameters()

$Context.ConditionIsMet = $mailboxParams.EmailAddressPolicyEnabled -eq $True
Comments 0
Leave a comment

Got questions?

Support Questions & Answers