How to bulk add/remove email addresses to single mailbox
Thanks. I knew of that way, I just didnt know if there was an even easier way by importing the CSV and doing some kind of "foreach" statement.
February 2nd, 2012 11:17am

what about this.. i did not try in my lab. Import-CSV CreateRecipients.csv | foreach { $Temp = Get-Mailbox -identity $_.UPN $Temp.EmailAddresses.Add($_.Emailadres1) $Temp.EmailAddresses.Add($_.Emailadres2) $Temp.EmailAddresses.Add($_.Emailadres3) Set-Mailbox -Instance $Temp}Kottees : My Blog : Please mark it as an answer if it really helps you.
Free Windows Admin Tool Kit Click here and download it now
February 2nd, 2012 11:28am

Hi, I'm running Exchange 2007 SP3, and I have one mailbox that contains a lot of email addresses. I want to remove a lot of those email addresses and then add a lot of new ones. I have created 2 CSV files, one containing the addresses that I want to add to this mailbox, and another with the ones that I want to remove. I cannot seem to figure out how to do it with EMS. Can someone enlighten me? Thanks
February 2nd, 2012 9:16pm

Hi Pres, use like this.. To ADD: $user = Get-Mailbox -identity userName $user.emailAddresses+="test1@domain.com","test2@domain.com","test3@domain.com","test4@domain.com" Set-Mailbox $user -emailAddresses $user.emailAddresses To Remove: $user = Get-Mailbox -identity userName $user.emailAddresses-="test1@domain.com","test2@domain.com","test3@domain.com","test4@domain.com" Set-Mailbox $user -emailAddresses $user.emailAddresses Kottees : My Blog : Please mark it as an answer if it really helps you.
Free Windows Admin Tool Kit Click here and download it now
February 2nd, 2012 11:26pm

How is the issue now?Xiu Zhang TechNet Community Support
February 6th, 2012 2:51am

Hi, Use this url http://technet.microsoft.com/en-us/library/bb125181(EXCHG.80).aspx Milan
Free Windows Admin Tool Kit Click here and download it now
February 6th, 2012 3:55am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics