1、批量启用OU下用户邮箱:
Get-User -OrganizationalUnit "OrganizationalUnit " -resultsize unlimited | enable-mailbox -database "Mailbox Database"
注: "OrganizationalUnit" 代表OU的名称.
2、批量启用OU下的所有组
注:只有通用组才能够启用邮件
Get-Group -OrganizationalUnit
"OrganizationalUnit" | Enable-DistributionGroup
注: "OrganizationalUnit" 代表OU的名称.
3、全局组更改为通用组
Get-Group –OrganizationalUnit "OrganizationalUnit" | Set-Group -Universal
Get-User -OrganizationalUnit "OrganizationalUnit " -resultsize unlimited | enable-mailbox -database "Mailbox Database"
注: "OrganizationalUnit" 代表OU的名称.
2、批量启用OU下的所有组
注:只有通用组才能够启用邮件
Get-Group -OrganizationalUnit
"OrganizationalUnit" | Enable-DistributionGroup
注: "OrganizationalUnit" 代表OU的名称.
3、全局组更改为通用组
Get-Group –OrganizationalUnit "OrganizationalUnit" | Set-Group -Universal
注:"OrganizationalUnit" 代表OU的名称
本文转自legendfu51CTO博客,原文链接: http://blog.51cto.com/legendfu/1073669,如需转载请自行联系原作者