Start a conversation

How to Repair and Re-Register WMI Components

Overview

During installation some errors may be received causing the product not to be installed properly or may have a corrupted WMI repository. The following are examples of such an error:

  • Error 1720.There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor.

This article provides the commands to use to repair and re-register WMI components.

Information

Repairing WMI components

Use the following command to detect and repair a corrupted WMI Repository:

  • rundll32 wbemupgd, RepairWMISetup

Re-registering WMI components

The .DLL and .EXE files used by WMI are located in %windir%\system32\wbem. You might need to re-register all the .DLL and .EXE files in this directory. If you are running a 64-bit system you might also need to check for .DLLS and .EXE files in %windir%\sysWOW64\wem.
To re-register the WMI components, run the following commands at the command prompt:
  1. cd /d %windir%\system32\wbem
  2. for %i in (*.dll) do RegSvr32 -s %i
  3. for %i in (*.exe) do %i /RegServer
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted

Comments