Add email addresses to mailboxes in bulk
I never thought I’d be blogging about my successes with a Microsoft product, ever. But I just had a big success with Powershell. We need to add proxy email addresses to existing mailboxes in bulk. I created a .CSV file with two columns, the email address to add and the mailbox to add it to.
email, mailbox
email1@example.com, mailbox1
email2@example.com, mailbox2
Then to import the file and process each line:
Import-CSV "Path\to\file.csv" | foreach {
>> $foo = get-mailbox $_.mailbox
>> $foo.EmailAddresses +=$_.email
>> $foo | set-mailbox}
>>
∞ May 22, 2009 at 09:55am
-
howardtharp liked this
-
mattack posted this

