O'Reilly logo

Exchange Server Cookbook by Devin L. Ganger, Missy Koslosky, Paul Robichaux

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3.1. Determining Which Domain Controllers Exchange Is Using

Problem

You need to know which DCs and GCs your Exchange server is currently configured to use, and whether they have been manually assigned or auto-discovered.

Solution

Using a graphical user interface

  1. Launch the Exchange System Manager (Exchange System Manager.msc).

  2. In the left pane, expand the appropriate Administrative Groups container, and then expand the Servers container.

  3. Right-click the target server and select Properties.

  4. Select the Directory Access tab. This tab will be present if you are using Exchange 2000 SP2 or later.

  5. By default, all DCs that this server can use are shown, regardless of their role. You can determine their role by looking at the Type field.

  6. If you need to limit the display to just a single type, select the appropriate option from the Show combo box. You can show All Domain Controllers, Configuration Domain Controller, Domain Controllers, or Global Catalog Servers.

Using VBScript

' This code queries the list of DSAccess instances and 
' reports which DCs DSAccess is using.
' ------ SCRIPT CONFIGURATION ------
strServer = "<ServerFQDN>" ' e.g., xch01.foobar.com; the NetBIOS name works too ' ------ END CONFIGURATION --------- Dim objWMIExch Dim listDCInst Dim objDCInst Dim strDCInfo ' Get the Exchange Namespace WMI object Set objWMIExch = GetObject("winmgmts:{impersonationLevel=impersonate}!//" &_ strServer & "/root/MicrosoftExchangeV2") ' Get the list of Exchange_DSAccessDC instances and iterate through ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required