Prev | Current Page 647 | Next

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

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


Reporting on Online Defragmentation and Backups
One of the more important factors to keep an eye on in your environment is whether online
defragmentation is completing in a satisfactory length of time on all of the databases in the environment.
This is important because if online defragmentation isn ??™ t completing at about once every two weeks, the
database is going to grow larger than it needs to and it isn ??™ t going to perform as well as it can. If
maintenance is not running often enough you may need to increase the length of the maintenance period
or make sure that the maintenance period isn ??™ t overlapping with the backups.
The first thing you need to do is to get a list of each of the mailbox stores on the local server and assign
the list to the variable $db . There are a number of methods of determining the name of the local server;
this example obtains the MachineName property from the System.Environment object. You need to
select only the local server because Get-EventLog doesn ??™ t provide access to remote event logs through
PowerShell. You can, however, use Get-WMIObject to query a remote event log. This example sticks
with Get-EventLog :
$servername = [System.Environment]::MachineName
$db = Get-StorageGroup -Server $servername | Get-MailboxDatabase
Now that you have retrieved the mailbox store list, you need to start looking for the right information
from the event logs for each of these mailbox stores.


Pages:
635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659
dowcipy opisy życzenia na walentynki Hotele SPA Ciąża