Solved

Exchange 2010 SP3 Mailbox Size Powershell script email

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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 …
In this video we show how to create an Address List 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 Organization >> Ad…

939 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

10 Experts available now in Live!

Get 1:1 Help Now