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

Computers and Internet Uncategorized

1 Comment Leave a comment

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: