Solved

Exchange 2010 SP3 Mailbox Size Powershell script email

Posted on 2014-11-27
4
31 Views
Last Modified: 2016-01-07
I would like a powershell script that will notify all users whose mailboxes are above 1GB.
 
The notification will simply tell them the current size of their mailbox.
 
Thanks for your help.
 
I am aware that Exchange should send warnings (if configured). I would like the powershell script please.
0
Comment
Question by:the_omnific
4 Comments
 
LVL 1

Accepted Solution

by:
Donald Henderson earned 500 total points
ID: 40470377
Something like this should do:

$MBlist = get-mailbox -resultsize unlimited
foreach($MB in $MBlist){
   $TIS = (get-mailboxstatistics $MB).totalitemsize.value.togb()
   if($TIS -gt 0){
      Send-Mailessage -To $MB.PrimarySMTPAddress -From Admin@domain.com -subject "Mailbox size alert" -body "your mailbox is over 1GB in size"
   }
}
0
 
LVL 1

Author Comment

by:the_omnific
ID: 40636604
Thanks for your response Donald. Sorry for my slow response but I will try this next week :)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question