Answered by:
Mailbox Quota Exceed Notification Email for Administrator

Question
-
Hi,
I have exchange 2007. Is there a way to set an auto-email alert to be send to Exchange Admin when any user reach his/her mailbox limit? Let say User has 20 GB quota limit applied on DB level, Warning at 19 GB and complete block at 21 GB. I want to know in advance when user reach 18 GB of space, an email is generated to me. I have already gone through
http://social.technet.microsoft.com/Forums/en-US/exchangesvradminlegacy/thread/c3011368-5ca9-488b-af59-4ea66795c18b
But i think the method of transport rule is when quota is applied to mailbox individually. I have applied Quota limit at DB level.
Hasan
Thursday, December 13, 2012 6:49 PM
Answers
-
Hi
I dont think it is easy to archive, the only way is to run a script to calculate the usage of the user and then compare with 18G,if it is above that limit, send the message to you, it need to run maybe every 2 hours or every day. You can use Schedule task to save and run that script.
Cheers
Zi Feng
TechNet Community Support- Marked as answer by Zi FengModerator Monday, December 24, 2012 2:06 AM
Friday, December 14, 2012 9:50 AMModerator -
Hi
This might be a long Script, I could give you some advice.
To get the usage, you can use the command Get-MailboxStatistics
Eg, Get-MailboxStatistics -Identity User1 | FL TotalItemSize
To Compare you can use “If" to make a judgement
Then for send a message to admin,you can refer to this blog
http://blogs.msdn.com/b/rkramesh/archive/2012/03/16/sending-email-using-powershell-script.aspx
And For Schedule task, please have a look at this link from Mike Pfeiffer
http://www.mikepfeiffer.net/2010/02/creating-scheduled-tasks-for-exchange-2010-powershell-scripts/
Hope those helps
Cheers
Zi Feng
TechNet Community Support- Marked as answer by Zi FengModerator Monday, December 24, 2012 2:06 AM
Monday, December 17, 2012 6:10 AMModerator
All replies
-
Hi
I dont think it is easy to archive, the only way is to run a script to calculate the usage of the user and then compare with 18G,if it is above that limit, send the message to you, it need to run maybe every 2 hours or every day. You can use Schedule task to save and run that script.
Cheers
Zi Feng
TechNet Community Support- Marked as answer by Zi FengModerator Monday, December 24, 2012 2:06 AM
Friday, December 14, 2012 9:50 AMModerator -
Hi Zi,
Can you help me in writing a script?
Hasan
Friday, December 14, 2012 2:24 PM -
Hi
This might be a long Script, I could give you some advice.
To get the usage, you can use the command Get-MailboxStatistics
Eg, Get-MailboxStatistics -Identity User1 | FL TotalItemSize
To Compare you can use “If" to make a judgement
Then for send a message to admin,you can refer to this blog
http://blogs.msdn.com/b/rkramesh/archive/2012/03/16/sending-email-using-powershell-script.aspx
And For Schedule task, please have a look at this link from Mike Pfeiffer
http://www.mikepfeiffer.net/2010/02/creating-scheduled-tasks-for-exchange-2010-powershell-scripts/
Hope those helps
Cheers
Zi Feng
TechNet Community Support- Marked as answer by Zi FengModerator Monday, December 24, 2012 2:06 AM
Monday, December 17, 2012 6:10 AMModerator