Home

How to fix call to DllRegisterServer failed with error code 0x80070005?

Alton Alexander
By Alton AlexanderUpdated on June 4th, 2022

The dllregisterserver failed with error code 0x80070005 is a windows error code that is caused by a number of things. The most common reason for this error code is that the user does not have permission to register the DLL. This can happen if the user is not an administrator on the machine, or if the UAC is set to disabled. Other reasons for this error code include an incorrect path to the DLL, or a corrupt DLL.

1. Check the permissions on the registry key that you are trying to modify

  1. Click Start, click Run, type regedit and press Enter.
  2. In the Registry Editor window, click the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon key.
  3. In the Winlogon subkey, double-click the DLLRegisterserver value.
  4. In the Value data field, ensure that the Read and Write permissions are set to the appropriate level.
  5. Click OK to close the Registry Editor window.

2. Try running the command as an administrator

  1. Open an elevated command prompt.
  2. Type "cmd" and press Enter.
  3. Type "regsvr32 dllregisterserver.dll" and press Enter.
  4. If the command fails, please provide more information below.
  5. If the command succeeds, you can close the elevated command prompt.

3. Check if the user account that you are using to run the command is a member of the Administrators group

  1. Open a command prompt and type net user.
  2. If the user account is a member of the Administrators group, the command will return a user account name. If the user account is not a member of the Administrators group, the command will return an error message.
  3. Type net user <user account name> /add and press Enter.
  4. Type net user <user account name> /remove and press Enter.
  5. Type net user <user account name> /list and press Enter.
  6. Type net user <user account name> /add and press Enter to add the user account to the Administrators group.
  7. Type net user <user account name> /remove and press Enter to remove the user account from the Administrators group.
  8. Type net user <user account name> /list and press Enter to verify that the user account is now a member of the Administrators group.

If the answers above didn't work then you should also try:

  1. Try running the command from a different user account that has administrator privileges.
  2. Check if the registry key that you are trying to modify is set to read-only. If it is, you will need to change the permissions on the key to allow modification.
  3. Try running the command from a different computer.