Lists connector state information for a computer running Microsoft Exchange Server 2003
On Error Resume NextstrComputer = "."Set objWMIService = GetObject("winmgmts:" _& "{impersonationLevel=impersonate}!\\" & _strComputer & "\CIMV2\Applications\Exchange")Set colItems = objWMIService.ExecQuery _("Select * from ExchangeConnectorState")For Each objItem in colItemsWscript.Echo "Distinguished name: " & objItem.DNWscript.Echo "Group distinguished name: " & objItem.GroupDNWscript.Echo "Group GUID: " & objItem.GroupGUIDWscript.Echo "GUID: " & objItem.GUIDWscript.Echo "Is up: " & objItem.IsUpWscript.Echo "Name: " & objItem.NameWscript.EchoNext
This is a VB Script, this can be used by saving the file in .vbs file