Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Exchange 2010 SP3 Mailbox Size Powershell script email

Posted on 2014-11-27
4
Medium Priority
?
46 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 2000 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying 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

Stellar Exchange Toolkit: this 5 in 1 toolkit comes loaded with mega-software tool. Here’s an introduction to tools’ usage and advantages:
Eseutil Hard Recovery is part of exchange tool and ensures Exchange mailbox data recovery when mailbox gets corrupt due to some problem on Exchange server.
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

885 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