June 2005
Intermediate to advanced
464 pages
13h 2m
English
As part of an installation, update, migration, or other administrative task, you might want to find out which Exchange servers already exist in an organization.
Launch the Exchange System Manager (Exchange System Manager.msc).
Expand the Administrative Groups node, and then expand each AG that appears below it.
Select the Servers node in each AG. The righthand pane contains the servers in that administrative group, along with their type (basic or clustered), edition (enterprise or standard), version, and modification date.
The following command will query Active Directory to find existing Exchange servers and the version of Exchange installed.
> dsquery * "cn=microsoft exchange,cn=services,cn=configuration,<ForestRootDN>"
-filter "(objectCategory=msExchExchangeServer)" -scope subtree -attr name serialNumber' This code uses WMI to interrogate the Exchange routing table
' and list all known Exchange servers.
' ------ SCRIPT CONFIGURATION ------
strComputerName = "<ServerName>" ' e.g., exch01 ' ------ END CONFIGURATION --------- strE2KWMIQuery = "winmgmts://" & strComputerName &_ "/root/cimv2/applications/exchange" strE2K3WMIQuery = "winmgmts://" & strComputerName &_ "/root/MicrosoftExchangeV2" ' display basic attributes using Exchange 2000 WMI provider set serverList = GetObject(strE2KWMIQuery).InstancesOf("ExchangeServerState") for each ...