Export exchange contacts to .csv file

Hello all,

I run exchange 2010 on a server 2008r2 blade server.  I'm trying to export contacts from outlook 2007 to a .csv file.  After I do the export when I open the .csv file all the contacts that were on our exchange server show up like this in the email column:

/o=whatever/ou=whatever/cn=Recipients/cn=whatever10

in the E-mail display column of the .csv file it shows this:

some one (someone@wherever.xx.xx)

The email in brackets is the correct email address.  I could manually go through each .csv file and fix things but I have around 50 users with hundreds of contacts each for so that's not really an option I like.  Is there a way I can export to a .csv where the exchange accounts have the proper emails in the email column?
Alex_LAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KimputerCommented:
In this case, I would suggest to use notepad to edit the source cvs file. First in Excel delete the garbage email column, then after saving it, open it in Notepad, replace " (" with "," or ";" (whatever the other delimiting characters), then replace ")" with "" (nothing). Don't actually input the quotes. You will now have a display name without the email, which is moved to it's own column, but I think you wouldn't mind.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Vijaya Babu SekarAssociate Ops ManagerCommented:
you may try to below cmdlets

Get-Mailcontact -ResultSize Unlimited |Select-Object DisplayName,ServerName,PrimarySmtpAddress, @{Name=“EmailAddresses”;Expression={$_.EmailAddresses |Where-Object {$_.PrefixString -ceq “smtp”} | ForEach-Object {$_.SmtpAddress}}} | Export-CSV c:\smtp.csv -NoTypeInformation

Open in new window




OR

Get-Mailcontact | select FirstName,LastName,Displayname,WindowsEmailAddress| export-csv c:\Mailcontacts.csv -Encoding UTF8

Open in new window




Thanks
0
Alex_LAuthor Commented:
Thanks I partially used this solution as no one else seemed willing to step up to the plate.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.