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
注:"OrganizationalUnit" 代表OU的名称
阅读(3954) | 评论(2) | 转发(0) |