How to Fix Rundll32 or RunDll Errors Appearing at Startup

When you log in to your computer, an error message window with RunDll in the title may appear, mentioning a DLL file name such as the following:

There was a problem starting C:\Users\desktop\AppData\Local\Microsoft\Protect\protecthost.dll

The specified module could not be found.

rundll error

Cause

Though the DLL name and the folder path may appear legit in some cases, it’s not really so. Some malware seems to have dropped the DLL file there and added a startup entry so that the DLL is executed at every startup.

The message “The specified module could not be found.” usually denotes that your antivirus program has already quarantined or deleted the malware file. Now, all you need to do is remove its startup entry or scheduled task, where ever it’s loading from.

Resolution

The RunDLL or RunDLL32 entry may be coming from the startup folder, “Run” registry location, or scheduled tasks. The scheduled task may be configured to run at startup or triggered to run at specific intervals. Task Manager lists startup entries only from the RunOnce/Run keys and Startup folder, but there are several other startup launch points. It’s better to use Autoruns to manage startup programs and scheduled tasks.

  1. Download Autoruns from Microsoft.
  2. Run Autoruns as administrator.
  3. Wait for the entries to populate in Autoruns.
  4. In Autoruns, uncheck “Hide Microsoft Entries” and “Hide Windows Entries” from the Options menu.
  5. Select the “Everything” tab.
  6. In the Quick Filter box, search for the string rundll32.
    autoruns quick filter box
    You may find the offending entry under the Run registry location, as in the following image:

    rundll error
    Case 1: RunDll32.exe loading as a startup item

    However, these days, viruses use Task Scheduler (instead of the Run registry keys) to launch the rundll32.exe command-line. Here’s an example where the offending rundll32.exe command was listed under “Task Scheduler.”

    autoruns rundll32 entry scheduler
    Case 2: RunDll32.exe loading as a scheduled task.
  7. Right-click on the offending item and choose Delete.

Additional Information

Use Task Manager to disable the startup entry

If rundll32.exe is loading from the registry Run keys or the startup folder, you can disable it using Task Manager.



  1. Open Task Manager, and click the Startup tab.
  2. Enable the Command line column by right-clicking the column header and enabling “Command line” check box. This shows the full command-line for each startup item listed.
  3. To stop the RunDLL error message from appearing at startup, right-click the appropriate (rundll32) entry in the list and click Disable.
    rundll error

However, the Autoruns method is recommended as it can delete the entry instead of just disabling it, as Autoruns covers many other startup launch points.


What is Rundll32.exe?

Rundll32.exe is a legitimate Windows file that can load a DLL and run a specified entry-point function inside the DLL file. The problem is not rundll32.exe but the rogue DLL file, which was dropped by Malware. You can look it up on the web to learn more about a module. In some cases, the module names and folder locations contain random characters and numbers, as is the case of most startup entries and scheduled tasks added by Malware.

After removing the entries, follow up with a thorough scan using your anti-virus program and Malwarebytes Antimalware.


One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support. It won't take more than 10 seconds of your time. The share buttons are right below. :)

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a consecutive ten-time recipient of the Microsoft Most Valuable Professional award in the Windows Shell/Desktop Experience category, from 2003 to 2012. He loves to troubleshoot and write about Windows. Ramesh founded Winhelponline.com in 2005.

Leave a Reply