How to Export the Exchange 2010 Default Global Address List (GAL)

Home > Blogs > Exchange Server > How to Export the Exchange 2010 Default Global Address List (GAL)

How to Export the Exchange 2010 Default Global Address List (GAL)

Like This Blog 4 Mike Pfeiffer
Added by May 9, 2012

Looking to export your Exchange 2010 default global address list (GAL) to an external file? This is supported natively right from the Exchange Management Console (EMC). Just navigate to the Recipient Configuration node in EMC, and select the recipient type. Then from the actions pane, you can select the "Export List" option and dump the data out to a CSV or text file.

You can also customize the fields. Before exporting using EMC, you'll want to go up to View > Add Remove Columns and choose which properties you want in your file. Keep in mind that with this method, you'll need to go to each recipient type, such as mailbox, distribution group, mail contact, etc. and export your list.

Another option is the Exchange Management Shell. If you take a look at the default global address list, you'll notice it already has a filter defined:

You can use this filter to generate your report using the Get-Recipient cmdlet. This takes mailboxes, contacts, groups, and mail-enabled public folders into account for you.

To generate a report using this filter, use the following:

You might also want to filter out recipients that have the HiddenFromAddressLists enabled property set to true. You could modify the filter, or you could just use Where-Object and do it after the fact:

It will be a lot faster, especially in environments with lots of mailboxes, if you use a server side filter to exclude those hidden recipients:

What you should end up with is something you can open in Excel that looks like this:

You can select additional properties if needed, just add them when calling Select-Object. Also, you may want to dump this data out to HTML. If that is the case, replace Export-CSV with ConvertTo-Html and redirect the output to a file with a .html extension. Finally, keep in mind that the Get-Recipient will return 1000 objects by default. You can override this by setting its -ResultSize parameter to a specific value, or to Unlimited.

Enjoy!

Mike Pfeiffer – Microsoft MVP
Director of Unified Communications
Interface Technical Training

Videos You May Like

Creating Users and Managing Passwords in Microsoft Office 365

0 675 3

In this Office 365 training video, instructor Spike Xavier demonstrates how to create users and manage passwords in Office 365.   For instructor-led Office 365 training classes, see our course schedulle: Spike Xavier SharePoint Instructor – Interface Technical Training Phoenix, AZ 20347: Enabling and Managing Office 365    

Subnetting a TCP/IP Network using the Magic Box Method

0 1736 5

See our class schedule for complete Course Schedule Training. Classes are held in Phoenix, AZ and can be attended online from anywhere in the world with RemoteLive™. Instructor: Rick Trader  Video Transcription: One of the things that we might have to do in our corporate network is to take a class of IP addresses and then subnet that into … Continue reading Subnetting a TCP/IP Network using the Magic Box Method

Detailed Forensic Investigation of Malware Infections – April 21, 2015

4 630 5

How does an investigator hunt down and identify unknown malware? In this recording of our IT Security training webinar on April 21, 2015, Security expert Mike Danseglio (CISSP / CEH) performed several malware investigations on infected computers and identify symptoms, find root cause, and follow the leads to determine what’s happening. He demonstrated his preferred … Continue reading Detailed Forensic Investigation of Malware Infections – April 21, 2015

Write a Comment

See what people are saying...

    Share your thoughts...

    Please fill out the comment form below to post a reply.