标签:exchange
需求:用脚本批量新建邮箱用户,要求用户账号是AD域账号操作:
打开AD目录,提前将新用户移动到new user的OU , 打开exchange 2013 EMS,输入以下命令
Get-User -OrganizationalUnit new user | where-Object{$_.recipienttype -eq "user"} | Enable-Mailbox -Database "APEMDB-004" | Set-Mailbox -MaxSendSize 4MB -MaxReceiveSize 4mb
输入以下命令
$a=Get-User -OrganizationalUnit newuser
foreach ($b in $a) {Set-CASMailbox -Identity $b.name -ActivesyncEnabled:$false -owaenabled:$false}
标签:exchange
原文地址:http://blog.51cto.com/12472127/2103671