- Microsoft Exchange Server PowerShell Essentials
- Biswanath Banerjee
- 133字
- 2021-07-16 13:05:00
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.
推薦閱讀
- Vue.js設計與實現
- 深入理解Bootstrap
- Python入門很簡單
- 劍指Offer(專項突破版):數據結構與算法名企面試題精講
- Elasticsearch Server(Third Edition)
- Visual FoxPro程序設計習題集及實驗指導(第四版)
- Nginx Lua開發實戰
- 51單片機C語言開發教程
- Java零基礎實戰
- OpenCV 3 Blueprints
- Clojure for Java Developers
- Everyday Data Structures
- Scrapy網絡爬蟲實戰
- Moodle 3.x Developer's Guide
- HTML5 Game Development by Example:Beginner's Guide(Second Edition)