Solved

Script to detail DAG mount status

Posted on 2012-04-07
2
373 Views
Last Modified: 2012-08-14
We have about 100 DB's in our DAG. Each DB can be on one of 5 Exchange 2010 mailbox servers.

I would like a script that would tell me which server the DB's are mounted on and output this to an Excel sheet.

Does anyone know if this is possible?
0
Comment
Question by:smith1974
  • 2
2 Comments
 
LVL 17

Expert Comment

by:Anuroopsundd
Comment Utility
Get-DatabaseAvailabilityGroup | Get-ExchangeServer | Get-MailboxDatabase

Get-exchangeserver | Where {$_.AdminDisplayVersion -Like "Version 14*" -and $_.ServerRole -Like "Mailbox*"} | SORT | get-mailboxdatabase | sort identity -unique | ft identity,Server,ActivationPreference -auto

 http://powershell.com/cs/forums/p/6441/10538.aspx


http://www.open-a-socket.com/index.php/2012/02/28/powershell-script-to-log-dag-database-queues-to-file/
0
 
LVL 17

Accepted Solution

by:
Anuroopsundd earned 500 total points
Comment Utility
Get-MailboxDatabase -Status | select Name, server, storagegroup, mounted

reult as below
Name                          Server                        StorageGroup
----                               ------                          ------------
MailDatabase              EXCH07                        EXCH07\Test1
MDB01                         EXCH07                        EXCH07\SG1
MDB02                         EXCH071                      EXCH071\SG2

 http://powershell.com/cs/forums/p/7343/11957.aspx
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now