Exchange is the server side of a collaborative application product that is part of the Microsoft Server infrastructure. Exchange's major features include email, calendaring, contacts and tasks, support for mobile and web-based access to information, and support for data storage.
TRUSTED BY
ASKER
I just had to remove the mailto otherwise it created two entries one with SMTP and one with mailto:SMTP
would it be possible to adjust the script to ignore users already enabled?
thank you
$users = Get-ADUser -Filter * -SearchBase "OU=xx,DC=blah,DC=local" | select -expand samaccountname
foreach ($user in $users) {
Enable-Mailuser -Identity $user -ExternalEmailAddress SMTP:$user@domain.com
}