To register a DLL in Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10 or later with regsvr32.exe, you need to have administrator privileges and rights. Unless you have disabled UAC (User Access Control), all user accounts except Administrator that you use to login into Windows will need user manually elevate the user rights to administrator credentials although you have set their roles as administrator.

If you try to regsvr32 a module in normal command prompt window without proper administrative privileges, you will get the following error message:

The module “xxx.dll” was loaded but the call to DllregisterServer failed with error code 0x80004005.

The scenarios that this error may occur are when you trying to register the jscript.dll or vbscript.dll to solve internal error 2739 during installation, or when install add-ins for Microsoft Outlook 2007 such as TRSOutlookAddin.dll or other DLLs under Windows Vista or Windows 7 by using regsvr32.exe.

To solve the call to “DllregisterServer failed with error code 0x80004005” error, run a Command Prompt as Administrator.

Alternatively, you can disable User Access Control too, or login with Administrator account.