WMI PowerShell for Exchange 2003

As a quick follow-up for the Exchange 2000/2003 PowerShell post here are a few additional references.

TechNet Script Center has a good article on WMI classes available:

To use a class in PowerShell use Get-WMIObject. For example, to get queue information run:

Get-WmiObject -ComputerName YourExchangeServer -Class Exchange_Queue

Or if you are running the script locally on Exchange server just:

Get-WmiObject -Class Exchange_Queue

To add a node with Exchange 2003 queues to PowerGUI:

  1. In PowerGUI, right-click the folder where you want to add it, and click New / Node on the shortcut menu.
  2. Type in the name you want the node to have (e.g. Exchange Queues)
  3. Pick Get-WmiObject from the Command drop-down list.
  4. Type the actual class as the Class parameter (e.g. Exchange_Queue)
  5. If running remotely, specify the Exchange server name as the Computer Name:

Adding WMI Exchange 2003 Node to PowerGUI

As result you will get a UI like the one Nicolas created for his Exchange 2003 environment.

Here’s a list of WMI classes available (linked to their respective MSDN pages):

ExchangeClusterResource Class
ExchangeConnectorState Class
ExchangeLink Class
ExchangeQueue Class
ExchangeServerState Class
Exchange_DSAccessDC Class
Exchange_FolderTree Class
Exchange_Link Class
Exchange_Logon Class
Exchange_Mailbox Class
Exchange_MessageTrackingEntry Class
Exchange_PublicFolder Class
Exchange_Queue Class
Exchange_QueueCacheReloadEvent Class
Exchange_QueuedMessage Class
Exchange_QueuedSMTPMessage Class
Exchange_QueuedX400Message Class
Exchange_QueueSMTPVirtualServer Class
Exchange_QueueVirtualServer Class
Exchange_QueueX400VirtualServer Class
Exchange_ScheduleInterval Class
Exchange_Server Class
Exchange_SMTPLink Class
Exchange_SMTPQueue Class
Exchange_X400Link Class
Exchange_X400Queue Class

Note that they will not work for Exchange 2007. WMI is no longer supported there but the good news that PowerShell provides you much more.

Tags: , , ,

Leave a comment




Legal

The posts on this blog are provided “as is” with no warranties and confer no rights. The opinions expressed on this site are mine and mine alone, and do not necessarily represent those of my employer - WSO2 or anyone else for that matter. All trademarks acknowledged.

© 2007-2014 Dmitry Sotnikov

September 2007
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930