Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Script to detail DAG mount status

Posted on 2012-04-07
2
Medium Priority
?
425 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
ID: 37819905
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 2000 total points
ID: 37819957
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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you an Exchange administrator employed with an organization? And, have you encountered a corrupt Exchange database due to which you are not able to open its EDB file. This article will explain all the steps to repair corrupt Exchange database.
With so many activities to perform, Exchange administrators are always busy in organizations. If everything, including Exchange Servers, Outlook clients, and Office 365 accounts work without any issues, they can sit and relax. But unfortunately, it…
In this video we show how to create an email address policy 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…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
Suggested Courses

772 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