Sei sulla pagina 1di 13
©2010 Microsoft Corporation. All rights reserved.

©2010 Microsoft Corporation. All rights reserved.

WMI Error Constants

If an error occurs, WMI returns an error code as an HRESULT value. These codes may be returned by scripts, C++ applications, or Wmic [ http://msdn.microsoft.com/en-us/library/aa394531(VS.85).aspx ] .

Note If WMI returns error messages, be aware that they may not indicate problems in the WMI service or in WMI providers. Failures can originate in other parts of the operating system and emerge as errors through WMI. Under any circumstances, do not delete the WMI repository as a first action because deleting the repository can cause damage to the system or to installed applications.

To obtain more information about the source of the problem, you can download and run the WMI Diagnosis Utility [ http://go.microsoft.com/FWLink/?LinkId=84435 ] diagnostic command line tool. This tool produces a report that can usually isolate the source of the problem and provide instructions on how to fix it. The report also aids Microsoft support services in assisting you. You can download the WMI Diagnosis Utility here [ http://go.microsoft.com/FWLink/?LinkId=84419 ] .

Some methods in WMI classes can return system and network error codes (64 for example). You can check the definition of these types of error codes by using the net helpmsg command in the command prompt window. For example, the command net helpmsg 64 returns the message: The specified network name is no longer available.

The following table lists some common ranges of errors.

Term Description 0x80005xxx Error originating from ADSI (Active Directory Service Interfaces) or LDAP (Lightweight
Term
Description
0x80005xxx
Error originating from ADSI (Active Directory Service Interfaces) or LDAP (Lightweight
Directory Access Protocol), for example, an Active Directory access failure when using
the WMI Active Directory providers.

Some methods in WMI classes can return system and network error codes (64 for example). You can check the

definition of these types of error codes by using the net helpmsg command in the command prompt window. For example, the command net helpmsg 64 returns the message: The specified network name is no longer available.

In C++, you can call FormatMessage

specify C:\Windows\System32\wbem\wmiutils.dll as the message module.

[ http://msdn.microsoft.com/en-us/library/ms679351(VS.85).aspx ] and

Windows 2000, Windows NT 4.0, and Windows Me/98/95: Use C:\Winnt\System32 \wbem\wbemcomn.dll as the message module.
Windows 2000, Windows NT 4.0, and Windows Me/98/95: Use C:\Winnt\System32
\wbem\wbemcomn.dll as the message module.
Constant/value
Description

WBEM_E_TYPE_MISMATCH

2147749893 (0x80041005)

Type mismatch occurred.

WBEM_E_OUT_OF_MEMORY Not enough memory for the operation. 2147749894 (0x80041006) WBEM_E_INVALID_CONTEXT 2147749895
WBEM_E_OUT_OF_MEMORY
Not enough memory for the operation.
2147749894
(0x80041006)
WBEM_E_INVALID_CONTEXT
2147749895
(0x80041007)
The IWbemContext
[ http://msdn.microsoft.com/en-
us/library/aa391465(VS.85).aspx ] object is not
valid.
WBEM_E_INVALID_PARAMETER
One of the parameters to the call is not correct.
2147749896
(0x80041008)
WBEM_E_NOT_AVAILABLE
2147749897
(0x80041009)
Resource, typically a remote server, is not currently
available.
WBEM_E_CRITICAL_ERROR
2147749898
(0x8004100A)
Internal, critical, and unexpected error occurred.
Report the error to Microsoft Technical Support.
WBEM_E_INVALID_STREAM
2147749899
(0x8004100B)
One or more network packets were corrupted during
a remote session.
WBEM_E_NOT_SUPPORTED
Feature or operation is not supported.
2147749900
(0x8004100C)
WBEM_E_INVALID_SUPERCLASS
Parent class specified is not valid.
2147749901
(0x8004100D)
WBEM_E_INVALID_NAMESPACE
Namespace specified cannot be found.
2147749902
(0x8004100E)
WBEM_E_INVALID_OBJECT
Specified instance is not valid.
2147749903
(0x8004100F)
WBEM_E_INVALID_CLASS
Specified class is not valid.
2147749904
(0x80041010)
WBEM_E_PROVIDER_NOT_FOUND
2147749905
(0x80041011)
Provider referenced in the schema does not have a
corresponding registration.
WBEM_E_INVALID_PROVIDER_REGISTRATION
2147749906
Provider referenced in the schema has an incorrect
or incomplete registration.
This error may be caused by many conditions,
including the following:
A missing
#pragma namespace
[
http://msdn.microsoft.com/en-
us/library/aa392754(VS.85).aspx ] command in
the Managed Object Format (MOF) file used to
register the provider. The provider may be
registered in the wrong WMI namespace.
Failure to retrieve the COM registration.
Invalid hosting model. For more information, see
Provider Hosting and Security
[
http://msdn.microsoft.com/en-
us/library/aa392783(VS.85).aspx ] .
An invalid class specified in the registration.
Failure to create an instance of or inherit from
the
Win32Provider
[
http://msdn.microsoft.com/en-
us/library/aa394688(VS.85).aspx ] class to
create the provider registration in the MOF file.

WBEM_E_PROVIDER_LOAD_FAILURE

2147749907 (0x80041013)

COM cannot locate a provider referenced in the schema.

This error may be caused by many conditions, including the following:

Provider is using a WMI DLL that does not match the .lib file used when

Provider is using a WMI DLL that does not match the .lib file used when the provider was built.Provider's DLL, or any of the DLLs on which it depends, is corrupt. Provider failed

Provider's DLL, or any of the DLLs on which it depends, is corrupt.not match the .lib file used when the provider was built. Provider failed to export DllRegisterServer

Provider failed to exportDLL, or any of the DLLs on which it depends, is corrupt. DllRegisterServer [ http://msdn.microsoft.com/en-

DllRegisterServer

[ http://msdn.microsoft.com/en- us/library/ms682162(VS.85).aspx ] .

In-process provider was not registered using the regsvr32 command. regsvr32 command.

Out-of-process provider was not registered using the /regserver switch. For example, myprog.exe /regserver . /regserver switch. For example, myprog.exe /regserver.

WBEM_E_INITIALIZATION_FAILURE

Component, such as a provider, failed to initialize for internal reasons.

2147749908

(0x80041014)

WBEM_E_TRANSPORT_FAILURE

Networking error that prevents normal operation has occurred.

2147749909

(0x80041015)

WBEM_E_INVALID_OPERATION

Requested operation is not valid. This error usually applies to invalid attempts to delete classes or properties.

2147749910

(0x80041016)

WBEM_E_INVALID_QUERY

Query was not syntactically valid.

2147749911

(0x80041017)

WBEM_E_INVALID_QUERY_TYPE

Requested query language is not supported.

2147749912

(0x80041018)

WBEM_E_ALREADY_EXISTS

In a put operation, the wbemChangeFlagCreateOnly flag was specified, but the instance already exists.

2147749913

(0x80041019)

WBEM_E_OVERRIDE_NOT_ALLOWED

Not possible to perform the add operation on this qualifier because the owning object does not permit overrides.

2147749914

(0x8004101A)

WBEM_E_PROPAGATED_QUALIFIER

User attempted to delete a qualifier that was not owned. The qualifier was inherited from a parent class.

2147749915

(0x8004101B)

WBEM_E_PROPAGATED_PROPERTY

User attempted to delete a property that was not owned. The property was inherited from a parent class.

2147749916

(0x8004101C)

WBEM_E_UNEXPECTED

Client made an unexpected and illegal sequence of calls, such as calling EndEnumeration [ http://msdn.microsoft.com/en-
Client made an unexpected and illegal sequence of
calls, such as calling EndEnumeration
[
http://msdn.microsoft.com/en-
us/library/aa391440(VS.85).aspx ] before calling
BeginEnumeration
[
http://msdn.microsoft.com/en-
us/library/aa391434(VS.85).aspx ] .

2147749917

(0x8004101D)

WBEM_E_ILLEGAL_OPERATION

User requested an illegal operation, such as spawning a class from an instance.

2147749918

(0x8004101E)

WBEM_E_CANNOT_BE_KEY

Illegal attempt to specify a key qualifier on a property that cannot be a key. The keys are specified in the class definition for an object and cannot be altered on a per-instance basis.

2147749919

(0x8004101F)

WBEM_E_INCOMPLETE_CLASS

Current object is not a valid class definition. Either it is incomplete or it has
Current object is not a valid class definition. Either it
is incomplete or it has not been registered with WMI
using
SWbemObject.Put_
[
http://msdn.microsoft.com/en-
us/library/aa393783(VS.85).aspx ] .

2147749920

(0x80041020)

SWbemObject.Put_ [ http://msdn.microsoft.com/en- us/library/aa393783(VS.85).aspx ] . 2147749920 (0x80041020)
SWbemObject.Put_ [ http://msdn.microsoft.com/en- us/library/aa393783(VS.85).aspx ] . 2147749920 (0x80041020)

WBEM_E_INVALID_SYNTAX

2147749921 (0x80041021)

Query is syntactically not valid.

WBEM_E_NONDECORATED_OBJECT

Reserved for future use.

2147749922

(0x80041022)

WBEM_E_READ_ONLY

An attempt was made to modify a read-only property.

2147749923

(0x80041023)

WBEM_E_PROVIDER_NOT_CAPABLE

Provider cannot perform the requested operation. This can include a query that is too complex, retrieving an instance, creating or updating a class, deleting a class, or enumerating a class.

2147749924

(0x80041024)

WBEM_E_CLASS_HAS_CHILDREN

Attempt was made to make a change that invalidates a subclass.

2147749925

(0x80041025)

WBEM_E_CLASS_HAS_INSTANCES

Attempt was made to delete or modify a class that has instances.

2147749926

(0x80041026)

WBEM_E_QUERY_NOT_IMPLEMENTED

Reserved for future use.

2147749927

(0x80041027)

WBEM_E_ILLEGAL_NULL

Value of Nothing/NULL was specified for a property that must have a value, such as
Value of Nothing/NULL was specified for a property
that must have a value, such as one that is marked
by a Key [ http://msdn.microsoft.com/en-
us/library/aa392157(VS.85).aspx ] , Indexed
[ http://msdn.microsoft.com/en-
us/library/aa392729(VS.85).aspx ] , or Not_Null
qualifier.

2147749928

(0x80041028)

WBEM_E_INVALID_QUALIFIER_TYPE

2147749929

Variant value for a qualifier was provided that is not

 

(0x80041029)

a

legal qualifier type.

WBEM_E_INVALID_PROPERTY_TYPE

CIM type specified for a property is not valid.

2147749930

(0x8004102A)

WBEM_E_VALUE_OUT_OF_RANGE

2147749931

Request was made with an out-of-range value or it

 

(0x8004102B)

is

incompatible with the type.

WBEM_E_CANNOT_BE_SINGLETON

Illegal attempt was made to make a class singleton, such as when the class is derived from a non- singleton class.

2147749932

(0x8004102C)

WBEM_E_INVALID_CIM_TYPE

CIM type specified is invalid.

2147749933

(0x8004102D)

WBEM_E_INVALID_METHOD

Requested method is not available.

2147749934

(0x8004102E)

WBEM_E_INVALID_METHOD_PARAMETERS

Parameters provided for the method are not valid.

2147749935

(0x8004102F)

WBEM_E_SYSTEM_PROPERTY

There was an attempt to get qualifiers on a system property.

2147749936

(0x80041030)

WBEM_E_INVALID_PROPERTY

Property type is not recognized.

2147749937

(0x80041031)

WBEM_E_CALL_CANCELLED

Asynchronous process has been canceled internally or by the user. Note that due to the timing and nature of the asynchronous operation, the operation may not have been truly canceled.

2147749938

(0x80041032)

WBEM_E_SHUTTING_DOWN

User has requested an operation while WMI is in the process of shutting down.

2147749939

(0x80041033)

WBEM_E_PROPAGATED_METHOD

Attempt was made to reuse an existing method name from a parent class and the signatures do not

2147749940

(0x80041034)

match. WBEM_E_UNSUPPORTED_PARAMETER 2147749941 (0x80041035) One or more parameter values, such as a query text, is
match.
WBEM_E_UNSUPPORTED_PARAMETER
2147749941
(0x80041035)
One or more parameter values, such as a query
text, is too complex or unsupported. WMI is
therefore requested to retry the operation with
simpler parameters.
WBEM_E_MISSING_PARAMETER_ID
Parameter was missing from the method call.
2147749942
(0x80041036)
WBEM_E_INVALID_PARAMETER_ID
Method parameter has an invalid ID
2147749943
(0x80041037)
[
http://msdn.microsoft.com/en-
us/library/aa393651(VS.85).aspx ] qualifier.
WBEM_E_NONCONSECUTIVE_PARAMETER_IDS
One or more of the method parameters have ID
2147749944
(0x80041038)
[
http://msdn.microsoft.com/en-
us/library/aa393651(VS.85).aspx ] qualifiers that
are out of sequence.
WBEM_E_PARAMETER_ID_ON_RETVAL
Return value for a method has an ID
2147749945
(0x80041039)
[
http://msdn.microsoft.com/en-
us/library/aa393651(VS.85).aspx ] qualifier.
WBEM_E_INVALID_OBJECT_PATH
Specified object path was not valid.
2147749946
(0x8004103A)
WBEM_E_OUT_OF_DISK_SPACE
2147749947
(0x8004103B)
Disk is out of space or the 4 GB limit on WMI
repository (CIM repository) size is reached.
Windows XP and
Windows 2000/NT: Disk is out of
space.
WBEM_E_BUFFER_TOO_SMALL
2147749948
(0x8004103C)
Supplied buffer was too small to hold all of the
objects in the enumerator or to read a string
property.
WBEM_E_UNSUPPORTED_PUT_EXTENSION
2147749949
(0x8004103D)
Provider does not support the requested put
operation.
WBEM_E_UNKNOWN_OBJECT_TYPE
2147749950
(0x8004103E)
Object with an incorrect type or version was
encountered during marshaling.
WBEM_E_UNKNOWN_PACKET_TYPE
2147749951
(0x8004103F)
Packet with an incorrect type or version was
encountered during marshaling.
WBEM_E_MARSHAL_VERSION_MISMATCH
Packet has an unsupported version.
2147749952
(0x80041040)
WBEM_E_MARSHAL_INVALID_SIGNATURE
Packet appears to be corrupt.
2147749953
(0x80041041)
WBEM_E_INVALID_QUALIFIER
2147749954
(0x80041042)
Attempt was made to mismatch qualifiers, such as
putting [key] on an object instead of a property.
WBEM_E_INVALID_DUPLICATE_PARAMETER
Duplicate parameter was declared in a CIM method.
2147749955
(0x80041043)
WBEM_E_TOO_MUCH_DATA
Reserved for future use.
2147749956
(0x80041044)
WBEM_E_SERVER_TOO_BUSY
Call to IWbemObjectSink::Indicate
2147749957
(0x80041045)
[
http://msdn.microsoft.com/en-
us/library/aa391788(VS.85).aspx ] has failed. The
provider can refire the event.
WBEM_E_INVALID_FLAVOR
Specified qualifier flavor was invalid.
2147749958
(0x80041046)

WBEM_E_CIRCULAR_REFERENCE

2147749959 (0x80041047)

Attempt was made to create a reference that is circular (for example, deriving a class from itself).

WBEM_E_UNSUPPORTED_CLASS_UPDATE

Specified class is not supported.

2147749960

(0x80041048)

WBEM_E_CANNOT_CHANGE_KEY_INHERITANCE

Attempt was made to change a key when instances or subclasses are already using the key.

2147749961

(0x80041049)

WBEM_E_CANNOT_CHANGE_INDEX_INHERITANCE

An attempt was made to change an index when instances or subclasses are already using the index.

2147749968

(0x80041050)

WBEM_E_TOO_MANY_PROPERTIES

Attempt was made to create more properties than the current version of the class supports.

2147749969

(0x80041051)

WBEM_E_UPDATE_TYPE_MISMATCH

Property was redefined with a conflicting type in a derived class.

2147749970

(0x80041052)

WBEM_E_UPDATE_OVERRIDE_NOT_ALLOWED

Attempt was made in a derived class to override a qualifier that cannot be overridden.

2147749971

(0x80041053)

WBEM_E_UPDATE_PROPAGATED_METHOD

2147749972

Method was re-declared with a conflicting signature

 

(0x80041054)

in

a derived class.

WBEM_E_METHOD_NOT_IMPLEMENTED

Attempt was made to execute a method not marked with [implemented] in any relevant class.

2147749973

(0x80041055)

WBEM_E_METHOD_DISABLED

Attempt was made to execute a method marked with [disabled].

WBEM_E_REFRESHER_BUSY

Refresher is busy with another operation.

2147749975

(0x80041057)

WBEM_E_UNPARSABLE_QUERY

Filtering query is syntactically invalid.

2147749976

(0x80041058)

WBEM_E_NOT_EVENT_CLASS

The FROM clause of a filtering query references a class that is not an event
The FROM clause of a filtering query references a
class that is not an event class (not derived from
Event
[ http://msdn.microsoft.com/en-
us/library/aa394634(VS.85).aspx ] ).

2147749977

(0x80041059)

WBEM_E_MISSING_GROUP_WITHIN

A

GROUP BY clause was used without the

2147749978

(0x8004105A)

corresponding GROUP WITHIN clause.

WBEM_E_MISSING_AGGREGATION_LIST

A

GROUP BY clause was used. Aggregation on all

2147749979

(0x8004105B)

properties is not supported.

WBEM_E_PROPERTY_NOT_AN_OBJECT

Dot notation was used on a property that is not an embedded object.

2147749980

(0x8004105C)

WBEM_E_AGGREGATING_BY_OBJECT

A

GROUP BY clause references a property that is an

2147749981

(0x8004105D)

embedded object without using dot notation.

WBEM_E_UNINTERPRETABLE_PROVIDER_QUERY

Event provider registration query ( EventProviderRegistration [ http://msdn.microsoft.com/en-
Event provider registration query
( EventProviderRegistration
[ http://msdn.microsoft.com/en-
us/library/aa394642(VS.85).aspx ] ) did not specify
the classes for which events were provided.

2147749983

(0x8004105F)

WBEM_E_BACKUP_RESTORE_WINMGMT_RUNNING

Request was made to back up or restore the repository while it was in use by WinMgmt.exe, or by the SVCHOST process that contains the WMI service.

2147749984

(0x80041060)

WBEM_E_QUEUE_OVERFLOW

Asynchronous delivery queue overflowed from the

2147749985

(0x80041061)

event consumer being too slow. WBEM_E_TRANSACTION_CONFLICT Operation resulted in a transaction conflict. 2147749997
event consumer being too slow.
WBEM_E_TRANSACTION_CONFLICT
Operation resulted in a transaction conflict.
2147749997
(0x8004106D)
Windows 2000 and
Windows NT: This error constant is not available.
Windows NT: This error constant is
not available.
WBEM_E_DATABASE_VER_MISMATCH 2147750008 (0x80041078) Database version does not match the version that the repository
WBEM_E_DATABASE_VER_MISMATCH
2147750008
(0x80041078)
Database version does not match the version that
the repository driver understands.
Windows 2000 and
Windows NT: This error constant is
not available.
WBEM_E_FATAL_TRANSPORT_ERROR
atal transport error occurred.
2147750022
(0x80041086)
Windows 2000 and Windows NT: This error constant is not available. WBEMMOF_E_ILLEGAL_CONSTANT_VALUE Numeric value out
Windows 2000 and
Windows NT: This error constant is
not available.
WBEMMOF_E_ILLEGAL_CONSTANT_VALUE
Numeric value out of range or strings without
2147762183
(0x80044007)
quotes. WBEMMOF_E_EXPECTED_TYPE_IDENTIFIER Expected a type identifier. 2147762184 (0x80044008)

quotes.

WBEMMOF_E_EXPECTED_TYPE_IDENTIFIER

Expected a type identifier.

2147762184

(0x80044008)

WBEMMOF_E_EXPECTED_OPEN_PAREN

Expected an open parenthesis.

2147762185

(0x80044009)

WBEMMOF_E_UNRECOGNIZED_TOKEN

Unexpected token in the file.

2147762186

(0x8004400A)

WBEMMOF_E_UNRECOGNIZED_TYPE

Unrecognized or unsupported type identifier.

2147762187

(0x8004400B)

WBEMMOF_E_EXPECTED_PROPERTY_NAME

Expected property or method name.

2147762187

(0x8004400B)

WBEMMOF_E_TYPEDEF_NOT_SUPPORTED

Typedefs and enumerated types are not supported.

2147762189

(0x8004400D)

WBEMMOF_E_UNEXPECTED_ALIAS

Only a reference to a class object can have an alias value.

2147762190

(0x8004400E)

WBEMMOF_E_UNEXPECTED_ARRAY_INIT

Unexpected array initialization. Arrays must be declared with [].

2147762191

(0x8004400F)

WBEMMOF_E_INVALID_AMENDMENT_SYNTAX

Invalid namespace path syntax.

2147762192

(0x80044010)

WBEMMOF_E_INVALID_DUPLICATE_AMENDMENT

Duplicate amendment specifiers.

2147762193

(0x80044011)

WBEMMOF_E_INVALID_PRAGMA

#pragma [ http://msdn.microsoft.com/en- us/library/aa392754(VS.85).aspx ] must be followed by a valid keyword.
#pragma
[ http://msdn.microsoft.com/en-
us/library/aa392754(VS.85).aspx ] must be
followed by a valid keyword.

2147762194

(0x80044012)

WBEMMOF_E_INVALID_NAMESPACE_SYNTAX

Invalid namespace path syntax.

2147762195

(0x80044013)

WBEMMOF_E_EXPECTED_CLASS_NAME

Unexpected character in class name must be an identifier.

2147762196

(0x80044014)

WBEMMOF_E_TYPE_MISMATCH

The value specified cannot be made into the appropriate type.

2147762197

(0x80044015)

WBEMMOF_E_EXPECTED_ALIAS_NAME

Dollar sign must be followed by an alias name as an identifier.

2147762198

(0x80044016)

WBEMMOF_E_INVALID_CLASS_DECLARATION

Invalid class declaration.

2147762199

(0x80044017)

WBEMMOF_E_INVALID_INSTANCE_DECLARATION

The instance declaration is invalid. It must start with "instance of"

2147762200

(0x80044018)

WBEMMOF_E_EXPECTED_DOLLAR

Expected dollar sign. An alias in the form "$name" must follow the "as" keyword.

2147762201

(0x80044019)

WBEMMOF_E_CIMTYPE_QUALIFIER

"CIMTYPE" qualifier cannot be specified directly in a MOF file. Use standard type notation.

2147762202

(0x8004401A)

WBEMMOF_E_DUPLICATE_PROPERTY

Duplicate property name was found in the MOF.

2147762203

(0x8004401B)

WBEMMOF_E_INVALID_NAMESPACE_SPECIFICATION

Invalid namespace syntax. References to other servers are not allowed.

2147762204

(0x8004401C)

WBEMMOF_E_OUT_OF_RANGE

Value out of range.

2147762205

(0x8004401D)

WBEMMOF_E_INVALID_FILE

The file is not a valid text MOF file or binary MOF

2147762206

(0x8004401E)

file. WBEMMOF_E_ERROR_INVALID_INCLUDE_FILE A file included in the MOF by the preprocessor 2147762224 (0x80044030)
file.
WBEMMOF_E_ERROR_INVALID_INCLUDE_FILE
A
file included in the MOF by the preprocessor
2147762224
(0x80044030)
command #include
[
http://msdn.microsoft.com/en-
us/library/aa394618(VS.85).aspx ] is invalid.
WBEMMOF_E_INVALID_DELETECLASS_SYNTAX
2147762225
(0x80044031)
The syntax for the preprocessor commands
#pragma deleteinstance
[
http://msdn.microsoft.com/en-
us/library/aa392752(VS.85).aspx ] or #pragma
deleteclass [ http://msdn.microsoft.com/en-
us/library/aa392751(VS.85).aspx ] is not valid.
Requirements Windows 2000 Professional Minimum supported client Minimum supported server Header IDL
Requirements
Windows 2000 Professional
Minimum supported client
Minimum supported server
Header
IDL

See Also

WMI Return Codes [ http://msdn.microsoft.com/en-us/library/aa394574(VS.85).aspx ]

Send comments about this topic to Microsoft

Build date: 10/26/2010