Solved

Script to detail DAG mount status

Posted on 2012-04-07
2
401 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 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
In this video we show how to create an Address List 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 Organization >> Ad…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

828 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