什么是委托账号?
委托账号(Delegate Account) 是指被授予权限访问他人邮箱或资源的账户。
如何设置邮箱委托?
打开Exchange Management Shell。
1、执行命令
批量给所有UserMailbox 类型账号设置邮箱委托superman@example.com(完全访问权限)
Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'UserMailbox')-and(Alias -ne 'superman@example.com')}|Add-MailboxPermission -User superman@example.com -AccessRights fullaccess -InheritanceType all -AutoMapping $false
命令分为两部分(一起执行):
Get-Mailbox
:筛选符合条件的邮箱。Add-MailboxPermission
:为筛选出的邮箱批量添加权限。
说明
建议新建一个或多个账号作为委托账号(如“superman@example.com”),不要使用默认的admin账号。
2、验证授权
方式1(登录验证)
验证是否授权成功,先登录进委托邮箱里,如本例先登录superman的exchange邮箱,然后打开其他邮箱中搜索被授权访问的其他员工邮箱并登录,如成功进入其邮箱即可。
说明
输入时可能非本exchange的联系人也会显示出来,别选错了。如果测试时选错账号,会增加排查时间。
方式2 (命令行)
{FullAccess}代表授权成功。
验证单个账号
Get-MailboxPermission -Identity "user@example.com" | Where-Object {$_.User -like "superman"} | Format-List -Property Identity, User, AccessRights, IsInherited, AutoMapping
验证全部账号
Get-Mailbox -ResultSize Unlimited | Get-MailboxPermission -User superman@example.com | Format-List Identity, User, AccessRights, IsInherited, AutoMapping
该文章对您有帮助吗?