Export list of mail enabled users from Exchange 2010

Use PowerShell to export a list of mail enabled users from Exchange 2010:

Get-User -ResultSize Unlimited | Where { $_.RecipientType -eq ‘UserMailbox’ } | ft firstname,lastname,samaccountname

The following command will export the list to a CSV file:

Get-User -ResultSize Unlimited | Where { $_.RecipientType -eq ‘UserMailbox’ } | select firstname,lastname,samaccountname | export-csv c:\MailEnabledUsers.txt

2 Comments

  1. Thank you! :)

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s