Redirect usage warning

Using Exchange 2013...is there a way to redirect the usage warning on a mailbox to a couple of different individuals or even a distribution list?

Our scenario is that we have a mailbox which receives messages from users with purchase approval requests.  Our Oracle e-biz server is supposed to check that mailbox frequently and pick up any messages and process them.  Sometimes that job fails and purchase requests stack up.  I would like to set a low usage threshold on the mailbox that would alert a couple of sys admins that there are requests stacking up so they can poke the Oracle server to start processing again.

TIA

September 1st, 2015 11:47am

Hi,

You can use a PowerShell script to check the number of items in the inbox for that mailbox then alert you by email if it is ever over your threshold.

if((Get-MailboxFolderStatistics -Identity MailboxName -FolderScope inbox).ItemsInFolderAndSubfolders -gt 10)
    {
        Send-MailMessage -To alerts@company.com -From server@company.com -Subject "Threshold reached for MailboxName inbox item count" -SmtpServer smtpserver.company.com
    }


If there are subfolders then you need to filter the output from Get-MailboxFolderStatistics. More info here: https://technet.microsoft.com/en-us/library/aa996762(v=exchg.150).aspx

Get this script to run as a scheduled task or use a monitoring system to run it for you. Be sure to load the Exchange PS cmdlets. To do this save your script as c:\scripts\script1.ps1 and enter the below command when creating the scheduled task. You need the Exchange management tools installed for this. Also, change the path if Exchange is not installed on C.

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command ". 'C:\Program Files\Microsoft\Exchange Server\V15\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto; c:\Scripts\Script.ps1"

Let me know how it goes.

Thanks.

Free Windows Admin Tool Kit Click here and download it now
September 1st, 2015 12:45pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics