Link to home
Start Free TrialLog in
Avatar of Michael Leonard
Michael LeonardFlag for United States of America

asked on

need assistance with a powershell script for adding additional email alias

hello, can someone help me modify the following script to work on a non-exchange server. [we are in dirsync mode with office 365 and have removed Exchange on-premise.
I need to modify this to key on the proxyAddresses attribute rather than emailAddresses so I can run this on a domain controller [not an exchange server]

Import-Csv alias-add-pipe.csv | % {
$user = Get-user $_.SMTP 
$user.emailAddresses += $_.newsmtp
Set-Mailbox $user -emailAddresses $user.emailAddresses
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Michael Leonard

ASKER

can someone assist me with modifying the code I submitted to meet these requirements.

thx in advance.

S.