Solved

Exchange 2010 SP3 Mailbox Size Powershell script email

Posted on 2014-11-27
4
25 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
In this video we show how to create a mailbox database 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 Servers >> Data…
This video discusses moving either the default database or any database to a new volume.

757 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now