授予用户对其他邮箱的完全控制权限

 

#授予用户srv-exaccmb-user对其他所有邮箱的完全控制权限(除去自身)
$usermailbox = "srv-exaccmb-user@yun.cn"
$usermailbox_alias = $usermailbox.split("@")[0]
Get-Mailbox -ResultSize unlimited -Filter "(RecipientTypeDetails -eq 'UserMailbox') -and (Alias -ne '$($usermailbox_alias)')" | Add-MailboxPermission -User $usermailbox -AccessRights FullAccess -InheritanceType All

 

#授予用户srv-exaccmb-user对用户yun09的完全控制权限
Get-Mailbox yun09 |Add-MailboxPermission -user srv-exaccmb-user -AccessRights fullaccess -InheritanceType all

 

posted on 2023-09-28 09:16  momingliu11  阅读(12)  评论(0编辑  收藏  举报