# Invalid Class Or Provider Failure

Zee Drive uses the WMI service (Windows Management Instrumentation) to retrieve information about the computer during activation and start-up. Sometimes a Windows update may cause a problem with WMI, corrupting the WMI repository, and causing Zee Drive to fail with an error: *invalid namespace*, *invalid class, provider failure* or *not found*.

The first step to resolve this error is to check that the computer is up to date with the latest Windows updates, then restart the computer. If it is already up to date then restart the computer anyway as sometimes an error with WMI can be transitory.

If the error persists, check the WMI repository for corruption. Open a MSDOS command prompt as local admin (note the *Administrator* in the title of the MSDOS window if its opened as admin):

<figure><img src="/files/rVrxOLsRQ6m458xCeKUF" alt="" width="492"><figcaption></figcaption></figure>

Then enter the following command in to the command prompt:

`winmgmt /verifyrepository`

If the WMI repository is corrupted the returned result will be *Repository is inconsistent*. If you receive this error try repairing the WMI repository with the following command (only run this command if you get the *inconsistent* error):

`winmgmt /salvagerepository`

If the repository is consistent, then try rebuilding individual components of WMI that Zee Drive requires. These components may have become corrupted due to Windows driver or system component updates.

From the MSDOS command prompt (as local admin), change your directory to  *C:\Windows\System32\Wbem* with the command:

`Cd C:\Windows\System32\Wbem`

Now enter the following commands one at a time in to the command prompt and hit return after each. These commands will rebuild the WMI components and re-register them.

`mofcomp.exe Vds.mof`

`regsvr32 Vdswmi.dll`

`mofcomp.exe CIMWin32.mof`

`regsvr32 CIMWin32.dll`

After running the commands, restart the Windows WMI service:

<figure><img src="/files/F1mSmZvh6nhlD4TCxSY9" alt="" width="522"><figcaption></figcaption></figure>

If the above steps do not work, try rebooting the computer and running through the steps again.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zeedrive.com/troubleshooting/invalid-class-or-provider-failure.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
