Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Exchange 2010 SP3 Mailbox Size Powershell script email

Posted on 2014-11-27
4
Medium Priority
?
41 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
The core idea of this article is to make you acquainted with the best way in which you can export Exchange mailbox to PST format.
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…
To show how to generate a certificate request 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 >> Certificates…

704 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