可使用 Get-InboxRule 命令获取邮箱规则
Get-InboxRule -Mailbox zhaodongwei
$Mailboxes = Get-Content E:\001scripts\InboxRule.txt
$Results = foreach ($Mailbox in $mailboxes){
Get-InboxRule -Mailbox $mailbox | Select-Object MailboxOwnerID,Name,priority,description
}
$Results | Export-Csv -Path E:\001scripts\InboxRules.csv -Encoding utf8
参考:https://technet.microsoft.com/zh-cn/library/dd351062(v=exchg.160).aspx
Exchange - Get-InboxRule 获取用户邮箱规则
原文地址:http://blog.51cto.com/zhaodongwei/2087239