November 10, 2012

Find the DN of all the databases in your Exchange 2010 organisation


To find the DN of all the databases in your Exchange 2010 organisation, you can run a simple cmdlet in Powershell


Get-Mailboxdatabase | fl Name,DistinguishedName


If you would like to extract the DN's for a specific site for example your Hong Kong site and all the database names start with a distinguishing HK prefix:


Get-Mailboxdatabase HK* | fl Name,DistinguishedName


Alternatively you can extract it out to a list if your result list is quite long:


Get-Mailboxdatabase | fl Name,DistinguishedName >DN.txt





No comments:

Post a Comment