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

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.

主站蜘蛛池模板: 光山县| 绍兴县| 简阳市| 闻喜县| 鹤峰县| 南宫市| 金堂县| 阜新| 砀山县| 林周县| 滨海县| 六盘水市| 乌兰浩特市| 承德县| 泗水县| 五家渠市| 宜黄县| 穆棱市| 齐齐哈尔市| 汉川市| 陆丰市| 德州市| 襄城县| 鹤壁市| 上饶市| 友谊县| 朝阳市| 天津市| 贵德县| 红安县| 莫力| 怀化市| 绥江县| 镇平县| 保德县| 大竹县| 兰西县| 财经| 保康县| 鄂伦春自治旗| 德钦县|