Script repository
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.