1 设置通讯组成员需要管理员审批
Set-DistributionGroup testgroup -MemberJoinRestriction 'ApprovalRequired'
2 获取nuomi相关的通讯组将其组成员加入设置为需要管理员审批
Get-DistributionGroup nuomi.* | Set-DistributionGroup -MemberJoinRestriction 'ApprovalRequired'
3 将用户通讯组 testgroup更改为需要组管理者批准用户加入组的请求。此外,通过 BypassSecurityGroupManagerCheck 参数,将不会通知组管理者已对该通讯组设置进行了更改。
Set-DistributionGroup -Identity 'testgroup' -MemberJoinRestriction 'ApprovalRequired' -BypassSecurityGroupManagerCheck