Regsvr32 Error in Windows 11 and 10: Module Failed to Load, DllRegisterServer Not Found and Access Denied

Illustration of a file tile with a plug that does not connect to its socket, with a red cross badge
Illustration of a file tile with a plug that does not connect to its socket, with a red cross badge

A regsvr32 error usually appears as a pop-up when you open a program, install a tool, or run a setup file. The message often says that a module failed to load, or that the entry point DllRegisterServer was not found. Some versions show an access denied code instead.

Last reviewed: November 24, 2026. This page covers the regsvr32 error messages on Windows 11 and Windows 10 and the safe steps to try; the steps were compared with Microsoft documentation, none were run on a real PC, and the top picture is an illustration.

This guide covers that tool and its messages. It does not try to fix every missing-DLL message, and it does not cover registry cleaners. Registry editing steps are not part of the fix here.

Quick answer

Quick answer

  • Regsvr32 is the Windows tool that registers or unregisters a .dll file as a component in the registry. Microsoft's regsvr32 page describes it this way.
  • "The module failed to load" is commonly caused by a missing file, a blocked file, a wrong 32-bit or 64-bit match, or a missing dependency.
  • "DllRegisterServer was not found" means the file is usually not a DLL that can register itself. It may be the wrong file.
  • An access denied code such as 0x80070005 is often addressed by running the command from an elevated Command Prompt.
  • Run regsvr32 only on a DLL that the app maker tells you to register. Never run it on a DLL from a random download site.
  • Repair or reinstall the app that owns the file first. Then use DISM, and then SFC, from an elevated prompt.

In this guide

What regsvr32 does

Regsvr32 is a built-in command-line tool. Microsoft's Learn page describes it as a tool that registers .dll files as command components in the registry. Programs can then find and call that component by its registered name.

Registering writes entries that point Windows to the file. Unregistering removes those entries. Those entries are mostly CLSID and class registrations; our guide to HKEY_CLASSES_ROOT explains where they live. Both actions touch the registry, which is why the tool needs administrator rights and why a wrong file can cause trouble.

For background on how the registry is laid out, see how registry hives, keys and values are organised. You do not need that detail to follow the steps below.

The basic syntax is shown below. Square brackets mean an option is optional.

regsvr32 [/u] [/s] [/n] [/i[:cmdline]] <Dllname>

Common switches

Microsoft's page lists these switches. You will use only a few of them in day-to-day troubleshooting.

SwitchWhat it doesWhen you would use it
/uUnregisters the server.Only when the app maker tells you to remove a registration.
/sPrevents displaying messages.Silent runs, for example in a script the maker gave you. Leave it off while troubleshooting so you can read the message.
/nPrevents calling DllRegisterServer. It must be used together with /i.Rarely. Only when the maker's instructions say so.
/i:cmdlinePasses an optional string to DllInstall. With /u, it calls DllUninstall.Only when the maker's instructions name a value to pass.

Read the exact regsvr32 error message

Do not guess from the title of the pop-up. Write down the exact wording, the file name in the message, and the program you were using. Those three details decide which branch you follow. If the pop-up says Class not registered, read the class not registered error guide.

The regsvr32 error: module failed to load

This message names a file, and it says the file could not be loaded. Commonly reported causes are a missing file, a file that Windows blocks, a 32-bit file on a 64-bit path (or the reverse), or a missing file that the DLL itself depends on.

Check first that the file is still in the folder the program expects. A file that was deleted by an antivirus tool or an old uninstall often causes this.

The entry point DllRegisterServer was not found

This message means regsvr32 loaded the file but could not find the function it needs to register it. Commonly reported causes are that the file is not a COM server DLL, that it is a different file with a similar name, or that it is a damaged copy.

Stop here if you did not get the file from the app maker. A different file with the same name is a common reason for this message.

DllRegisterServer failed with 0x80070005 or 0x8002801c

Code 0x80070005 is commonly reported as an access denied error. It usually means the Command Prompt was not elevated, or Windows is blocking a change to the registry or to a protected folder.

Code 0x8002801c is commonly reported as a registry access error. It has been reported with a mismatch between the file and the 32-bit or 64-bit registry view. Confirm bitness before you retry.

Message or codeCommonly reported meaningFirst step
The module failed to loadMissing file, blocked file, bitness mismatch, or missing dependencyRepair the owning app, then check bitness
DllRegisterServer not foundNot a registrable COM DLL, or the wrong fileConfirm the file source with the app maker
0x80070005Access deniedRun from an elevated Command Prompt
0x8002801cRegistry access error, reported with a bitness mismatchConfirm bitness, then retry elevated

Note

Error wording can differ slightly between Windows builds and languages. Match the meaning, not the exact punctuation.

When you should run regsvr32 at all

Regsvr32 is not a general repair tool. Most programs register their own files during installation. Microsoft's guide to registering a class at installation says most applications are registered through an installation and setup program. Running regsvr32 by hand is only needed when the app maker's documentation asks you to register a specific DLL.

Before you start

Never run regsvr32 on a DLL downloaded from a random website, a forum, or a file-sharing page. A fake DLL can carry malware, and registering it adds it to the registry as a trusted component. Only register a file that came from the app maker or from its official installer.

Make a note of the file's full path before you change anything, so you can undo a registration if the maker asks you to. Create a restore point first, and read how to use System Restore before risky changes. To see what a restore point does and does not roll back, read whether System Restore restores the registry.

Decide before you run it

Use this simple check to decide what to do next.

  • Did the app maker or its official guide tell you to register this exact DLL?
    • Yes: check bitness, then run regsvr32 from an elevated Command Prompt.
    • No: do not run regsvr32 on it. Go to the repair steps.
      • Did a program you installed or updated show the error? Repair or reinstall that program first.
      • Did a file appear from an unknown source? Stop, and scan the PC before anything else.
  1. Confirm the file and its owner
  2. Check 32-bit or 64-bit
  3. Run regsvr32 elevated
  4. Repair with DISM, then SFC

32-bit or 64-bit: which regsvr32 to use

On a 64-bit Windows install there are two copies of regsvr32. One is in the System32 folder and one is in the SysWOW64 folder. The names are the same, so the folder matters. For how 32-bit and 64-bit registry views are kept apart, see WOW6432Node and the 32-bit registry view.

Commonly reported guidance is that the 64-bit regsvr32 lives in System32 and is used for 64-bit files, while the 32-bit regsvr32 lives in SysWOW64 and is used for 32-bit files. The folder names look reversed, but that is the usual explanation.

Check which copies you have

Open an elevated Command Prompt (the steps are in the next section) and run these two commands one at a time to confirm both copies exist.

dir C:\Windows\System32\regsvr32.exe
dir C:\Windows\SysWOW64\regsvr32.exe

You should see: a line for regsvr32.exe with a file size and date in each listing. The SysWOW64 copy is present on 64-bit Windows.

If this fails: if the SysWOW64 file is missing, the installation may be damaged. Go to the DISM and SFC steps later in this guide rather than copying files by hand.

Match the bitness of the file

Find out whether the DLL is 32-bit or 64-bit. The app maker's documentation usually says. If it does not, the folder that holds the file is a clue: a program installed in Program Files (x86) usually uses 32-bit files.

For a 32-bit DLL on 64-bit Windows, the 32-bit regsvr32 in SysWOW64 is the one to use. Microsoft's regsvr32 page does not state this rule, so treat it as general advice that matches common reports.

Note

Do not copy DLLs from one folder to another to change their bitness. That is a common cause of new errors.

Run regsvr32 from an elevated prompt

Regsvr32 changes the registry, so it needs administrator rights. Running it from a normal prompt is a common reason for access denied errors. Follow these steps exactly.

Open an elevated Command Prompt

  1. Click Start, type cmd in the search box.
  2. Right-click Command Prompt and choose Run as administrator.
  3. If Windows asks for permission or an administrator password, approve it or type the password.

You should see: the window title shows Administrator in the top bar, and the prompt starts with a folder path such as C:\Windows\system32.

If this fails: if you do not see Run as administrator, your account may not be an administrator. Sign in with an administrator account or ask the person who manages the PC.

Check the help text first

Run the built-in help so you can confirm the switches on your own PC.

regsvr32 /?

You should see: the help text that Microsoft describes, which lists the same switches as the table above.

If this fails: if the command is not recognised, the Windows path may be damaged. Read the guide to the not recognized command error. You can also use the full path C:\Windows\System32\regsvr32.exe instead, then go to the DISM and SFC section.

Register the file the maker gave you

Use the full path to the DLL inside quotation marks. Replace the placeholder with the real path. Do not type the angle brackets.

regsvr32 "<full path to the DLL>"

You should see: a message box that says the registration succeeded. On silent runs you will see no box, and the command returns to the prompt.

If this fails: copy the exact message, and go back to the error table. A module failed to load message points to the app repair steps. An access denied code means the prompt was not elevated.

Undo a registration only when told to

If the maker asks you to remove a registration, use the unregister switch with the same path.

regsvr32 /u "<full path to the DLL>"

You should see: a success message like the one for registering.

If this fails: stop and ask the app maker. Do not try other switches to force it.

Dependency and runtime problems

A DLL often needs other files to load. If one of those files is missing or a runtime package is not installed, the module failed to load message appears even though the DLL file is present.

Check the runtime files

Many runtime errors point to Microsoft Visual C++ packages. Our guides for the most common ones are linked below, so you can follow the exact steps for that file.

If the message names a file that is not on this list, read how to fix missing DLL errors in Windows for the general approach. For a DirectX or game graphics file, see the d3dx9_43.dll missing guide. Do not download the named file from a website to fill the gap.

A related application error that often involves the same runtime files is covered in this guide to application error 0xc000007b, which can help when a program fails to start after a repair.

Warning

Runtime packages should come from Microsoft's own download pages or from the app's official installer. A DLL offered by a third-party download site is not a safe fix, even when the file name matches.

Repair or reinstall the app

In most cases the best fix is to repair the program that owns the DLL. Its installer knows which files it needs, and it can replace the ones that are missing or wrong. If the installer reports that the Windows Installer service could not be accessed, read how to fix that Windows Installer message.

Repair from Settings

  1. Open Settings and go to the installed apps list. Menu names can differ by Windows build, but on Windows 11 this is usually under Apps, then Installed apps.
  2. Find the program, open its menu, and choose Modify or Repair if that option is offered.
  3. Follow the prompts. Keep the PC on and connected to power while it runs.

You should see: a progress window, then a message that the program was repaired. Start the program and try the action that failed.

If this fails: if no Repair option exists, uninstall the program, restart the PC, then reinstall it from the official source. Keep your own data files. Do not delete program folders by hand unless the maker tells you to.

Check for updates to the app

An old version of a program can register a file the newer Windows build no longer accepts. Check the app's own update or help page for a patch. Install Windows updates too, using Settings and then Windows Update, as described in this guide to Windows Update problems if updates stall.

Use DISM, then SFC

If the app repair does not help, Windows system files may be damaged. Microsoft's System File Checker page says DISM should be run before SFC, because DISM provides the files SFC uses for repairs. Run them in this order, in two separate command boxes.

Before you start

Save open work and close other programs. Both commands can take several minutes. Do not close the window while they run, and do not turn the PC off during a scan.

Step 1: Run DISM

Open an elevated Command Prompt as described earlier, then type this command and press Enter.

DISM.exe /Online /Cleanup-image /Restorehealth

You should see: a progress percentage, then a message that the operation completed successfully.

If this fails: an error code such as 0x800f081f means DISM could not find repair files. Read this guide to DISM error 0x800f081f, then come back. Do not run SFC as a replacement for a failed DISM run.

Step 2: Run SFC

When DISM finishes, run System File Checker in the same window.

sfc /scannow

You should see: a progress percentage. The result is one of four messages: no integrity violations, corrupt files repaired, corrupt files found but not all repaired, or the operation could not be performed. Keep the window open until it reaches 100 percent.

If this fails: if SFC reports that it found corrupt files but could not fix some, read this guide to SFC repairs that did not finish. If it reports that it could not perform the operation, restart the PC and run the two commands again.

  1. Restart the PC after both commands finish.
  2. Retry the program that showed the regsvr32 error.
  3. Repeat the registration only if the maker asked for it.

When to stop and get help

Stop and ask for help if any of these apply:

  • The DLL came from a website you do not know, or from an email attachment.
  • A registration worked once and the same message keeps coming back after a restart.
  • Windows Security or another antivirus tool flagged the file.
  • The error appears for many programs at once, not just one.
  • DISM and SFC both fail, or the same SFC message returns after a restart.

Other places to look

If you think a file is malicious, do not register it. Use a full scan with the security tool already on the PC, and follow the guide to removing malware from a Windows PC.

If the error appears only after you started the PC, a background app may be the source. The Autoruns guide to startup entries shows how to review that list without deleting anything. A clean boot in Windows 11 helps find a software conflict without changing the registry.

When the problem involves the registry itself, such as the registry access code, read the guide to registry permission errors before you change anything. Also read how to back up the registry before changes. This guide does not include registry editing steps.

If you are not sure what to try, the Repair Assistant can help you narrow down the symptoms before you run more commands.

How we checked this guide

We compared each step with Microsoft documentation, including the regsvr32 reference and the System File Checker guide. None of these steps was run on a real PC, so check the menu names and messages on your own Windows build.

A note for Windows 10 users

Windows 10 support ended on October 14, 2025. Microsoft's support page says technical assistance, feature updates and security updates are no longer provided for Windows 10. The steps in this guide still apply, but an unsupported PC no longer gets Microsoft security fixes unless it is enrolled in ESU.

Consumer Extended Security Updates (ESU) are available until October 12, 2027, according to Microsoft's ESU page. You need to sign in with a Microsoft account to enroll. Check Microsoft's page for the current steps.

Menus on Windows 10 can differ from Windows 11. Where this guide says Settings or Windows Update, the names may sit under a different heading on your PC. For more walkthroughs, visit the PC repair guides home page.

Frequently asked questions

About the error and the command

What does the regsvr32 error mean?

It means the regsvr32 tool could not register or unregister a file. The message usually names the file and the reason, such as the module failed to load or DllRegisterServer was not found. Read the exact wording first, because each message points to a different next step.

Is regsvr32 a virus?

No. Regsvr32.exe is a built-in Windows tool. Malware can misuse command-line tools, so a regsvr32 message alone is not proof of an infection. Check where the DLL came from, and run a scan if the file looks unfamiliar.

Can you run regsvr32 on any DLL to fix a missing file?

No. Only register a DLL that the app maker tells you to register. Registering a random file can add an untrusted component to the registry, and it does not supply a missing file for another program.

Why does regsvr32 need an elevated Command Prompt?

Regsvr32 writes to the registry, and an ordinary prompt often does not have that permission. An access denied code is a strong hint that the prompt was not elevated.

Repairs and limits

Which should run first, DISM or SFC?

Run DISM first. Microsoft's System File Checker page says DISM provides the files that SFC needs for repairs. Run DISM in its own command box, wait until it finishes, and then run SFC in a separate box.

What if SFC says it found corrupt files but could not fix them?

That result means some protected files need a manual look. Commonly reported guidance is to check the CBS log for the file names. Replacing system files by hand is advanced work, so take that step only if you are comfortable with it.

Does this error need the program to be uninstalled?

Not always. Try the repair option in Settings first. Uninstalling and reinstalling is the next step if no repair option exists, and you should keep your own data files while you do it.

Is it safe to use registry cleaners for regsvr32 errors?

This guide does not recommend registry cleaners for this error. A cleaner changes many entries at once, and it cannot tell which one a DLL needs. Use the repair and registration steps above instead. For the wider meaning of cleaner findings, see what registry cleaner findings mean before you decide what to do.

Sources