块的前景在任何地方的用户列表。我对 53 k 用户在大型组织中运行此脚本。
1.首先创建 Users.cvs c: 驱动器上。
2.创建没有引号和列表中的”TargetAccount”列标题您的 NTAccountname,(域 \ 用户名) 的用户
3.运行脚本
PowerShell
$infile = “C:\users.csv”
$users = import-csv $infile
$users | foreach-object {
if ($_.TargetAccount -ne $null) {
set-casmailbox $_.TargetAccount -warningaction silentlycontinue -MAPIBlockOutlookRpcHttp $true
}}
Latest posts by Exchange中文站 (see all)
- 微软发布Azure PlayFab公众预览 - 2021年10月22日
- 微软发布全新云计算资料分析工具Azure Synapse - 2020年12月15日
- Exchange Server 版本号和发行日期汇总 - 2020年9月21日
发布于:
浏览:1564 次
还没有评论