How to Fix Wbemupgd.dll could not be Loaded Error

Wbemupgd.dll is a WMI Setup Upgrade DLL from Microsoft Corporation.

Error Message

Using Add/Remove Programs on a Microsoft Windows Server 2003-based computer produces this error message:

Setup Library wbemupgd.dll could not be loaded, or function OcEntry could not be found. Contact your system administrator. The specific error code is 0x7e.


This error occurs because of a change in the path system variable.


The issue and the fixes suggested here may apply to Microsoft Windows Server 2003, Standard Edition (32-bit x86) and Microsoft Windows Small Business Server 2003 Standard Edition.

There are two suggested solutions. Use the one that is appropriate for you.

Method 1

  1. Go to Start.
  2. Right click on My Computer.
  3. Click on Properties.
  4. Under the System Variables list, click Path.
  5. Click Edit.
  6. Delete the following paths:%SystemRoot%\system32
  7. Type in drive:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem in the Variable value box. This will replace the paths that you deleted in the previous step.
  8. Click OK three times.

Note that in :\Windows\System32;C:\Windows;C:\Windows\System32\Wbem, drive is the drive where Windows is installed. Windows is the folder in which Windows is installed.

Method 2

  1. Click on Start.
  2. Go to Run.
  3. Type in regedit.
  4. Press OK.
  5. A box will come up. This is your registry editor.
  6. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment.
  7. Click on this subkey.
  8. Ensure that the Path type of the registry entry is REG_EXPAND_SZ.
  9. If the Path type is not REG_EXPAND_SZ., delete the path. Recreate the registry entry with a REG_EXPAND_SZ. Path.
  10. Right click on the Path registry entry.
  11. Click on Modify.
  12. Type in %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem as your Value data.

Many errors find their roots in the registry. You may be unaware that your registry has remnants of certain programs or applications that may impede the performance of your system.

To ensure that your system runs in a smooth manner, scan regularly with a good registry cleaning utility like RegServe.

RegServe will be able to find and repair registry related errors while preventing the occurrence of new errors. This registry cleaning program will also be able to prevent the occurrence of unsightly registry bloat.