千家信息网

Exchange - Get-InboxRule 获取用户邮箱规则

发表于:2025-02-05 作者:千家信息网编辑
千家信息网最后更新 2025年02月05日,本示例为 Exchange2016可使用 Get-InboxRule 命令获取邮箱规则Get-InboxRule -Mailbox zhaodongwei批量导出$Mailboxes = Get-Co
千家信息网最后更新 2025年02月05日Exchange - Get-InboxRule 获取用户邮箱规则

本示例为 Exchange2016

可使用 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

0