Set mailbox' PrimarySmtpAddress to the value of the Initials-attribute on the corresponding AD object found with get-user.

Hello,

The get-user can retrieve the value I want to use as email address 'prefix' for a group of users. How can I couple that attribute of the user object with a different domain name we use?

Somtthing like:

get-user -resultsize unlimited -OrganizationalUnit "domain.com/Department" |Set-Mailbox  -PrimarySmtpAddress=$initials + "newdomain.com"  -EmailAddressPolicyEnabled $False

 

Any assistance is appreciated.

Best regards, Tim

 

February 25th, 2015 2:20pm

Hi Tim,
 
According to your description, I understand that you want to change the primary SMTP address for relevant OU.
If I misunderstand your concern, please do not hesitate to let me know.

I want to double confirm whether you have add relevant accepted domain. If so, why not new an e-mail address policy for OU domain.com/Department?
If not, we cannot add this suffix for primary SMTP address.
 
Best Regards,
Allen Wang

Free Windows Admin Tool Kit Click here and download it now
February 26th, 2015 2:01am

Hello Allen,

My customer has Exch2010 - and as far as I can see, no option to assign an e-mail address policy for a specific OU is available. Or? I know that it's an option in Exch2013. 

Regards, Tim 

February 26th, 2015 2:22am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics