Hi, now when a user is create in AD from an our external software username and email properties has already populate . Adaxes, through a task squence, run the command below:
$remoteRoutingAddressTemplate = "%username%@XXX"
$Context.TargetObject.EnableRemoteMailbox($remoteRoutingAddressTemplate)
when the user's mail address is different from the one specified in the mail address policy exchange rule, the mail is changed. I would like to set during the script to disable the mail policy.
Set-EmailAddressPolicy $false
EX:
user@domain2.com
run script
user@domain1.com ( exchange mail policy )