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.
Today I was working on a Windows Server 2003 and tried to add a program using Add or Remove Programs. I got the following error message when I tried to open Add/Remove Windows Components.
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.
The error mentioned wbemupgd.dll so I tried to restore it from the original source files, but it didn’t fix the problem. I was finally able to fix the problem by fixing an error in the path, as discussed in Microsoft’s KB article KB838420. The KB article suggests you add WBEM folder to the path. When I looked at the path under Control Panel, System, Advanced, Environment Variables, I noticed that my path under System Variables contained WBEM folder but it was missing a semicolon. My path looked something like this.
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEMC:\Program Files\QuickTime\QTSystem\;
Due to the missing “;” at the end of %SystemRoot%\system32\WBEM, the path to WBEM was invalid. I added the semicolon and everything was back to normal.