September 25, 2012

Exchange 2010 - Get information from GAL

Task: get users information from exchange, display name, primary email address and phone number.  We need to obtain information only from users that are active so Hide from Exchange address list attribute will be checked.

Get-mailbox -DomainController DC01 | where {$_.HiddenFromAddressListsEnabled -match "False"} | Get-User -DomainController DC01 | Select DisplayName, WindowsEmailAddress, Phone | Export-Csv C:\UserEmailPhone.csv

No comments:

Post a Comment