最近工作中,需要把配有[邮件传递限制]的邮箱找出来,下图是Exchange 2010的截图
下图为 Exchange 2016的截图
- 单条件查询
Get-Mailbox -ResultSize unlimited | Where-Object {$_.AcceptMessagesOnlyFromSendersOrMembers -ne "$Null"}
- 多条件查询
Get-Mailbox -ResultSize unlimited | Where-Object {$_.AcceptMessagesOnlyFromSendersOrMembers -ne "$Null" -or $_.RejectMessagesFromSendersOrMembers -ne "$Null" -or $_.RequireSenderAuthenticationEnabled -ne "$Null"}
原文地址:http://blog.51cto.com/zhaodongwei/2335959
时间: 2024-11-05 22:17:01