查询在邮箱上设置的转发功能:

Get-Mailbox -server MX01 -Filter {ForwardingAddress -like '*'} | Select-Object Name, ForwardingAddress | Export-Csv "D:\Scripts\Forwarding.csv"

查询在OUTLOOK信箱上设置的邮件规则转发:

Get-InboxRule -Mailbox "James Bond" | where {$_.RedirectTo} | fl MailboxOwnerID, RedirectTo

or

Get-InboxRule -Mailbox "James Bond" | where {$_.ForwardTo} | fl MailboxOwnerID, RedirectTo

检查所有邮箱中是否有设置转发/规则

脚本:

Set-AdServerSettings -ViewEntireForest $True

$mbxs = Get-Mailbox -server MX01 -ResultSize Unlimited

ForEach ($mbx in $mbxs){

Get-InboxRule -mailbox $mbx.primarySMTPAddress | where {$_.ForwardTo -or $_.RedirectTo} | fl MailboxOwnerID, ForwardTo, RedirectTo

}

原文<http://exchangeblog.pl/en/2012/10/exchange-2010-list-mailboxes-with-forward-to-address-or-inbox-rule/>

最新文章

  1. matlab进阶:常用功能的实现,常用函数的说明
  2. [转载]jQuery诞生记-原理与机制
  3. 2016年发布APASVO-p波震相自动拾取分析
  4. ICSharpCode.SharpZipLib.dll,MyZip.dll,Ionic.Zip.dll 使用
  5. MySQL基础之第18章 性能优化
  6. 关于使用vss版本管理工具中的sln,suo文件作用
  7. access 导数据到sql server 2008
  8. Hibernate事务传播性
  9. Tomcat 设置为服务使用脚本 service
  10. Linking pronunciation in English
  11. KMP算法中的next数组求解示意图
  12. html5中的meta标签
  13. (转)Linux下增加交换分区的大小
  14. SQL中哪些情况会引起全表扫描
  15. 队列-&gt;队列的应用(银行业务模拟)
  16. Windows跨域远程连接防火墙设置
  17. eclipse下载教程
  18. [linux] VirtualBox复制虚拟机
  19. 机器学习:Python实现聚类算法(二)之AP算法
  20. docker使用大全 tomcat安装

热门文章

  1. Office 365 离线安装
  2. HTTP Basic auth认证
  3. javascript构造函数的理解
  4. linux学习笔记6--命令mv
  5. Activiti(一)--安装配置具体解释
  6. linux2.4中netfilter_nat_alg机制分析--以FTP流程为例,分析NAT和ALG
  7. Linq Mysql GroupBy语句的问题处理
  8. impala+kudu
  9. nginx中,$request_uri和$uri的区别
  10. 微信小程序上传一或多张图片