Previous Page
Next Page

Working with the Exchange Provider

When Exchange 2003 is installed, it creates the MicrosoftExchangeV2 namespace that resides under the root WMI namespace. This is a rich namespace that covers a wide range of resouce management and data management scenarios. Changes to the MicrosoftExchangeV2 namespace for Exchange 2003 are detailed in Table 20-1.

Table 20-1. Changes to the Exchange WMI namespace

WMI class

Changes in Exchange 2003

ExchangeClusterResource

No changes.

ExchangeConnectorState

No changes.

ExchangeLink

No changes. Additional capabilities are provided in the new Exchange_Link class.

ExchangeQueue

No changes. Additional capabilities are provided in the new Exchange_Queue class.

ExchangeServerState

No changes. Additional capabilities are provided in the new Exchange_Server class.

Exchange_DSAccessDC

No changes.

Exchange_FolderTree

New class.

Exchange_Link

New class.

Exchange_Logon

New class.

Exchange_Mailbox

New class.

Exchange_MessageTrackingEntry

Additional message-tracking entry-type values were added to provide more detailed tracking of internal message-transfer events.

Exchange_PublicFolder

New class.

Exchange_Queue

New class.

Exchange_QueueCacheReloadEvent

New class.

Exchange_QueuedMessage

New class.

Exchange_QueuedSMTPMessage

New class.

Exchange_QueuedX400Message

New class.

Exchange_QueueSMTPVirtualServer

New class.

Exchange_QueueVirtualServer

New class.

Exchange_QueueX400VirtualServer

New class.

Exchange_ScheduleInterval

New class.

Exchange_Server

New class.

Exchange_SMTPLink

New class.

Exchange_SMTPQueue

New class.

Exchange_X400Link

New class.

Exchange_X400Queue

New class.


Just the Steps

To query the Exchange_QueueSMTPVirtualServer class

1.
Create a variable to hold the connection into the \root\MicrosoftExchangeV2 namespace.

2.
Use the ExecQuery method to select * from Exchange_QueueSMTPVirtualServer.

3.
Use For Each...Next to iterate through the returned collection.

4.
Use WScript.Echo to echo out the important properties.



Previous Page
Next Page