Solved

Script to detail DAG mount status

Posted on 2012-04-07
2
412 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
In-place Upgrading Dirsync to Azure AD Connect
In this video we show how to create a Shared Mailbox 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 >> Sha…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

710 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