How to Register a DLL in Windows 10

To register a DLL in Windows 10, open Command Prompt as an administrator, type regsvr32 "C:\path\to\file.dll" using the DLL’s full path, and press Enter. A message says DllRegisterServer succeeded. To unregister it, add /u.

Applies to: Windows 10. Checked against Microsoft Learn on September 27, 2026.

Before you start

Only register a DLL when an app’s instructions or support team tell you to. Most apps register their own files when you install them. If an app says a DLL is missing, reinstalling the app usually fixes it better than registering the file yourself. Never download DLL files from DLL download sites.

Register a DLL

  1. Select Start, type cmd, right-click Command Prompt, and select Run as administrator.
  2. Type this, using your DLL’s full path in quotation marks:

regsvr32 "C:\Program Files\Contoso\Tools\contoso.dll"

  1. Press Enter.
  2. Select OK on the message that says it succeeded.
Windows 10 Command Prompt running regsvr32 with a DLL path and a message that DllRegisterServer succeeded
Run regsvr32 with the DLL’s path (1). A message confirms it worked (2).

To copy a file’s full path, hold Shift, right-click it, and select Copy as path.

32-bit DLLs on 64-bit Windows

On 64-bit Windows 10, use the 32-bit version of regsvr32 for a 32-bit DLL:

C:\Windows\SysWOW64\regsvr32.exe "C:\path\to\file.dll"

If you use the wrong one, you may see an error that the module couldn’t be loaded.

Unregister a DLL

Run:

regsvr32 /u "C:\path\to\file.dll"

If you see an error

Windows 10 RegSvr32 error message saying the module was loaded but the entry-point DllRegisterServer was not found
This error means the DLL doesn’t need registering (1).
  • The module was loaded but the entry-point DllRegisterServer was not found: this DLL can’t be registered. That’s normal for many DLLs. Reinstall the app instead.
  • The module failed to load: check the path, and try the 32-bit regsvr32 above.
  • Access denied or 0x80070005: run Command Prompt as an administrator.
  • Windows system DLL errors: run an SFC scan instead. See how to run an SFC scan in Windows 10.

Frequently asked questions

How do I open Command Prompt as an administrator?

See how to run a program as administrator in Windows 10 or how to open Command Prompt in Windows 10.

Do I need to restart after registering a DLL?

Usually not. Restart the app that uses it.

Microsoft’s reference is regsvr32. More help is on our Windows Help & Guides page.

Get Our Free Newsletter

How-to guides and tech deals

You may opt out at any time.
Read our Privacy Policy