使用些脚本可以在运行Exchange 2003的计算机中列出Exchange虚拟服务器的队列信息。
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & _
"\ROOT\MicrosoftExchangeV2")
Set colItems = objWMIService.ExecQuery _
("Select * from Exchange_QueueVirtualServer")
For Each objItem in colItems
Wscript.Echo "Global actions supported: " & _
objItem.GlobalActionsSupported
Wscript.Echo "Global stop: " & objItem.GlobalStop
Wscript.Echo "Protocol name: " & objItem.ProtocolName
Wscript.Echo "Virtual machine: " & objItem.VirtualMachine
Wscript.Echo "Virtual server name: " & _
objItem.VirtualServerName
Wscript.Echo
Next