Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The WbemErrorEnum constants define the errors that may be returned by Scripting API for WMI calls.
The WMI scripting type library Wbemdisp.tlb defines these constants. Visual Basic applications can access this library; script languages must use the value of the constant directly, unless they use the Windows Script Host (WSH) XML file format. For more information, see Using the WMI Scripting Type Library.
Other languages may have different names for these values, see WMI Error Constants and WBEMSTATUS.
Syntax
typedef enum WbemErrorEnum {
wbemNoErr = 0,
wbemErrFailed = 0x80041001,
wbemErrNotFound = 0x80041002,
wbemErrAccessDenied = 0x80041003,
wbemErrProviderFailure = 0x80041004,
wbemErrTypeMismatch = 0x80041005,
wbemErrOutOfMemory = 0x80041006,
wbemErrInvalidContext = 0x80041007,
wbemErrInvalidParameter = 0x80041008,
wbemErrNotAvailable = 0x80041009,
wbemErrCriticalError = 0x8004100a,
wbemErrInvalidStream = 0x8004100b,
wbemErrNotSupported = 0x8004100c,
wbemErrInvalidSuperclass = 0x8004100d,
wbemErrInvalidNamespace = 0x8004100e,
wbemErrInvalidObject = 0x8004100f,
wbemErrInvalidClass = 0x80041010,
wbemErrProviderNotFound = 0x80041011,
wbemErrInvalidProviderRegistration = 0x80041012,
wbemErrProviderLoadFailure = 0x80041013,
wbemErrInitializationFailure = 0x80041014,
wbemErrTransportFailure = 0x80041015,
wbemErrInvalidOperation = 0x80041016,
wbemErrInvalidQuery = 0x80041017,
wbemErrInvalidQueryType = 0x80041018,
wbemErrAlreadyExists = 0x80041019,
wbemErrOverrideNotAllowed = 0x8004101a,
wbemErrPropagatedQualifier = 0x8004101b,
wbemErrPropagatedProperty = 0x8004101c,
wbemErrUnexpected = 0x8004101d,
wbemErrIllegalOperation = 0x8004101e,
wbemErrCannotBeKey = 0x8004101f,
wbemErrIncompleteClass = 0x80041020,
wbemErrInvalidSyntax = 0x80041021,
wbemErrNondecoratedObject = 0x80041022,
wbemErrReadOnly = 0x80041023,
wbemErrProviderNotCapable = 0x80041024,
wbemErrClassHasChildren = 0x80041025,
wbemErrClassHasInstances = 0x80041026,
wbemErrQueryNotImplemented = 0x80041027,
wbemErrIllegalNull = 0x80041028,
wbemErrInvalidQualifierType = 0x80041029,
wbemErrInvalidPropertyType = 0x8004102a,
wbemErrValueOutOfRange = 0x8004102b,
wbemErrCannotBeSingleton = 0x8004102c,
wbemErrInvalidCimType = 0x8004102d,
wbemErrInvalidMethod = 0x8004102e,
wbemErrInvalidMethodParameters = 0x8004102f,
wbemErrSystemProperty = 0x80041030,
wbemErrInvalidProperty = 0x80041031,
wbemErrCallCancelled = 0x80041032,
wbemErrShuttingDown = 0x80041033,
wbemErrPropagatedMethod = 0x80041034,
wbemErrUnsupportedParameter = 0x80041035,
wbemErrMissingParameter = 0x80041036,
wbemErrInvalidParameterId = 0x80041037,
wbemErrNonConsecutiveParameterIds = 0x80041038,
wbemErrParameterIdOnRetval = 0x80041039,
wbemErrInvalidObjectPath = 0x8004103a,
wbemErrOutOfDiskSpace = 0x8004103b,
wbemErrBufferTooSmall = 0x8004103c,
wbemErrUnsupportedPutExtension = 0x8004103d,
wbemErrUnknownObjectType = 0x8004103e,
wbemErrUnknownPacketType = 0x8004103f,
wbemErrMarshalVersionMismatch = 0x80041040,
wbemErrMarshalInvalidSignature = 0x80041041,
wbemErrInvalidQualifier = 0x80041042,
wbemErrInvalidDuplicateParameter = 0x80041043,
wbemErrTooMuchData = 0x80041044,
wbemErrServerTooBusy = 0x80041045,
wbemErrInvalidFlavor = 0x80041046,
wbemErrCircularReference = 0x80041047,
wbemErrUnsupportedClassUpdate = 0x80041048,
wbemErrCannotChangeKeyInheritance = 0x80041049,
wbemErrCannotChangeIndexInheritance = 0x80041050,
wbemErrTooManyProperties = 0x80041051,
wbemErrUpdateTypeMismatch = 0x80041052,
wbemErrUpdateOverrideNotAllowed = 0x80041053,
wbemErrUpdatePropagatedMethod = 0x80041054,
wbemErrMethodNotImplemented = 0x80041055,
wbemErrMethodDisabled = 0x80041056,
wbemErrRefresherBusy = 0x80041057,
wbemErrUnparsableQuery = 0x80041058,
wbemErrNotEventClass = 0x80041059,
wbemErrMissingGroupWithin = 0x8004105a,
wbemErrMissingAggregationList = 0x8004105b,
wbemErrPropertyNotAnObject = 0x8004105c,
wbemErrAggregatingByObject = 0x8004105d,
wbemErrUninterpretableProviderQuery = 0x8004105f,
wbemErrBackupRestoreWinmgmtRunning = 0x80041060,
wbemErrQueueOverflow = 0x80041061,
wbemErrPrivilegeNotHeld = 0x80041062,
wbemErrInvalidOperator = 0x80041063,
wbemErrLocalCredentials = 0x80041064,
wbemErrCannotBeAbstract = 0x80041065,
wbemErrAmendedObject = 0x80041066,
wbemErrClientTooSlow = 0x80041067,
wbemErrNullSecurityDescriptor = 0x80041068,
wbemErrTimeout = 0x80041069,
wbemErrInvalidAssociation = 0x8004106a,
wbemErrAmbiguousOperation = 0x8004106b,
wbemErrQuotaViolation = 0x8004106c,
wbemErrTransactionConflict = 0x8004106d,
wbemErrForcedRollback = 0x8004106e,
wbemErrUnsupportedLocale = 0x8004106f,
wbemErrHandleOutOfDate = 0x80041070,
wbemErrConnectionFailed = 0x80041071,
wbemErrInvalidHandleRequest = 0x80041072,
wbemErrPropertyNameTooWide = 0x80041073,
wbemErrClassNameTooWide = 0x80041074,
wbemErrMethodNameTooWide = 0x80041075,
wbemErrQualifierNameTooWide = 0x80041076,
wbemErrRerunCommand = 0x80041077,
wbemErrDatabaseVerMismatch = 0x80041078,
wbemErrVetoPut = 0x80041079,
wbemErrVetoDelete = 0x8004107a,
wbemErrInvalidLocale = 0x80041080,
wbemErrProviderSuspended = 0x80041081,
wbemErrSynchronizationRequired = 0x80041082,
wbemErrNoSchema = 0x80041083,
wbemErrProviderAlreadyRegistered = 0x80041084,
wbemErrProviderNotRegistered = 0x80041085,
wbemErrFatalTransportError = 0x80041086,
wbemErrEncryptedConnectionRequired = 0x80041087,
wbemErrRegistrationTooBroad = 0x80042001,
wbemErrRegistrationTooPrecise = 0x80042002,
wbemErrTimedout = 0x80043001,
wbemErrResetToDefault = 0x80043002
} ;
Constants
wbemNoErrValue: 0 The call was successful. |
wbemErrFailedValue: 0x80041001 The call failed. |
wbemErrNotFoundValue: 0x80041002 The object could not be found. |
wbemErrAccessDeniedValue: 0x80041003 The current user does not have permission to perform the action. |
wbemErrProviderFailureValue: 0x80041004 The provider has failed at some time other than during initialization. |
wbemErrTypeMismatchValue: 0x80041005 A type mismatch occurred. |
wbemErrOutOfMemoryValue: 0x80041006 There was not enough memory for the operation. |
wbemErrInvalidContextValue: 0x80041007 The SWbemNamedValue object is not valid. |
wbemErrInvalidParameterValue: 0x80041008 One of the parameters to the call is not correct. |
wbemErrNotAvailableValue: 0x80041009 The resource, typically a remote server, is not currently available. |
wbemErrCriticalErrorValue: 0x8004100a An internal, critical, and unexpected error occurred. Report this error to Microsoft Technical Support. |
wbemErrInvalidStreamValue: 0x8004100b One or more network packets were corrupted during a remote session. |
wbemErrNotSupportedValue: 0x8004100c The feature or operation is not supported. |
wbemErrInvalidSuperclassValue: 0x8004100d The parent class specified is not valid. |
wbemErrInvalidNamespaceValue: 0x8004100e The namespace specified could not be found. |
wbemErrInvalidObjectValue: 0x8004100f The specified instance is not valid. |
wbemErrInvalidClassValue: 0x80041010 The specified class is not valid. |
wbemErrProviderNotFoundValue: 0x80041011 A provider referenced in the schema does not have a corresponding registration. |
wbemErrInvalidProviderRegistrationValue: 0x80041012 A provider referenced in the schema has an incorrect or incomplete registration. This error may be caused by a missing pragma namespace command in the MOF file used to register the provider, resulting in the provider being registered in the wrong WMI namespace. This error may also be caused by a corrupt repository, which may be fixed by deleting it and recompiling the MOF files. |
wbemErrProviderLoadFailureValue: 0x80041013 COM cannot locate a provider referenced in the schema. This error may be caused by any of the following: The provider is using a WMI DLL that does not match the .lib fileused when the provider was built. The provider's DLL or any of the DLLs on which it depends is corrupt. The provider failed to export DllRegisterServer. An in-process provider was not registered using /regsvr32. An out-of-process provider was not registered using /regserver. |
wbemErrInitializationFailureValue: 0x80041014 A component, such as a provider, failed to initialize for internal reasons. |
wbemErrTransportFailureValue: 0x80041015 A networking error occurred, preventing normal operation. |
wbemErrInvalidOperationValue: 0x80041016 The requested operation is not valid. This error usually applies to invalid attempts to delete classes or properties. |
wbemErrInvalidQueryValue: 0x80041017 The requested operation is not valid. This error usually applies to invalid attempts to delete classes or properties. |
wbemErrInvalidQueryTypeValue: 0x80041018 The requested query language is not supported. |
wbemErrAlreadyExistsValue: 0x80041019 In a put operation, the wbemChangeFlagCreateOnly flag was specified, but the instance already exists. |
wbemErrOverrideNotAllowedValue: 0x8004101a It is not possible to perform the add operation on this qualifier because the owning object does not permit overrides. |
wbemErrPropagatedQualifierValue: 0x8004101b The user attempted to delete a qualifier that was not owned. The qualifier was inherited from a parent class. |
wbemErrPropagatedPropertyValue: 0x8004101c The user attempted to delete a property that was not owned. The property was inherited from a parent class. |
wbemErrUnexpectedValue: 0x8004101d The client made an unexpected and illegal sequence of calls, such as calling EndEnumeration before calling BeginEnumeration. |
wbemErrIllegalOperationValue: 0x8004101e The user requested an illegal operation, such as spawning a class from an instance. |
wbemErrCannotBeKeyValue: 0x8004101f There was an 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. |
wbemErrIncompleteClassValue: 0x80041020 The current object is not a valid class definition. Either it is incomplete, or it has not been registered with WMI using SWbemObject.Put_. |
wbemErrInvalidSyntaxValue: 0x80041021 The syntax of an input parameter is incorrect for the applicable data structure. For example, when a CIM datetime structure does not have the correct format when passed to SWbemDateTime.SetFileTime. |
wbemErrNondecoratedObjectValue: 0x80041022 Reserved for future use. |
wbemErrReadOnlyValue: 0x80041023 The property that you are attempting to modify is read-only. |
wbemErrProviderNotCapableValue: 0x80041024 The provider cannot perform the requested operation. This would include a query that is too complex, retrieving an instance, creating or updating a class, deleting a class, or enumerating a class. |
wbemErrClassHasChildrenValue: 0x80041025 An attempt was made to make a change that would invalidate a subclass. |
wbemErrClassHasInstancesValue: 0x80041026 An attempt has been made to delete or modify a class that has instances. |
wbemErrQueryNotImplementedValue: 0x80041027 Reserved for future use. |
wbemErrIllegalNullValue: 0x80041028 A value of Nothing was specified for a property that may not be Nothing, such as one that is marked by a Key, Indexed, or Not_Null qualifier. |
wbemErrInvalidQualifierTypeValue: 0x80041029 The CIM type specified for a property is not valid. |
wbemErrInvalidPropertyTypeValue: 0x8004102a The CIM type specified for a property is not valid. |
wbemErrValueOutOfRangeValue: 0x8004102b The request was made with an out-of-range value, or is incompatible with the type. |
wbemErrCannotBeSingletonValue: 0x8004102c An illegal attempt was made to make a class singleton, such as when the class is derived from a non-singleton class. |
wbemErrInvalidCimTypeValue: 0x8004102d The CIM type specified is not valid. |
wbemErrInvalidMethodValue: 0x8004102e The requested method is not available. |
wbemErrInvalidMethodParametersValue: 0x8004102f The parameters provided for the method are not valid. |
wbemErrSystemPropertyValue: 0x80041030 There was an attempt to get qualifiers on a system property. |
wbemErrInvalidPropertyValue: 0x80041031 The property type is not recognized. |
wbemErrCallCancelledValue: 0x80041032 An 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. |
wbemErrShuttingDownValue: 0x80041033 The user has requested an operation while WMI is in the process of shutting down. |
wbemErrPropagatedMethodValue: 0x80041034 An attempt was made to reuse an existing method name from a parent class, and the signatures did not match. |
wbemErrUnsupportedParameterValue: 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. |
wbemErrMissingParameterValue: 0x80041036 A parameter was missing from the method call. |
wbemErrInvalidParameterIdValue: 0x80041037 A method parameter has an ID qualifier that is not valid. |
wbemErrNonConsecutiveParameterIdsValue: 0x80041038 One or more of the method parameters have ID qualifiers that are out of sequence. |
wbemErrParameterIdOnRetvalValue: 0x80041039 The return value for a method has an ID qualifier. |
wbemErrInvalidObjectPathValue: 0x8004103a The specified object path was not valid. |
wbemErrOutOfDiskSpaceValue: 0x8004103b Disk is out of space or the 4 GB limit on WMI repository (CIM repository) size is reached. |
wbemErrBufferTooSmallValue: 0x8004103c The supplied buffer was too small to hold all the objects in the enumerator or to read a string property. |
wbemErrUnsupportedPutExtensionValue: 0x8004103d The provider does not support the requested put operation. |
wbemErrUnknownObjectTypeValue: 0x8004103e An object with an incorrect type or version was encountered during marshaling. |
wbemErrUnknownPacketTypeValue: 0x8004103f A packet with an incorrect type or version was encountered during marshaling. |
wbemErrMarshalVersionMismatchValue: 0x80041040 The packet has an unsupported version. |
wbemErrMarshalInvalidSignatureValue: 0x80041041 The packet appears to be corrupted. |
wbemErrInvalidQualifierValue: 0x80041042 An attempt has been made to mismatch qualifiers, such as putting [key] on an object instead of a property. |
wbemErrInvalidDuplicateParameterValue: 0x80041043 A duplicate parameter has been declared in a CIM method. |
wbemErrTooMuchDataValue: 0x80041044 Reserved for future use. |
wbemErrServerTooBusyValue: 0x80041045 A call to IWbemObjectSink::Indicate has failed. The provider may choose to refire the event. |
wbemErrInvalidFlavorValue: 0x80041046 The specified flavor was not valid. |
wbemErrCircularReferenceValue: 0x80041047 An attempt has been made to create a reference that is circular (for example, deriving a class from itself). |
wbemErrUnsupportedClassUpdateValue: 0x80041048 The specified class is not supported. |
wbemErrCannotChangeKeyInheritanceValue: 0x80041049 An attempt was made to change a key when instances or subclasses are already using the key. |
wbemErrCannotChangeIndexInheritanceValue: 0x80041050 An attempt was made to change an index when instances or subclasses are already using the index. |
wbemErrTooManyPropertiesValue: 0x80041051 An attempt was made to create more properties than the current version of the class supports. |
wbemErrUpdateTypeMismatchValue: 0x80041052 A property was redefined with a conflicting type in a derived class. |
wbemErrUpdateOverrideNotAllowedValue: 0x80041053 An attempt was made in a derived class to override a non-overridable qualifier. |
wbemErrUpdatePropagatedMethodValue: 0x80041054 A method was redeclared with a conflicting signature in a derived class. |
wbemErrMethodNotImplementedValue: 0x80041055 An attempt was made to execute a method not marked with [implemented] in any relevant class. |
wbemErrMethodDisabledValue: 0x80041056 An attempt was made to execute a method marked with [disabled]. |
wbemErrRefresherBusyValue: 0x80041057 The refresher is busy with another operation. |
wbemErrUnparsableQueryValue: 0x80041058 The filtering query is syntactically not valid. |
wbemErrNotEventClassValue: 0x80041059 The FROM clause of a filtering query references a class that is not an event class (not derived from __Event). |
wbemErrMissingGroupWithinValue: 0x8004105a A GROUP BY clause was used without the corresponding GROUP WITHIN clause. |
wbemErrMissingAggregationListValue: 0x8004105b A GROUP BY clause was used. Aggregation on all properties is not supported. |
wbemErrPropertyNotAnObjectValue: 0x8004105c Dot notation was used on a property that is not an embedded object. |
wbemErrAggregatingByObjectValue: 0x8004105d A GROUP BY clause references a property that is an embedded object without using dot notation. |
wbemErrUninterpretableProviderQueryValue: 0x8004105f An event provider registration query (__EventProviderRegistration) did not specify the classes for which events were provided. |
wbemErrBackupRestoreWinmgmtRunningValue: 0x80041060 An request was made to back up or restore the repository while WMI was using it. |
wbemErrQueueOverflowValue: 0x80041061 The asynchronous delivery queue overflowed due to the event consumer being too slow. |
wbemErrPrivilegeNotHeldValue: 0x80041062 The operation failed because the client did not have the necessary security privilege. |
wbemErrInvalidOperatorValue: 0x80041063 The operator is not valid for this property type. |
wbemErrLocalCredentialsValue: 0x80041064 The user specified a username, password or authority for a local connection. The user must use a blank username/password and rely on default security. |
wbemErrCannotBeAbstractValue: 0x80041065 The class was made abstract when its parent class is not abstract. |
wbemErrAmendedObjectValue: 0x80041066 An amended object was put without the wbemFlagUseAmendedQualifiers flag being specified. |
wbemErrClientTooSlowValue: 0x80041067 The client was not retrieving objects quickly enough from an enumeration. This constant is returned when a client creates an enumeration object but does not retrieve objects from the enumerator in a timely fashion, causing the enumerator's object caches to get backed up. |
wbemErrNullSecurityDescriptorValue: 0x80041068 A null security descriptor was used. |
wbemErrTimeoutValue: 0x80041069 The operation timed out. |
wbemErrInvalidAssociationValue: 0x8004106a The association being used is not valid. |
wbemErrAmbiguousOperationValue: 0x8004106b The operation was ambiguous. |
wbemErrQuotaViolationValue: 0x8004106c WMI is taking up too much memory. This could be caused either by low memory availability or excessive memory consumption by WMI. |
wbemErrTransactionConflictValue: 0x8004106d The operation resulted in a transaction conflict. |
wbemErrForcedRollbackValue: 0x8004106e The transaction forced a rollback. |
wbemErrUnsupportedLocaleValue: 0x8004106f The locale used in the call is not supported. |
wbemErrHandleOutOfDateValue: 0x80041070 The object handle is out of date. |
wbemErrConnectionFailedValue: 0x80041071 Indicates that the connection to the SQL database failed. |
wbemErrInvalidHandleRequestValue: 0x80041072 The handle request was not valid. |
wbemErrPropertyNameTooWideValue: 0x80041073 The property name contains more than 255 characters. |
wbemErrClassNameTooWideValue: 0x80041074 The class name contains more than 255 characters. |
wbemErrMethodNameTooWideValue: 0x80041075 The method name contains more than 255 characters. |
wbemErrQualifierNameTooWideValue: 0x80041076 The qualifier name contains more than 255 characters. |
wbemErrRerunCommandValue: 0x80041077 Indicates that an SQL command should be rerun because there is a deadlock in SQL. This can be returned only when data is being stored in an SQL database. |
wbemErrDatabaseVerMismatchValue: 0x80041078 The database version does not match the version that the repository driver processes. |
wbemErrVetoPutValue: 0x80041079 WMI cannot do the put operation because the provider does not allow it. |
wbemErrVetoDeleteValue: 0x8004107a WMI cannot do the delete operation because the provider does not allow it. |
wbemErrInvalidLocaleValue: 0x80041080 The specified locale identifier was not valid for the operation. |
wbemErrProviderSuspendedValue: 0x80041081 The provider is suspended. |
wbemErrSynchronizationRequiredValue: 0x80041082 The object must be committed and retrieved again before the requested operation can succeed. This constant is returned when an object must be committed and re-retrieved to see the property value. |
wbemErrNoSchemaValue: 0x80041083 The operation cannot be completed because no schema is available. |
wbemErrProviderAlreadyRegisteredValue: 0x80041084 The provider registration cannot be done because the provider is already registered. |
wbemErrProviderNotRegisteredValue: 0x80041085 The provider for the requested data is not registered. |
wbemErrFatalTransportErrorValue: 0x80041086 A fatal transport error occurred and other transport will not be attempted. |
wbemErrEncryptedConnectionRequiredValue: 0x80041087 The client connection to WINMGMT must be encrypted for this operation. The IWbemServices proxy security settings should be adjusted and the operation retried. |
wbemErrRegistrationTooBroadValue: 0x80042001 The provider registration overlaps with the system event domain. |
wbemErrRegistrationTooPreciseValue: 0x80042002 A WITHIN clause was not used in this query. |
wbemErrTimedoutValue: 0x80043001 Automation-specific error. |
wbemErrResetToDefaultValue: 0x80043002 The user deleted an override default value for the current class. The default value for this property in the parent class has been reactivated. An automation-specific error. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista |
| Minimum supported server | Windows Server 2008 |
| Header | wbemdisp.h |