powershell導出office 365中的全部用戶

方法1:ide

圖形界面導出用戶以及用戶信息命令行

進入Exchange管理中心,點擊收件人-郵箱-「…」-將數據導出到CSV文件blog

p_w_picpath

 

方法2:ip

使用命令行導出office 365中的全部用戶及用戶信息ci

1.經過PowerShell 鏈接到Office 365get

Connect-MsolServiceit

2. 導出現有Office 365上的全部用戶,如下導出字段是經常使用字段,若是須要請添加其它字段,字段信息參考如下示例文件io

Get-MsolUser | Select UserPrincipalName,FirstName,LastName,DisplayName,Title,Department,Office,Mobile,City,State | Export-Csv D:\users.csv -Encoding UTF8ast

 

注意:class

當Office 365的用戶數量在1000用戶以上須要在步驟2中添加如下參數

Get-MsolUser -MaxResults 100000或Get-MsolUser -all

相關文章
相關標籤/搜索