如何获取邮箱的配额 [英] How to get mailbox's quota

查看:75
本文介绍了如何获取邮箱的配额的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不想获取用户邮箱的配额以及使用的百分比,例如:
account:Testuser1
total:50MB使用:25MB
百分比:50%


使用的是所有文件夹的总和
(收件箱日历
联系人




















收件箱


但我不知道如何通过exchange2007 webservice获取它?
谁能告诉我怎么做?谢谢

解决方案

我不认为EWS是最适合您的方法。 Powershell有一个脚本可以很好地返回邮箱或单个文件夹的大小。 Powershell还会返回其配额状态,但它不会告诉您它们与限制的接近程度。例如,它只是告诉你"UnderQuota"等,而不是多少。



要获得对于邮箱的配额,我认为你必须进行一些Active Directory调用。它都存储在属性中。但邮箱可以拥有自己的配额,没有配额,也可以继承邮箱存储的配额设置。通过查询AD,您将能够找出要使用的值。



Chris


I wan't to get a user's mailbox's quota and how many percent is used, by example:
account:Testuser1
total:50MB
used:25MB
percent:50%

The used is the sum of all folders
(inbox calendar
contacts
deleteditems
drafts
inbox
journal
junkemail
msgfolderroot
notes
outbox .....)

but I don't know how to get it via exchange2007 webservice?
Can anyone tell me how to do it?Thanks

解决方案

I don't think EWS is the best approach for you.  Powershell has a script that returns the size of a mailbox or individual folders quite nicely.  Powershell also returns their quota status, but it doesn't tell you how close they are to the limit.  For example, it just tells you "UnderQuota", etc., not how much under.

 

To get the quota, for a mailbox, I think you'll have to be making some Active Directory calls.  It's all stored there as properties.  But a mailbox can either have it's own quota, no quota, or inherit the mailbox store's quota setting.  By querying AD, you'll be able to find out which value to use.

 

Chris


这篇关于如何获取邮箱的配额的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆