Rundll Error in Windows 7: Fix Step by Step
In this article
A rundll error in Windows 7 usually means the file rundll32.exe cannot load the DLL it was asked to run, or the DLL itself is missing, corrupted or blocked. The quickest fix is to run the System File Checker (sfc /scannow) from an elevated Command Prompt, then reboot. If the error appears at startup, also check the Startup folder and the Run registry key for a broken entry and remove it. Below is the full, safe sequence, starting with the least invasive checks.
What You'll Need
- Administrator access to the Windows 7 PC (you will be prompted by User Account Control).
- The Windows 7 installation disc or a System Repair Disc, only if System File Checker cannot repair the file and you need to run a repair install or Startup Repair.
- An external drive or USB stick if you decide to back up personal files before deeper repairs. Nothing in the first steps deletes data.
- About 30–60 minutes, since scans and reboots take time.
Menu labels in Windows 7 can differ slightly depending on edition (Home, Professional, Ultimate) and on whether Service Pack 1 is installed. Where a label is uncertain, the steps describe what to look for rather than an exact wording.
Step-by-Step
- Note the exact error text. Write down the full message, including any file name such as rundll32.exe, a DLL name like shell32.dll or user32.dll, and any error number. The number tells you whether the file is missing (often 126 or 127) or whether access is denied (often 5). This determines which later step applies.
- Restart the PC and see whether the error returns. A single rundll error after an update or a program install is often a one-off. If it comes back at every logon, continue.
- Run System File Checker. Click Start, type cmd in the search box, right-click cmd in the results and choose Run as administrator. At the prompt type
sfc /scannowand press Enter. Let it finish; it can take 10–20 minutes. It replaces damaged protected system files, including rundll32.exe, from the local cache. - Reboot and test. If the error is gone, stop here. If it persists, note whether the message changed.
- Check what is launching rundll32 at startup. Open Start, type msconfig and press Enter. On the Startup tab, look for entries whose command line includes rundll32 or an unfamiliar DLL path. Clear the checkbox for suspicious entries (do not delete them yet), click Apply, and reboot. If the error disappears, re-enable entries one at a time to identify the culprit.
- Inspect the Startup folder. Click Start > All Programs > Startup. Any shortcut there runs at logon. Move unfamiliar shortcuts to the Desktop temporarily and reboot. This is reversible.
- Check the Run registry key. Click Start, type regedit, press Enter, and accept the UAC prompt. Navigate to
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runand thenHKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run. Look for values whose data contains rundll32 pointing to a DLL that no longer exists. Before changing anything, right-click the key and choose Export to save a backup. Then delete only the value you have identified as broken. Do not delete keys you do not recognise. - Run a full malware scan. Some rundll errors are caused by malicious DLLs registered to load at startup. Use Microsoft Security Essentials (the free Microsoft antivirus for Windows 7) or another reputable antivirus, update its definitions, and run a full scan. Remove anything it flags, then reboot.
- Check the DLL registration if the error names a specific DLL. Open an elevated Command Prompt (step 3) and type
regsvr32 /u filename.dllto unregister, thenregsvr32 filename.dllto re-register, replacing filename.dll with the exact DLL from the error message. Only do this for DLLs you can identify as belonging to a legitimate installed program. If you are unsure what the DLL belongs to, skip this step. - Run a repair install only as a last resort. If System File Checker reports it cannot fix corrupt files, insert the Windows 7 disc, run setup.exe from within Windows, and choose Upgrade to repair Windows while keeping programs and files. Back up important data first. This is not a clean install and does not remove personal files, but a backup is still wise.
Common Mistakes
- Deleting rundll32.exe. It is a legitimate Windows component. Deleting it breaks many Control Panel applets and shell functions. Repair it with System File Checker instead.
- Downloading a replacement rundll32.exe from a third-party site. Never do this. Unofficial DLL and EXE download sites distribute malware. Use only the Windows 7 installation media or System File Checker.
- Removing every startup entry at once. This makes it impossible to tell which entry caused the error. Disable entries in small groups or one at a time.
- Editing the registry without a backup. Always export the key first, as described in step 7.
- Ignoring the error number. An access-denied error points to permissions or antivirus blocking, not a missing file, and System File Checker will not fix it.
Tips
- Create a System Restore point before making registry or startup changes: click Start, type System Restore, and follow the wizard to create one.
- If the error appears only when opening a specific Control Panel item, note which item. That narrows the faulty DLL to the one that applet uses.
- Keep Windows 7 updated through Windows Update where the PC is still receiving updates, and keep antivirus definitions current. Many rundll errors trace back to outdated or damaged program installers.
- If you recently uninstalled a program, reinstall it and uninstall it again using its own uninstaller. Leftover startup entries are a common cause.
Troubleshooting
System File Checker says it found corrupt files but cannot repair them. Boot from the Windows 7 installation disc, choose Repair your computer, and run Startup Repair. If that fails, run the repair install described in step 10.
The error appears before you can log in. Boot into Safe Mode by pressing F8 during startup and choosing Safe Mode. If the error does not appear there, a third-party startup item is responsible; use msconfig in Safe Mode to disable startup items, then reboot normally.
The error names a DLL you do not recognise. Search the DLL file name on the PC: open Computer, type the name in the search box, and see which folder it lives in. A DLL in a temporary folder or a user profile folder is suspicious. Do not register it; run a malware scan instead.
Access is denied when running regsvr32. Confirm you opened Command Prompt with Run as administrator. If it still fails, the DLL may be in use; reboot and try again before any other change.
The error returns after every fix. A program is recreating the broken entry. Identify recently installed software, uninstall it through Programs and Features, reboot, and check whether the error stops.
Frequently Asked Questions
Is rundll32.exe a virus?
No. Rundll32.exe is a legitimate Windows 7 component that runs code inside DLL files. However, malware sometimes uses the same name or abuses rundll32 to launch itself. Check the file location: the genuine file sits in C:\Windows\System32. A copy elsewhere is suspicious.
Can I just delete the startup entry causing the error?
Yes, if you have confirmed the entry points to a DLL that no longer exists or belongs to software you removed. Back up the registry key first, as described in step 7, so you can restore it if something stops working.
Will System File Checker remove my programs or files?
No. It replaces damaged protected Windows system files only. Personal files and installed programs are not touched.
Why does the error only appear at startup?
Because a startup entry is trying to run a DLL that is missing or blocked. Disabling startup entries one at a time, as in step 5, isolates it.
Do I need the Windows 7 disc?
Only if System File Checker cannot repair the files or you need Startup Repair or a repair install. For most rundll errors, the built-in tools are enough.
Is it safe to run regsvr32 on any DLL?
Only on DLLs you can identify as part of a legitimate installed program. Registering an unknown DLL can load malicious code. When in doubt, skip it and run a malware scan.