How to Register and Re-register DLL files in Windows 10

If necessary DLL files are not registered, some functionality of the Windows operating system will not work properly. If you notice that some functionalities of the operating system are not working properly as they should, you may need to register or re-register all the DLL files.

The Regsvr32 is a built-in command-line tool in Microsoft Windows that you can use to register and unregister OLE controls, such as DLL and ActiveX controls in the operating system registry.

In this guide, we will walk you through how to Register and Re-register DLL files in Windows 10 using Regsvr32 command-line utility.

Register and Re-register DLL files

Note: On a 64-bit operating system, there are two version of the Regsv32.exe.

They are following:

  • 64-bit version – %systemroot%\System32\regsvr32.exe
  • 32-bit version – %systemroot%\SysWoW64\regsvr32.exe

Register a DLL file

To register a DLL file, open the command prompt and run as administrator, type the following command, then hit the enter button to run the command.

Enter the name of the DLL file you want to register, then hit the enter button.

regsvr32 "full path of the DLL file"

Unregister a DLL file

To unregister a DLL file, use the /u parameter as an option within the following command. Open the command prompt admin and run the following command.

regsvr32 /u "full path of the DLL file"

If you want to uninstall the DLL file while unregistering, use the /i parameter after /u.

Related article: How to use Delete “del command” on Windows 11

Re-Register all DLL files

To re-register all the DLL files, run the following command in the command prompt admin.

for %1 in (*.dll) do regsvr32 /s %1

If you receive any error message while running the Regsvr32 command, make sure you’re using the command prompt as administrator. To run the command prompt as admin, search the CMD in the taskbar search, then right-right the command prompt and Run as administrator.

If you’re using a 64-bit version of Windows 10 and getting an error message, use the 32-bit version of the Regsvr32.exe to register the OLE controls. Use the following command.

%systemroot%\SysWoW64\regsvr32 <full path of the DLL>

This is how you can use Regsvr32 command-line software to register, re-register and unregister DLL files in Windows 10.

If you wish to use third-party software for this mission, you can do so. There are a few freeware third-party software like Rootreg, RegDLLView, etc.

I hope this guide is helpful for you. If you still have any doubt and questions, feel free to comment below.

Leave your reply here

Scroll to Top