在线交流:如何列出通讯组的授权发件人(智能方式)
Exchange online : How to list the authorized senders of a distribution group (smart way)
我要列出通讯组的授权发件人
这是我的代码:
(Get-DistributionGroup -Identity "mydistributiongroup").AcceptMessagesOnlyFrom|get-mailcontact|Select-Object -Property DisplayName,Name,PrimarySmtpAddress
问题:
除了外部邮件,我的列表中还有交换邮箱
如何修改我的代码以智能且快速地考虑邮件交换(获取邮箱而不是获取邮件联系人)
谢谢
(Get-DistributionGroup -Identity "mydistributiongroup").AcceptMessagesOnlyFrom |
Get-Recipient |
Select-Object -Property DisplayName,Name,PrimarySmtpAddress
我相信这会如你所愿。
我要列出通讯组的授权发件人 这是我的代码:
(Get-DistributionGroup -Identity "mydistributiongroup").AcceptMessagesOnlyFrom|get-mailcontact|Select-Object -Property DisplayName,Name,PrimarySmtpAddress
问题: 除了外部邮件,我的列表中还有交换邮箱
如何修改我的代码以智能且快速地考虑邮件交换(获取邮箱而不是获取邮件联系人)
谢谢
(Get-DistributionGroup -Identity "mydistributiongroup").AcceptMessagesOnlyFrom |
Get-Recipient |
Select-Object -Property DisplayName,Name,PrimarySmtpAddress
我相信这会如你所愿。