WMI methods (calling with IWbemServices::ExecMethod) error handling: If a call to IWbemServices::ExecMethod() returns a failed HRESULT, then extended status information may be obtained by calling GerErrorInfo() and calling IErrorInfo::QueryInterface() to get the IWbemClassObject that is an instance of __ExtendedStatus, which has StatusCode and Description properties that can provide extended error information.
The __ExtendedStatus::StatusCodes are listed in the following table:
Symbol Hex/Dec Values |
Description |
---|---|
MDLAPI_E_INVALID_PARAMETER 0xC1FF0001 / -1040252927 |
Parameter is not valid. |
MDLAPI_E_INVALID_OBJECT_PATH 0xC1FF0002 / -1040252926 |
Not a valid object path syntax. A syntax error occurred at the specified offset. |
MDLAPI_E_INVALID_CLASS 0xC1FF0003 / -1040252925 |
Methods of the class are not implemented. |
MDLAPI_E_METHOD_NOT_IMPLEMENTED 0xC1FF0004 / -1040252924 |
Method of the class is not implemented. |
MDLAPI_E_NOT_CLASS_METHOD 0xC1FF0005 / -1040252923 |
Method is not a class method of the class. You should specify the instance of the class. |
MDLAPI_E_GET_OUT_PARAMETERS 0xC1FF0006 / -1040252922 |
Out parameters for the method could not be retrieved. |
MDLAPI_E_PARAMETER_MISSING 0xC1FF0007 / -1040252921 |
Mandatory parameter is not specified. |
MDLAPI_E_INVALID_PARAMETER_TYPE 0xC1FF0008 / -1040252920 |
Parameter has an invalid type. |
MDLAPI_E_EXECQUERY_INTERNAL 0xC1FF0009 / -1040252919 |
Internal error when executing the query. |
MDLAPI_E_PROPERTY_MISSING 0xC1FF000A / -1040252918 |
Property is not set. |
MDLAPI_E_INVALID_PROPERTY 0xC1FF000B / -1040252917 |
Property is not valid. |
MDLAPI_E_UNEXPECTED_ERROR 0xC1FF000C / -1040252916 |
Unexpected error occurred. Check trace file to get more information. |
MDLAPI_E_LICENSE_MISSING 0xC1FF000D / -1040252915 |
Specified operation cannot be executed because of missing licenses. |
MDLAPI_E_INVALID_CAPTION 0xC1FF000E / -1040252914 |
Specified object Caption parameter is not valid. |
MDLAPI_E_INVALID_NODE_PROPERTY 0xC1FF000F / -1040252913 |
Property is not valid for specified node. |
MDLAPI_E_INVALID_CONFIG_VALUE 0xC1FF0010 / -1040252912 |
Configuration value is not valid. |
MDLAPI_E_NODE_NOT_EXIST 0xC1FF0011 / -1040252911 |
Node does not exist. |
MDLAPI_E_NODE_NAME_EXISTS 0xC1FF0012 / -1040252910 |
Node with the same Name already exists. |
MDLAPI_E_NODE_PNNAME_EXISTS 0xC1FF0013 / -1040252909 |
Node with the same Primary Node Name already exists. |
MDLAPI_E_NODE_PNNAME_NOT_UNIQUE 0xC1FF0014 / -1040252908 |
More than one node with the specified Primary Node Name is found. |
MDLAPI_E_NODE_DISCOVERY_FAILED 0xC1FF0015 / -1040252907 |
Discovery of the node type failed. |
MDLAPI_E_NODE_IS_MANAGEMENT_SERVER 0xC1FF0016 / -1040252906 |
Management server cannot be removed. |
MDLAPI_E_NODE_HIERPATH_EXISTS 0xC1FF0017 / -1040252905 |
Node with the same hierarchy path (Caption) already exists. |
MDLAPI_E_NODE_PLATFORM_MATCHING 0xC1FF0018 / -1040252904 |
Node platform matching failed. |
MDLAPI_E_NODE_OSBITS_NOT_EXIST 0xC1FF0019 / -1040252903 |
You must specify the OSBits parameter when the OS type cannot be discovered. |
MDLAPI_E_NODE_OSBITS_NOT_MATCH 0xC1FF001A / -1040252902 |
OSBits parameter does not match any supported OS types. |
MDLAPI_E_PARENT_NODEGROUP_NOT_EXIST 0xC1FF0020 / -1040252896 |
Parent node group does not exist. |
MDLAPI_E_NODEGROUP_NOT_EXIST 0xC1FF0021 / -1040252895 |
Node Group does not exist. |
MDLAPI_E_NODEGROUP_NAME_EXISTS 0xC1FF0022 / -1040252894 |
Node Group with the same Name already exists. |
MDLAPI_E_NODEGROUP_HIERPATH_EXISTS 0xC1FF0023 / -1040252893 |
Node Group with the same hierarchy path (Caption) already exists. |
MDLAPI_E_NODEGROUP_IS_ROOT 0xC1FF0024 / -1040252892 |
Root Node Group cannot be removed from or added to another node group. |
MDLAPI_E_NODEGROUP_IS_SPECIAL_GROUP 0xC1FF0025 / -1040252891 |
Special Node Group cannot be removed from or added to another node group. |
MDLAPI_E_NODEGROUP_SPECIAL_ADD 0xC1FF0026 / -1040252890 |
Child cannot be added to a special node group. |
MDLAPI_E_NODEGROUP_SPECIAL_REMOVE 0xC1FF0027 / -1040252889 |
Child cannot be removed from a special node group. |
MDLAPI_E_NODEGROUP_IS_ALREADY_PARENT 0xC1FF0028 / -1040252888 |
Node group already has a parent with the same name. |
MDLAPI_E_ADPOLGROUP_NOT_EXIST 0xC1FF0031 / -1040252879 |
Auto Deploy Policy Group does not exist. |
MDLAPI_E_ADPOLGROUP_NAME_EXISTS 0xC1FF0032 / -1040252878 |
Auto Deploy Policy Group with the same Name already exists. |
MDLAPI_E_ADPOLGROUP_HIERPATH_EXISTS 0xC1FF0033 / -1040252877 |
Auto Deploy Policy Group with the same hierarchy path already exists. |
MDLAPI_E_REPORT_NOT_EXIST 0xC1FF0041 / -1040252863 |
Report does not exist. |
MDLAPI_E_REPORT_PROP_NOT_VALID 0xC1FF0042 / -1040252862 |
Report properties (ReportFamily and ReportCategory) are not valid. |
MDLAPI_E_NO_REPORT_INTEGRATION 0xC1FF0043 / -1040252861 |
Reporter integration tool is not installed. |
MDLAPI_E_GRAPH_NOT_EXIST 0xC1FF0051 / -1040252847 |
Graph does not exist. |
MDLAPI_E_GRAPH_PROP_NOT_VALID 0xC1FF0052 / -1040252846 |
Graph properties (GraphFamily and GraphCategory) are not valid. |
MDLAPI_E_NO_GRAPH_INTEGRATION 0xC1FF0053 / -1040252845 |
Performance Manager integration tool is not installed. |
MDLAPI_E_TOOL_NOT_EXIST 0xC1FF0061 / -1040252831 |
Tool does not exist. |
MDLAPI_E_TOOL_NAME_EXISTS 0xC1FF0062 / -1040252830 |
Tool with the same Name already exists. |
MDLAPI_E_TOOL_HIERPATH_EXISTS 0xC1FF0063 / -1040252829 |
Tool with the same Caption is already a child of the parent tool group. |
MDLAPI_E_PARENT_TOOLGROUP_NOT_EXIST 0xC1FF0070 / -1040252816 |
Parent Tool Group does not exist. |
MDLAPI_E_TOOLGROUP_NOT_EXIST 0xC1FF0071 / -1040252815 |
Tool Group does not exist. |
MDLAPI_E_TOOLGROUP_NAME_EXISTS 0xC1FF0072 / -1040252814 |
Tool Group with the same Name already exists. |
MDLAPI_E_TOOLGROUP_HIERPATH_EXISTS 0xC1FF0073 / -1040252813 |
Tool Group with the same hierarchy path (Caption) already exists. |
MDLAPI_E_TOOLGROUP_IS_ROOT 0xC1FF0074 / -1040252812 |
Root Tool Group cannot be removed from or added to another tool group. |
MDLAPI_E_TOOLGROUP_IS_ALREADY_PARENT 0xC1FF0075 / -1040252811 |
Tool group already has a parent with the same name. |
MDLAPI_E_TRANSACTION_NOT_EXIST 0xC1FF0081 / -1040252799 |
Transaction with the specified ID does not exist. |
MDLAPI_E_SERVICE_NOT_EXIST 0xC1FF0091 / -1040252783 |
Service does not exist. |
MDLAPI_E_SERVICE_HIERPATH_EXISTS 0xC1FF0092 / -1040252782 |
Service with the same Caption is already a child of the parent service. |
MDLAPI_E_PARENT_SERVICE_NOT_EXIST 0xC1FF0093 / -1040252781 |
Parent Service does not exist. |
MDLAPI_E_SERVICE_NAME_EXISTS 0xC1FF0094 / -1040252780 |
Service with the same Name already exists. |
MDLAPI_E_SERVICE_IS_ROOT 0xC1FF0095 / -1040252779 |
Specified operation cannot be executed for the root service. |
MDLAPI_E_SERVICE_HOSTED_ON_NODEGROUP 0xC1FF0096 / -1040252778 |
Service is hosted on a node group. The operation cannot be executed. |
MDLAPI_E_SERVICETYPE_NOT_VALID 0xC1FF0097 / -1040252777 |
Service type is not valid. |
MDLAPI_E_SERVICE_IS_ALREADY_PARENT 0xC1FF0098 / -1040252776 |
Service already has a parent with the same Name. |
MDLAPI_E_SERVICETYPE_NOT_EXIST 0xC1FF00A1 / -1040252767 |
Service type does not exist. |
MDLAPI_E_SERVICETYPE_HIERPATH_EXISTS 0xC1FF00A2 / -1040252766 |
Service type with the same Caption is already a child of the parent service type. |
MDLAPI_E_PARENT_SERVICETYPE_NOT_EXIST 0xC1FF00A3 / -1040252765 |
Parent Service type does not exist. |
MDLAPI_E_SERVICETYPE_GUID_EXISTS 0xC1FF00A4 / -1040252764 |
Service type with the same GUID already exists. |
MDLAPI_E_SERVICETYPE_IS_ROOT 0xC1FF00A5 / -1040252763 |
Specified operation cannot be executed for the root service type. |
MDLAPI_E_SERVICETYPE_CANNOT_REMOVE 0xC1FF00A6 / -1040252762 |
Service type cannot be removed because another object or association uses it. |
MDLAPI_E_CALCRULE_NOT_EXIST 0xC1FF00B1 / -1040252751 |
Calculation rule does not exist. |
MDLAPI_E_CALCRULE_CAPTION_EXIST 0xC1FF00B2 / -1040252750 |
Calculation rule with the same Caption already exists. |
MDLAPI_E_CALCRULE_SETTINGID_EXISTS 0xC1FF00B3 / -1040252749 |
Calculation rule with the same SettingId already exists. |
MDLAPI_E_CALCRULE_CANNOT_REMOVE 0xC1FF00B4 / -1040252748 |
Calculation rule cannot be removed because another object or association uses it. |
MDLAPI_E_CALCRULE_CAPTION_NOT_UNIQUE 0xC1FF00B5 / -1040252747 |
More than one calculation rule with the specified Caption is found. |
MDLAPI_E_PROPRULE_NOT_EXIST 0xC1FF00C1 / -1040252735 |
Message propagation rule does not exist. |
MDLAPI_E_PROPRULE_SETTINGID_EXISTS 0xC1FF00C2 / -1040252734 |
Propagation rule with the same SettingId already exists. |
MDLAPI_E_PROPRULE_CAPTION_EXIST 0xC1FF00C3 / -1040252733 |
Propagation rule with the same Caption already exists. |
MDLAPI_E_PROPRULE_CANNOT_REMOVE 0xC1FF00C4 / -1040252732 |
Propagation rule cannot be removed because another object or association uses it. |
MDLAPI_E_PROPRULE_CAPTION_NOT_UNIQUE 0xC1FF00C5 / -1040252731 |
More than one propagation rule with the specified Caption is found. |
MDLAPI_E_ADPACKAGE_NOT_EXIST 0xC1FF00D1 / -1040252719 |
Auto Deploy Package does not exist. |
MDLAPI_E_EXT_NODE_NOT_EXIST 0xC1FF00E1 / -1040252703 |
External node does not exist. |
MDLAPI_E_EXT_NODE_HIERPATH_EXISTS 0xC1FF00E2 / -1040252702 |
External node with the same hierarchy path (Caption) already exists. |
MDLAPI_E_EXT_NODE_NAME_EXISTS 0xC1FF00E3 / -1040252701 |
External node with the same Name already exists. |
MDLAPI_E_SVC_COMP_ASSOC_NOT_EXIST 0xC1FF00F1 / -1040252687 |
Service composition does not exist. |
MDLAPI_E_SVC_DEP_ASSOC_NOT_EXIST 0xC1FF00F2 / -1040252686 |
Service dependency does not exist. |
MDLAPI_E_SVC_TYPE_COMP_ASSOC_NOT_EXIST 0xC1FF00F3 / -1040252685 |
Service type composition does not exist. |
MDLAPI_E_SVC_TYPE_DEP_ASSOC_NOT_EXIST 0xC1FF00F4 / -1040252684 |
Service type dependency does not exist. |
MDLAPI_E_SVC_DEP_CYCLE_DETECTED 0xC1FF00F5 / -1040252683 |
Specified operation cannot be executed because a service dependency cycle has been detected. |
MDLAPI_E_SVC_TYPE_DEP_CYCLE_DETECTED 0xC1FF00F6 / -1040252682 |
Specified operation cannot be executed because a service type dependency cycle has been detected. |
MDLAPI_E_TRANS_INDICATE_FAILED 0xC1FF0101 / -1040252671 |
An error occurred when trying to return output parameters. |
MDLAPI_E_TRANS_INDICATE_FAILED1 0xC1FF0102 / -1040252670 |
Error WBEM_E_SERVER_TOO_BUSY occurred when trying to return output parameters. |
MDLAPI_E_TRANS_INDICATE_FAILED2 0xC1FF0103 / -1040252669 |
Error WBEM_E_FAILED occurred when trying to return output parameters. |
MDLAPI_E_TRANS_INDICATE_FAILED3 0xC1FF0104 / -1040252668 |
Error WBEM_E_CALL_CANCELLED occurred when trying to return output parameters. |
MDLAPI_E_TRANS_INDICATE_FAILED4 0xC1FF0105 / -1040252667 |
Error WBEM_E_INVALID_PARAMETER occurred when trying to return output parameters. |
MDLAPI_E_TRANS_INIT 0xC1FF0106 / -1040252666 |
Transaction cannot be initialized. |
MDLAPI_E_TRANS_METHOD_NOTSUPPORTED 0xC1FF0107 / -1040252665 |
Specified method is not yet supported. |
MDLAPI_E_TRANS_INVALID_CLASS 0xC1FF0108 / -1040252664 |
Specified class is not supported. |
MDLAPI_E_INVALID_KEY_PROP 0xC1FF0109 / -1040252663 |
Specified class does not have the key property %2. |
MDLAPI_E_TOO_MANY_KEY_PROP 0xC1FF010A / -1040252662 |
Class can have only key property(s). |
MDLAPI_E_NOT_INSTANCE_OBJECT_PATH 0xC1FF010B / -1040252661 |
Object path is not an instance of the WMI class. |
MDLAPI_E_CONFIGFILEVAR_APP_NOT_EXIST 0xC1FF0121 / -1040252639 |
Specified Application does not exist. |
MDLAPI_E_CONFIGFILEVAR_SUBGRP_NOT_EXIST 0xC1FF0122 / -1040252638 |
Specified Application does not have such a SubGroup. |
MDLAPI_E_CONFIGFILEVAR_FNAME_NOT_EXIST 0xC1FF0123 / -1040252637 |
Specified SubGroup does not have such a Filename. |
MDLAPI_E_CONFIGFILEVAR_SUBGRP_NOT_EMPTY 0xC1FF0124 / -1040252636 |
Specified SubGroup has one or more Filenames. |
MDLAPI_E_CONFIGFILEVAR_TEMPL_NOT_EXIST 0xC1FF0125 / -1040252635 |
Variety does not have the associated template. |
MDLAPI_E_CONFIGFILEVAR_TEMPL_NOT_ALLOW 0xC1FF0126 / -1040252634 |
Template is not allowed for this variety. |
MDLAPI_E_CONFIGFILEVAR_TEMPL_FILENAME 0xC1FF0127 / -1040252633 |
String '<*>' cannot be used as the Filename. |
MDLAPI_E_NO_OPERATION_RIGHTS 0xC1FF0131 / -1040252623 |
User has no rights to execute this operation. |