I am trying to create a powershell script which is going to enable all users in specific OU to have mail enabled settings on exchange 2016
the EMS shell command is:
Enable-Mailuser -Identity username -ExternalEmailAddress mailto:SMTP:firstname.lastname@example.org
1. I am trying to defind the $userID from AD
2. and create $externalemail using formula $userID + "domain.com"
3. and to specify OU which the command should be run in
Thank you for your help!