Exchange: PowerShell Commands for Stores

Get Rid of Exchange 2010 Storage Groups
By Guy Thomas October 18, 2011 9:00 PM
Table Of Contents
  • 3. Exchange: PowerShell Commands for Stores
3. Exchange: PowerShell Commands for Stores

After launching the Exchange Management Console and looking around, you may find it quicker and easier to type a few PowerShell commands rather than keep drilling down via the GUI.

Here are a few of the many PowerShell commands to configure your Exchange 2010 stores.

mount-Database  

Example: Mount-Database -Identity ExchSrv\MgrDatabase  There is also a sister command: dismount-Database.

remove-MailboxDatabase

Example: remove-MailboxDatabase -Identity "OldMgrs"

set-MailboxDatabase  This is the command to set mailbox limits.

Example: Set-MailboxDatabase "MgrDatabase" –IssueWarningQuota 512000000 –ProhibitSendQuota 563200000 –ProhibitSendReceiveQuota 614400000

set-MailboxDatabase has more parameters, for example, you can 'wire up' email journaling.  There is also a family of MailboxPermission commands, which use the verbs add, get or remove. 

Statistics

Two more interesting cmdlets are: get-MailboxFolderStatistics and also get-MailboxStatistics. 

move-DatabasePath  This command requires more parameters, I would favour the GUI unless you are for ever moving mailstore databases.

While Exchange 2010 has stores, each with its own database and log file, storage groups have been removed to make disaster recovery easier.

Comment on this article
Comments