我希望Exchange 2013向pipe理员以及个人用户发送配额警报,以便我们了解情况。
我发现这个Exchange 2010指南,但没有2013年。https://ibenna.wordpress.com/2012/08/07/configuring-mailbox-quota-messages-to-messaging-administrators/
任何人都知道如何做到这一点的Exchange 2013?
谢谢
弄清楚了。 我在ECP>邮件stream>规则下添加了一条新规则。
应用这个规则,如果…主题或身体包括…“你的邮箱是”
做以下… Bcc消息…
提醒用户不能发送邮件的情况。
为事件ID 1078创build一个触发器。获取它来运行一个cmd文件
CMD C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -psconsolefile "E:\Program Files\Microsoft\Exchange Server\v15\bin\exshell.psc1" -file "E:\QuotaBreach.ps1"
QuotaBreach.ps1脚本
################################################### # Check for existence of output file and delete it. ################################################### $checkfile = Test-Path "E:\QuotaBreach.htm" If ($checkfile -like "True") { Remove-Item "E:\QuotaBreach.htm" } ################################################## # Pull data out of Event and process cmdlet ################################################## $address = Get-Eventlog -Logname "Application" -Source "MSExchangeIS" | where {$_.eventID -eq 1078} | select -first 1 | select @{n='SID';e={$_.ReplacementStrings[0]}} foreach ($sid in $address) { $mailbox = (get-mailbox $address.sid | select displayname) Get-MailboxfolderStatistics -Identity $sid.sid -FolderScope All -includeoldestandnewestitems | select FolderPath,@{N="FolderSize (MB)";E={$_.FolderSize.ToMB()}},oldestitemreceiveddate,Newestitemreceiveddate,ItemsInFolder,ItemsInFolderAndSubFolders | convertto-html | out-file E:\QuotaBreach.htm -append } ################################################# # Compile email and send ################################################# $body = get-content E:\QuotaBreach.htm | Out-String $recipients = "[email protected]", "[email protected]" send-mailmessage -from "[email protected]" -to $recipients -subject "$($mailbox.displayname) - Mailbox Breach" -BodyAsHtml -body $body -priority High -smtpServer "mail.company.co.uk" #################################################