【问题标题】:List all mailboxes a user has access to in Exchange 2013?列出用户在 Exchange 2013 中有权访问的所有邮箱?
【发布时间】:2018-02-01 23:13:15
【问题描述】:
是否可以运行命令来生成用户具有完全访问权限的邮箱列表?
我找到了一些可以尝试在 PS AD 模块中运行的东西,但是输出没有用。
Get-ADUser mspencer -Properties * | Select msExchDelegateListBL | Export-Clixml 'c:\users\adm-dosmith\desktop\test23.csv'
有人有吗?
【问题讨论】:
标签:
powershell
exchange-server-2013
exchange-management-shell
【解决方案1】:
Get-Mailbox | Get-MailboxPermission -User mspencer
这会遍历每个邮箱并返回用户mspencer 拥有的任何权限。
您需要使用 Exchange 命令行管理程序来运行它,因为它使用 Exchange cmdlet。
【解决方案2】:
仅过滤特定用户的完全访问权限:
Get-Mailbox | Get-MailboxPermission |
? {$_.User -match 'mspencer' -and $_.AccessRights -contains "FullAccess"}