How do I Set an Online Maintenance Schedule Using PowerShell?

When you are managing computers set up with the Microsoft Exchange Server 2010, you determine when online maintenance should be performed for mailbox databases and public folder databases in the server. You can use the Exchange Management Shell snap-in with the PowerShell application to create the online maintenance schedule. With the Exchange Management Shell program you must enter a command into the command line and the schedule will be automatically set up for the database.

Instructions

    • 1

      Click the "Start" button from the desktop and then click the "Programs" option. Click the "Windows PowerShell 1.0" option.

    • 2

      Click the "Windows PowerShell" option. Enter "Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin" into the command line. The Exchange Management Shell is added to the PowerShell.

    • 3

      Enter "chdir "c:\program files\microsoft\exchange server\bin"" into the command line and then press the "Enter" key. Enter ".\Exchange.ps1" into the command line and press the "Enter" key. The Exchange Management Shell snap-in will then open.

    • 4

      Enter "Set-MailboxDatabase" into the command line and then press the "Spacebar" key on the keyboard.

    • 5

      Enter "-Identity "Server01\MailboxDatabase1" into the command line and then press the "Spacebar" key. Enter "-MaintenanceSchedule" and then press the "Spacebar" key.

    • 6

      Enter the schedule you want the online maintenance to run in quotation marks. For example, for maintenance to run on Monday between 1 p.m. to 3 p.m. you would enter "Mon.1:00-Mon.3:00" into the command line.

    • 7

      Press the "Enter" key on the keyboard and then online maintenance schedule will be set up.

Related Searches:

References

Comments

You May Also Like

Related Ads

Featured