KB: How to fix or Rebuild WMI on Windows XP

Problem case:

From time to time people are having trouble with WMI on Windows XP. There is a few ways to fix this problem.

First solution to try:

This command is used to detect and repair a corrupted WMI Repository. The results are stored in the setup.log (%windir%\system32\wbem\logs\setup.log) file

1.      Make sure you are local administrator on the machine

2.      Open a command prompt

3.      Type the following command without the quotes: “rundll32 wbemupgd, UpgradeRepository”

4.      The WMI repository will start repairing itself, wait a few minutes for it to complete

5.      Restart the machine

Second solution to try:

If rebuilding the WMI repository doesn’t do the trick for you there is a last option to try. The following batch file will completely replace all needed files and re-register the .dll files.

1.      Download the zipped file here containing Windows dll files and the batch script

2.      Make sure you are local administrator on the machine

3.      Run the batch file “StartRebuild.bat” by double clicking.

4.      Wait for the process to complete

5.      Restart the machine

Additional info:

The second solution have saved me a lot of trouble multiple times as rebuilding the repository only works in 80% of the cases.

This entry was posted in KB. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s