获取某个日期范围内用户的邮箱大小
这是 Exchange 2007。
我们正在尝试确定如果在特定日期范围内导出用户邮箱,将使用多少磁盘空间。
我可以使用 Export-Mailbox cmdlet 导出某个日期范围(开始日期和结束日期开关)内的内容,但 Get-Mailboxstatistics cmdlet 中不存在这些开关。
理想情况下,该命令应该是这样的(显然这是伪代码):
get-mailbox -organizationalunit "target" | get-mailboxstatistics -startdate "02/01/2012" -enddate "02/15/2012"
但是,同样,由于 Get-Mailboxstatistics cmdlet 不存在这些开关,我不确定如何实现这一点。
这可能吗?
This is Exchange 2007.
We are attempting to determine how much disk space would be used if we did an export of user mailboxes within a certain date range.
I can use the Export-Mailbox cmdlet to export contents within a date range (startdate and enddate switches), but these switches do not exist with the Get-Mailboxstatistics cmdlet.
Ideally, the command would go something like this (obviously this is pseudo-code):
get-mailbox -organizationalunit "target" | get-mailboxstatistics -startdate "02/01/2012" -enddate "02/15/2012"
But, again, since those switches don't exist for the Get-Mailboxstatistics cmdlet, I'm not sure how to pull this off.
Is this even possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 EWS 托管 API 在每个用户的邮箱中为您正在查看的日期范围内的所有电子邮件创建一个搜索文件夹。
让服务器咀嚼一会儿。
返回 EWS 并读取每个邮箱上该文件夹的大小。
Use the EWS managed API to create a search folder in each user's mailbox for all emails in the date range you're looking at.
Let the server chew on that for awhile.
Go back with EWS and read the size of that folder on each mailbox.