查網路上的匯出範本
http://community.spiceworks.com/topic/151529-list-of-all-mailboxes-on-exchange-2010-sp1
結果中文姓名是問號
export-csv後面要加參數 -encoding utf8即可解決
get-mailbox | select-object displayname, SamAccountName, Organization, OrganizationalUnit, HiddenFromAddressListsEnabled, PrimarySmtpAddress, RecipientType, RecipientTypeDetails | export-csv -path c:\test.csv -encoding utf8