• 1. London, UK
  • 2. New York, NY
  • 3. Sydney, Australia
  • 4. Melbourne, Australia
  • 5. Moscow, Russia
  • 6. Singapore
  • 7. Paris, France
  • 8. Chicago, IL
  • 9. Hong Kong
  • 10. Houston, TX

Thursday, February 02, 2006

 

SCRIPT: Reset Mailbox Limits

Posted by Bharat Suneja at 2:14 AM
I had posted a script that reports all users with their mailbox storage limits set individually on the user account properties in my earlier post titled "SCRIPT: Show mailbox limits".

I have just added another script to that post that will reset those mailboxes (with storage limits set individually). Once the script resets storage limits on the account, the account will get any mailbox storage limit policies.


Readme from the script:
This script will look for all user accounts that have their mailboxstorage size modified individually.
This includes accounts that have **any** following attributes:- Use mailbox store defaults is unchecked- Issue warning at (KB) is set- Prohibit send at (KB) is set- Prohibit send and receive at (KB) is set

Usage: resetmailboxlimits.vbe
Options:
/s:y will run script in silent mode (make sure you use the /f option to save output to a file if you're using silent mode
/f:[path to output file.txt] - will save output in a text file
/help
This example runs the script in silent mode and saves output in output.txt in c:\somedir

resetmailboxlimits.vbe /s /f:c:\somedir\output.txt

Labels: , ,

8 Comments:

April 6, 2006 12:50 PM
Anonymous Anonymous said...

This is a great tool! Do you have anythign to reset the Delivery Restrictions?

 
May 5, 2006 4:22 AM
Anonymous Anonymous said...

It seam the script is encripted and modification are not possible. Is there any posibility to change the script for my need. I want thant only change acount on one specified OU.

 
May 5, 2006 4:28 AM
Anonymous gumesese said...

It seem the script are encripted. I wand to modify the script for my needs. I only want to modify one OU. Is it posible to get plain version of this script.
Thanks
[email protected]

 
December 19, 2006 9:19 AM
Blogger razvan.despa said...

Hi,

I run the SHOWMAILBOXLIMITS.vbs script and it is working fine. I run from the same machine using the same user this script and i have this error:
resetmailboxlimits.vbe (94, 21) (null): 0x80005000

Can you please help me in identiying the problem?

Running these 2 scripts on a virtual machine both are working very fine.

Thanks a lot,
Razvan

 
October 31, 2008 8:31 AM
Blogger ltlebirdee said...

Hi, Do you have a script that will reset send/receive limits that are set at individual mailboxes so global send/receive limits can then be applied?
Thanks!

 
August 27, 2009 8:39 AM
Anonymous Anonymous said...

Why would this one script be encrypted? This is a little more dangerous script, as it actually makes modifications to active directory, rather than only report information - so why would it be encrypted, rather than open to review in order to verify that the actions it is taking are not insidious or unexpected and harmful in some way? Making a disclaimer is fine for protecting the author - but when the author hides what is going to happen?? And how does this extend our knowledge of scripting?

 
August 27, 2009 9:55 AM
Blogger Bharat Suneja said...

@Anonymous from Aug 27: Not sure what the thought process was >3 years ago when this script was posted. I stand by my disclaimer of not using scripts/code downloaded from the internet without adequate testing. However, there are plenty of other binaries we download and use, and have no clue what the source really does.

My apologies for not working to extend your knowledge of scripting in this one instance - iirc most other scripts posted here are not encrypted. :)

 
October 2, 2009 10:03 AM
Blogger Bharat Suneja said...

@Anonymous from Oct. 2 9:36 AM: Thanks for the heads up on broken link. Updated.

 

Post a Comment

Links to this post:

Create a Link

<< Home