How to export GAL/internal contacts to .CSV with their SMTP address?

Joe Grover 566 Reputation points
2021-08-31T20:07:50.077+00:00

When exporting Contacts to .CSV, internal users are not exported with their SMTP address, instead having the X500-ish address like /o=ExchangeLabs/ou=Exchange Administrative Group etc. I've tried both using the Outlook 365 desktop client as well as OWA; both .CSV files have the same info.

Is there a way to export the contacts in a way that includes the SMTP address? We have a user that will be continuing to work with us on a contract basis, but will no longer have a mailbox in our organization.

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,174 questions
Outlook | Windows | Classic Outlook for Windows | For business
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Kael Yao 37,746 Reputation points Moderator
    2021-09-01T09:10:37.557+00:00

    Hi @Joe Grover

    When exporting Contacts to .CSV, internal users are not exported with their SMTP address, instead having the X500-ish address like /o=ExchangeLabs/ou=Exchange Administrative Group etc.

    Did you mean you would like to export all the user mailboxes and shared mailboxes in the tenant to a PST file?
    If you have the required permissions, I suppose that you may use EXO powershell to do it.
    The command would be like:

    Get-Mailbox -ResultSize unlimited -RecipientTypeDetails UserMailbox,SharedMailbox,RoomMailbox | Select-Object DisplayName, PrimarySMTPAddress | Export-Csv C:\temp\contoso.csv  
    

    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.