Prev | Current Page 651 | Next

Joezer Cookey-Gam, Brendan Keane, Jeffrey Rosen, and Jonathan Runyon

"Professional Windows PowerShell for Exchange Server 2007 Service Pack 1"

Identity
Write-Host ??? Last Defrag Completed: ??? $EventLogs.TimeGenerated
Write-Host ??? Last Full Backup: ??? $objItem.LastFullBackup
}
What was changed to get this information? You add the status switch to the Get-MailboxDatabase
cmdlet because this is required to query the backup, mount, or online maintenance status. If you do not
specify this switch the cmdlet will return $null for those properties. The last modification to the script
was to add another Write-Host to be able to write the LastFullBackup property to the console. The
output for this script looks like that in Figure 16 - 4 .
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.


Pages:
639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663
Apartamenty Świnoujście noclegi hel Lokaty jednodniowe projekty domków letniskowych męskie skarpetki rowerowe