官术网_书友最值得收藏!

Mailbox reporting

In this section, we will review a simple example where certain selected or all the properties of mailbox objects can be exported to a CSV file for review. For instance, you are an administrator of a company who is planning to move to Exchange Online and wants to find out the mailbox sizes of the user mailboxes.

We will use a combination of Get-Mailbox, Get-MailboxStatistics, Select-Object, and Export-CSV cmdlets:

Get-Mailbox | Get-MailboxStatistics | Select-Object DisplayName, ItemCount, TotalItemSize | Export-CSV "ExistingMailboxSize.csv"

Based on your requirements, you can build a complex script that can take multiple parameters as input, will do data conversion, and even send an email to specific people displaying the report in the HTML format. A simple example of a script is shared in the last topic of this chapter.

主站蜘蛛池模板: 项城市| 右玉县| 唐山市| 蒙阴县| 正蓝旗| 巴塘县| 大田县| 乌兰浩特市| 湟中县| 易门县| 盐亭县| 锡林郭勒盟| 玉林市| 枣强县| 佛冈县| 司法| 嘉鱼县| 景谷| 莱西市| 蒙自县| 法库县| 治县。| 嘉峪关市| 无棣县| 墨脱县| 巴楚县| 张家口市| 桦甸市| 乃东县| 科尔| 额济纳旗| 临江市| 兴和县| 马关县| 田东县| 珠海市| 横峰县| 万年县| 锡林郭勒盟| 卢龙县| 阳谷县|