Adding proxyAddresses with Powershell
Exchange 2007 SP3. I have a csv of over 550 rows, with displayname and proxyAddresses in it as the columns. The proxyAddresses column has anywhere from 3 to 7 smtp: addresses in it, comma delimited. Is there anyway to add the email addresses to our users? I've been trying hundreds of variations of this: Import-CSV "C:\data\test.csv" | foreach-object -process { Get-mailbox -identity $_.displayname | update-list -property emailaddresses -Add $_.proxyAddresses | Set-Mailbox} Not having any luck at all. All help greatly appreciated!
January 31st, 2011 5:01pm

Try... $Users = Import-CSV "C:\data\test.csv" Foreach ($User in $Users){ $Blah = Get-Mailbox $User.DisplayName $Blah.EmailAddresses +=$User.ProxyAddresses $Blah | Set-Mailbox }DJ Grijalva | MCITP: EMA 2007/2010 | www.persistentcerebro.com
Free Windows Admin Tool Kit Click here and download it now
February 1st, 2011 4:59pm

Hi RussPa53, I try to test one and will update the thread. By the way, you can try going to Windows Powershell Forum to seek the solution as well: http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/threads Frank Wang TechNet Subscriber Support in forum If you have any feedback on our support, please contact tngfb@microsoft.com Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
February 2nd, 2011 3:12am

We decided to blow away the accounts, wait for replication (overnight) & rebuild with a corrected csv. After we looked further, the mistake I reported above was not the only error in the data, so a clean slatre was preferred. THanks everyone - all good suggestions!
Free Windows Admin Tool Kit Click here and download it now
February 3rd, 2011 9:57am

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

Other recent topics Other recent topics