Unregister, Register, Re-register DLL or OCX files in Windows 10/8/7

The Regsvr32 tool is a command-line utility that can be used for registering and un-registering OLE controls like DLL and ActiveX (OCX) controls in the Windows operating system. If you find that some of your Windows functions are note working properly, you may need to register your dll files. This tutorial will tell you how to register or unregister a DLL file using the built-in Regsvr.exe or some freeware Register DLL Tools.

regsvr32-register-dll

Register dll file

To register a dll or ocx file, open a command prompt windows as an administrator, type the following and hit Enter:

regsvr32 "path & filename of dll or ocx"

Re-register all dll files

To register ALL dll files, open a command prompt windows as an administrator, type the following and hit Enter:

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

Unregister dll file

To un-register a dll or ocx file, open a command prompt windows as an administrator, type the following and hit Enter:

regsvr32 /u "path & filename of dll or ocx"

This will register or unregister the dll file.

Register DLL Freeware

If you wish, you can also use a third-party freeware to do so easily. There are a few like Rootreg, Register/Unregister OCX/DLL Utility, RegDllView, etc, will let you do the same easily. Emsa Register DLL Tool, unfortunately, is not free anymore.

Post ported from WVC, updated & posted here.

What are DLL Orphans? Find out!

This post will help you fix missing DLL files errors on your Windows PC.

Looking to learn more about other files, processes or file types or file formats in Windows? Check these links:

Windows.edb files | Thumbs.db files | NFO and DIZ files | Index.dat file | Swapfile.sys, Hiberfil.sys & Pagefile.sys | Nvxdsync.exe | Svchost.exe | RuntimeBroker.exe | TrustedInstaller.exeDesktop.ini file | ShellExperienceHost.exe.

Download this VPN to secure all your Windows devices and browse anonymously
Posted by on , in Category Windows with Tags
Anand Khanse is the Admin of TheWindowsClub.com, a 10-year Microsoft MVP Awardee in Windows (2006-16) & a Windows Insider MVP. Please read the entire post & the comments first, create a System Restore Point before making any changes to your system & be careful about any 3rd-party offers while installing freeware.

22 Comments

  1. arecee924

    i get an error when i try to register an ocx file

  2. What error? Message? Code?

  3. MCDONARUDO

    i get an error when I try to register an actual file for my smbx in system32 this is what it says The module mswinsck.ocx failed to load. Make sure I WAS TOO LAZY TO FILL IN THIS PART The specified module could not be found.

  4. BlueSpeed

    What if the dll registers successfully but my Admin app fails to start and states “The xxx.dll must be registered” ??

  5. Raj Kapoor

    On windows 8.1 Pro:
    Copy xxx.dll file in c:windowsSystem32 Folder
    Right-click on “Command Prompt” and select “Run as Administrator”
    then register following Two files in Windows Registry
    regsvr32 c:windowssystem32xxx.dll

  6. Ehsan

    hi my friends : arecee924 & MCDONARUDO . My name is Ehsan and i am iranian. in windows 8.1 try this following commands for register OCX files :
    1 ) copy the dll file (your ocx file) in this path : c>windows>SysWOW64
    2 ) run as administrator cmd.exe and type this command : regsvr32 c:windowsSysWOW64(type your ocx files name)
    3) press ENTER

  7. Ehsan

    in windows 8.1 try this following commands for register OCX files :
    1 ) copy the dll file (your ocx file) in this path : c>windows>SysWOW64
    2 ) run as administrator cmd.exe and type this command : regsvr32 c:windowsSysWOW64(type your ocx files name)
    3) press ENTER

  8. lila

    thanks my dear compatriot

    your solution is very Efficient

  9. daro

    In win8 l ran the following command ‘C:Windowssystem32>regsvr32 msxml3.dll’ to register dll but the app still prompt an exception (Run-time error ‘339’ componenet ‘TABCTL32.OCX’). any idea?

  10. Ehsan

    thank you very much my very kind compatriot ; dear lila

  11. Derp

    It says it has an error. What am I doing wrong?

  12. Having issue with blank control panel, that hangs. So re register the dll’s vbscript, jscript and mshtml. First two okay but getting error on mshtml.dll. Error message is : The module c:windowssystem32mshtml.dll was loaded but the entry-point DIRegisterServer was not found. Make sure that c:windowssystem32mshtml.dll is a valid Dll or ocx file and then try again.

    The pc is windows 8.1

    How do I confirm the dll is valid?

    How do I fix this issue?

    Thank you.

  13. fingers

    helo, am using windows 8.1.when I rty to install some programs,i will see “this file dose not have a program associated for performing this action.please install a program or if one is already installed create an association in the default program control”

  14. Park Vince Jo

    what ocx file i should choose

  15. Park Vince Jo

    what dll did u used

  16. Odd Hegge

    Same problem. Did you ever get a solution?

  17. @happyandyk:disqus Want to see the screen shots of the error messages I get when I try to register a DLL in Win 10 home edition? I can give you URLs – I could post them here if the admin has configured Disqus to allow URLs, too.

  18. Please recheck the path & name of the DLL and the command/syntax used. Images say that file not found. Else use free tool Emsa Register DLL Tool to register/unregister DLLs easily. Link given in the last para of the post.

  19. blackweta

    Activation code for Emsa Register DLL Tool tool not free anymore unfortunately.

  20. Thanks. Will update post.

Leave a Reply

Your email address will not be published. Required fields are marked *


5 + 5 =