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