Tuesday, August 30, 2011

How to check Exchange databases status via PowerShell

Run the cmdlet Get-MailboxDatabase to get information about the DB status. Use parameter -Identity to check the status of a single DB and -Server for all DBs in a server.


Check the status of a single DB

Get-MailboxDatabase -Identity DBNAME -Status | Format-Table Name, Mounted, BackupInProgress, OnlineMaintenanceInProgress

Check the status of all DBs in a Server
Get-MailboxDatabase -Server SERVERNAME -Status | Format-Table Name, Mounted, BackupInProgress, OnlineMaintenanceInProgress

* The -Status parameter specifies whether the script will get status information from the DB(s) or not. If not provided, the attributes Mounted, BackupInProgress and OnlineMaintenanceInProgress will return empty.


More info:
Get-MailboxDatabase cmdlet

1 comment:

  1. This is realy a Nice blog post read on of my blogs It is really helpful article please read it too my blog FACEBOOK IMAGES NOT LOADING.

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...