在GrantSendOnBehalfTo

时间:2018-10-30 07:37:22

标签: powershell office365 exchange-server

我正在尝试在我们的Exchange在线设置中查找特定邮箱的“代表发送”实体的列表。
当我在Exchange Shell中运行此命令时,我仅获得用户名(John Doe),并且我们组织中有多个John Doe。这使得很难找到确切的用户。
有没有办法返回带有某些唯一标识符(例如电子邮件)的GrantSendOnBehalfTo属性?

命令:
Get-Mailbox -identity "example@example.com" | fl grantsendonbehalfto

输出:

GrantSendOnBehalfTo                     
-------------------                     
{John Doe}

1 个答案:

答案 0 :(得分:0)

您在get-mailbox上获得的许多属性都是反序列化的,即不再存在对象。这使得很难检索其属性。尝试将值传递给Get-User,然后获取专有名称或您要查找的其他属性。

 Get-Mailbox 'first.last@example.org' | select -expandproperty grantsendonbehalfto | get-user | select -expandproperty distinguishedname
相关问题