Submitted By: Mike Rolinson

Configures the Mailbox database maintenance period for a Microsoft Exchange 2007 server.

PowerShell
Edit|Remove
$mbdb = get-mailboxdatabase -server SERVERNAME | select-object name
$val = 0
while ($val -ne $mbdb.count)
{
set-mailboxdatabase $mbdb[$val].name -MaintenanceSchedule "Sun.11:30 PM-Mon.1:30 AM"
$val++
}