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

相关文章
相关标签/搜索