Avatar of Michael Leonard
Michael Leonard
Flag for United States of America

asked on 

Need urgent assistance with powershell script - exchange

can someone help us with this script, here is the situation, we have on premise exchange 2010 and have migrated a few hundred mailboxes to 365, this has converted the on premise mailbox, into a "remote mailbox" object.

we need to add an additional proxy address to a few hundred of these. here is the script that works fine when run against Exchange on premise mailboxes, how can we modify this to run against the "remote mailbox" object that now exists:

Import-Csv alias-add-var-gen1.csv | % {
  Get-Mailbox $_.SMTP | Set-Mailbox -emailAddresses @($user.emailAddresses)+$_.newsmtp
}

Open in new window

PowershellExchange

Avatar of undefined
Last Comment
FOX

8/22/2022 - Mon