需要计算电子邮件数量 [英] Need a count for number of emails

查看:246
本文介绍了需要计算电子邮件数量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我需要计算指定日期范围内邮箱的电子邮件数量。我希望将其导出到excel文件中。


我能够使用PS中的以下cmdlet获取指定文件夹中的总计数,但在特定时间内无法获取/日期范围:



Get-Mailbox | Get-MailboxFolderStatistics |其中{$ _。名称-match"收件箱|已发送邮件|已删除邮件|垃圾邮件"}选择Identity,Name,ItemsInFolder | Export-csv c:\ MailboxItemCount.csv



流程可以自动化吗?如我所知,我可以获得每天,每周或每月
月份生成的报告吗?


任何帮助都会很多赞。

解决方案

您必须使用Outlook或EWS 。


可以安排EWS通话。 没有完整的用户界面,Outlook将无法正常运行,并且不支持在调度程序下运行。


https://msdn.microsoft.com/en-us/library/office/dn535506%28v=exchg.150%29 .aspx?f = 255& MSPPError = -2147217396


https://msdn.microsoft.com/en-us/library/office/dd633710(v = exchg.80).aspx




Hi,

I need a count of emails coming to a mailbox in a specified date range. And i want that to be exported in an excel file.

I was able to get the total count in a specified folder using the below cmdlet in PS but couldn't get during a specific time/date range:

Get-Mailbox | Get-MailboxFolderStatistics | Where {$_.Name -match "Inbox|Sent Items|Deleted Items|Junk E-Mail"} | Select Identity, Name, ItemsInFolder | Export-csv c:\MailboxItemCount.csv

Can the process be automated? As in, can i get the report generated day, week or month wise?

Any help would be much appreciated.

解决方案

You would have to use Outlook or EWS for that.

EWS calls can be scheduled.  Outlook will not run correctly without a full user interface and running under the scheduler is not supported.

https://msdn.microsoft.com/en-us/library/office/dn535506%28v=exchg.150%29.aspx?f=255&MSPPError=-2147217396

https://msdn.microsoft.com/en-us/library/office/dd633710(v=exchg.80).aspx


这篇关于需要计算电子邮件数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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