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 6:24am

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

Other recent topics Other recent topics