Sunday, January 28, 2007

Retrieving Exchange 2007 database status information

Something that I just wasted some time trying to figure out so I thought I would share. I was trying to figure out how to retrieve mailbox database status information using the Exchagne 2007 Exchange Management Shell. The output of the Get-MailboxDatabase kept showing the LastFullBackup and LastIncrementalBackup fields as empty. I finally figured out you have to include the -Status option in order to retrieve that information from the information store. (Status information is not kept in the Active Directory.) Below is a sample output:

Get-MailboxDatabase "HNLEX04\Mailbox Database" -Status FL Name,Server,*backup*,Mounted
Name : Mailbox Database

Server : HNLEX04
BackupInProgress : False
LastFullBackup : 1/27/2007 8:59:17 PM
LastIncrementalBackup : 1/28/2007 1:06:22 PM
RetainDeletedItemsUntilBackup : False
Mounted : True

Labels:

5 Comments:

At 11:36 PM, Blogger Supriti said...

I was facing the same problem! Came across ur site and found the solution! thanks.. this was really helpful:)

 
At 3:03 PM, Blogger Tariq said...

Another powerful feature of this command-let in transitional environment is that it also works with Exchange 2003 servers. Just add “–IncludePreExchange2007” switch. Note:In the following example. EX01 and EX02 are Exchange 2003 servers and EX07 is Exchange Server 2007.

Get-MailboxDatabase -IncludePreExchange2007 -Status | FL Server, Name, Mounted

Server : EX01
Name : Mailbox Store (EX01)
Mounted : True

Server : EX02
Name : Mailbox Store (EX02)
Mounted : True

Server : EX07
Name : Mailbox Database
Mounted : True

Tariq Hamirani

 
At 5:32 AM, Blogger Aaron said...

Thanks Jim. Great find! I wonder if there is a list of cmdlets or parameters that require the -status parameter?

 
At 7:29 AM, Blogger Greg said...

This is awesome! Thank you so much for this post. I was facing the same issue, and needed these fields for an automated backup report. Thanks!!

 
At 4:47 PM, Blogger dan said...

Thanks Jim, first hit on google :).. champion

 

Post a Comment

<< Home