Scripting: ExchangeClusterResource Class – Reply from Alain Lissoir

The ClusApi.h file, which is part of the PlatformSDK should contain this…

typedef enum CLUSTER_RESOURCE_STATE {
ClusterResourceStateUnknown = -1,
ClusterResourceInherited = 0,
ClusterResourceInitializing = 1,
ClusterResourceOnline = 2,
ClusterResourceOffline = 3,
ClusterResourceFailed = 4,
ClusterResourcePending = 128,
ClusterResourceOnlinePending = 129,
ClusterResourceOfflinePending = 130
} CLUSTER_RESOURCE_STATE;
HTH

Alain is (now) WMI Program Manager at Microsoft and author of :

  1. Understanding Windows Management Instrumentation (WMI) Scripting and
  2. Leveraging Windows Management Instrumentation (WMI) Scripting

Two of the best references on WMI. He also writes for Windows Scripting Solutions newsletter (published by Penton Media, the publishers of Windows IT Pro & SQL Server magazines).

Written by

Bharat Suneja

Leave a Comment

Your email address will not be published. Required fields are marked *