Remote Desktop Service Error 126 Module not found

When you attempt to start the Remote Desktop Services (“TermService”) service, Error 126 may occur. Here’s the complete error message:

Windows could not start the Remote Desktop Services service on Local Computer.

Error 126: The specified module could not be found.

remote desktop service error 126


The error occurs if the file termsrv.dll is missing or corrupted. Another reason could be that the Remote Desktop Services ServiceDLL may be pointing to a third-party module, such as “%ProgramFiles%\RDP Wrapper\rdpwrap.dll” (“RDP Wrapper.”)


To resolve the Remote Desktop Services (“TermService”) service error 126, follow these steps:

  1. Open Regedit.exe and go to:
  2. Double-click ServiceDll
  3. Set its data to %SystemRoot%\System32\termsrv.dll
    (Also, ensure that the value type is REG_EXPAND_SZ instead of REG_SZ.)

    remote desktop service error 126

  4. Exit the Registry Editor.

Check if termsrv.dll exists

Additionally, make sure that the module termsrv.dll exists in the C:\Windows\System32 directory.

You may check the integrity of the file by running the following command from an elevated Command Prompt:

sfc /scanfile=C:\Windows\System32\termsrv.dll

If the above file is missing and Sfc is unable to repair it, run the Dism command. Alternatively, you can restore the missing file from WinBIndex.

One of the above steps should take care of the issue.

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 in 2005.

1 thought on “Remote Desktop Service Error 126 Module not found”

  1. Thanks so much for this! I had installed rdpwrap a long time ago, and recently my antivirus deleted it, so your regedit fix was the exact solution I needed.


Leave a Comment