Returns basic configuration 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_Server")For Each objItem in colItemsWscript.Echo "Administrative group: " & _objItem.AdministrativeGroupWscript.Echo "Administrative note: " & objItem.AdministrativeNoteWscript.Echo "Creation time: " & objItem.CreationTimeWscript.Echo "Distinguished name: " & objItem.DNWscript.Echo "Exchange version: " & objItem.ExchangeVersionWscript.Echo "Fully-qualified domain name: " & objItem.FQDNWscript.Echo "GUID: " & objItem.GUIDWscript.Echo "Is front-end server: " & objItem.IsFrontEndServerWscript.Echo "Last modification time: " & _objItem.LastModificationTimeWscript.Echo "Message tracking enabled: " & _objItem.MessageTrackingEnabledWscript.Echo "Message tracking log file lifetime: " & _objItem.MessageTrackingLogFileLifetimeWscript.Echo "Message tracking log file path: " & _objItem.MessageTrackingLogFilePathWscript.Echo "Monitoring enabled: " & objItem.MonitoringEnabledWscript.Echo "MTA data path: " & objItem.MTADataPathWscript.Echo "Name: " & objItem.NameWscript.Echo "Routing group: " & objItem.RoutingGroupWscript.Echo "Subject logging enabled: " & _objItem.SubjectLoggingEnabledWscript.Echo "Type: " & objItem.TypeWscript.EchoNext
This is a VB Script, this can be used by saving the file in .vbs file