Lists cluster resource 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 ExchangeClusterResource")For Each objItem in colItemsWscript.Echo "Name: " & objItem.NameWscript.Echo "Owner: " & objItem.OwnerWscript.Echo "State: " & objItem.StateWscript.Echo "Type: " & objItem.TypeWscript.Echo "Virtual machine: " & objItem.VirtualMachineWscript.EchoNext
This is a VB Script, this can be used by saving the file in .vbs file