Programming Issues
If an error is displayed while you are using an SMS script or tool, the error might include WMI-related details, such as an error code or number. Table B.5 lists the most common WMI errors. The description for each error might give you a better understanding of the problem so that you can correct the underlying cause. For less common WMI error messages, see the WMI SDK.
Table B.5 WMI Error Messages
Error code |
Error number |
Description |
---|---|---|
WBEM_E_FAILED |
0x80041001 |
The call failed. |
WBEM_E_NOT_FOUND |
0x80041002 |
The object could not be found. |
WBEM_E_ACCESS_DENIED |
0x80041003 |
The current user does not have permission to perform the action. |
WBEM_E_PROVIDER_FAILURE |
0x80041004 |
The provider has failed at some time other than during initialization. |
WBEM_E_TYPE_MISMATCH |
0x80041005 |
A type mismatch occurred. |
WBEM_E_OUT_OF_MEMORY |
0x80041006 |
There was not enough memory for the operation. |
WBEM_E_INVALID_CONTEXT |
0x80041007 |
The IWbemContext object is not valid. |
WBEM_E_INVALID_PARAMETER |
0x80041008 |
One of the parameters to the call is not correct. |
WBEM_E_NOT_AVAILABLE |
0x80041009 |
The resource, typically a remote server, is not currently available. |
WBEM_E_CRITICAL_ERROR |
0x8004100A |
An internal, critical, and unexpected error occurred. Report this error to Microsoft Product Support Services. |
WBEM_E_INVALID_STREAM |
0x8004100B |
One or more network packets were corrupted during a remote session. |
WBEM_E_NOT_SUPPORTED |
0x8004100C |
The feature or operation is not supported. |
WBEM_E_INVALID_SUPERCLASS |
0x8004100D |
The superclass specified is not valid. |
WBEM_E_INVALID_NAMESPACE |
0x8004100E |
The namespace specified could not be found. |
WBEM_E_INVALID_OBJECT |
0x8004100F |
The specified instance is not valid. |
WBEM_E_INVALID_CLASS |
0x80041010 |
The specified class is not valid. |
WBEM_E_PROVIDER_NOT_FOUND |
0x80041011 |
A provider referenced in the schema does not have a corresponding registration. |
WBEM_E_INITIALIZATION_FAILURE |
0x80041014 |
A component, such as a provider, failed to initialize for internal reasons. |
WBEM_E_TRANSPORT_FAILURE |
0x80041015 |
A networking error that prevents normal operation has occurred. |
WBEM_E_INVALID_OPERATION |
0x80041016 |
The requested operation is not valid. This error usually applies to invalid attempts to delete classes or properties. |
WBEM_E_INVALID_QUERY |
0x80041017 |
The query was not syntactically valid. |
WBEM_E_INVALID_QUERY_TYPE |
0x80041018 |
The requested query language is not supported. |
For More Information
Did you find this information useful? Please send your suggestions and comments about the documentation to smsdocs@microsoft.com.