
Chapter 16: Reporting, Maintenance, and Administration
475
If you wanted to take this script even further you could put some logic in the report so that if
maintenance hadn ’ t run in two weeks or perhaps a backup hasn ’ t run in two days, the report would
highlight the problematic mailbox store in red to make it easier to distinguish. Rather than outputting
the data to the screen you could also create an object and store the data in it for additional parsing later.
You see an example of this later in this chapter.
Reporting Mailbox Size
A common task a messaging administrator performs is to report on the mailbox size of the user
population. This example shows how to report which mailboxes are close to the limit, and capture a list
of users who do not have limits assigned.
Get-MailboxStatistics returns a list of mailboxes and
statistics about those mailboxes.
Get-MailboxStatistics returns all mailboxes and the statistics for each. The results look something
like those in Figure 16 - 5 .
Figure 16-4
Figure 16-5
c16.indd 475c16.indd 475 12/17/07 5:30:29 PM12/17/07 5:30:29 PM