I had earlier posted a script that lists users’ mailbox limits/quotas [read previous post "SCRIPT: Show mailbox limits"]. That script only picks up users who have their mailbox limits set individually, bypassing the “normal” users who have their mailbox storage limits set by the Store or a System Policy.
A related script that resets the mailbox storage limits of all such users who have it set individually – SCRIPT: Reset mailbox limits.
Here’s another one on those lines – this script lists mailbox storage limits for *all users*, even if set by the Store or a System Policy. In case it is set by the Store, it displays the quota set by the Store. If a System Policy is applied to the Store (on which the mailbox resides) to enforce mailbox storage limits, it displays limits enforced by the Policy.
The script can output results to a file – use the /f:
You can also compress console output (the actual mailbox limit data – run-time info will still be output to the console. This shows which Store it is connecting to, et al.. ).
It was a little harder to code than it appears from the description above. :) Want to know more about the things I tried? Read previous post “Conflicting Mailbox Store Policies“)
If for some reason it doesn’t work for you, please post the issue in comments for this post.
Disclaimer: View all downloaded code/scripts with suspicion, including mine. Try them in a test environment first. I (or whoever posts such scripts on the web) could just as easily include code that deletes all your recipients and other AD objects :). These scripts do not come with any warranties or support, nor confer any rights.