How to Set the Maintenance Schedule for a Database
Applies to: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1, Exchange Server 2007
Topic Last Modified: 2007-08-29
This topic explains how to use the Exchange Management Console or the Exchange Management Shell to set the maintenance schedule for a mailbox database or public folder database. To ensure that your public folder and mailbox databases continue to operate efficiently, we recommend that you perform daily database maintenance. Microsoft Exchange Server 2007 Mailbox servers automate the tasks based on the schedule that you specify. For more information about the tasks that are performed during database maintenance, see Maintaining Mailbox Databases and Public Folder Databases.
To perform this procedure, the account you use must be delegated the following:
Exchange Server Administrator and local Administrators group for the target server
For more information about permissions, delegating roles, and the rights that are required to administer Exchange 2007, see Permission Considerations.
Start the Exchange Management Console.
In the console tree, expand Server Configuration, and then click Mailbox.
In the result pane, click the Mailbox server on which the database resides.
In the work pane, click the mailbox or public folder database for which you want to set the maintenance schedule.
In the action pane, under the name of the database, click Properties. The <Database Name> Properties dialog box appears.
On the General tab, in the Maintenance Schedule list, select a predefined schedule or to create a customized schedule, select Use Custom Schedule, and then click Customize.
Note: We recommend that you perform daily maintenance at a time when there is little activity on the database.
Click OK to save your changes.
To set the database schedule for the mailbox database named MailboxDatabase1 on Server01 to run between 02:00 and 03:00 on Wednesdays and Sundays, run the following command.
Set-MailboxDatabase -Identity "Server01\MailboxDatabase1" -MaintenanceSchedule "Sun.2:00-Sun.3:00","Wed.2:00-Wed.3:00"
For detailed syntax and parameter information, see Set-MailboxDatabase.
For more information about mailbox databases, see Managing Mailbox Databases.
For more information about public folder databases, see Managing Public Folders.
For more information about the tasks that are performed during database maintenance, see Maintaining Mailbox Databases and Public Folder Databases.