Lists domain controller information for a computer running Microsoft Exchange Server 2003
On Error Resume NextstrComputer = "."Set objWMIService = GetObject("winmgmts:" _& "{impersonationLevel=impersonate}!\\" & strComputer & _"\ROOT\MicrosoftExchangeV2")Set colItems = objWMIService.ExecQuery _("Select * from Exchange_DSAccessDC")For Each objItem in colItemsWscript.Echo "Configuration: " & objItem.ConfigurationWscript.Echo "Directory type: " & objItem.DirectoryTypeWscript.Echo "Is fast: " & objItem.IsFastWscript.Echo "Is in sync: " & objItem.IsInSyncWscript.Echo "Is up: " & objItem.IsUpWscript.Echo "LDAP port: " & objItem.LDAPPortWscript.Echo "Name: " & objItem.NameWscript.Echo "Type: " & objItem.TypeWscript.EchoNext
This is a VB Script, this can be used by saving the file in .vbs file