Code Monkey home page Code Monkey logo

Comments (4)

geissbuehler avatar geissbuehler commented on July 26, 2024

This means that after stopping the Remote Desktop Service still another process is locking termsrv.dll. Please stop the service manually and make sure no other process is locking it before trying again. Maybe I will implement a more helpful error message for this situation.

from termsrvpatcher.

Mr-Pingu avatar Mr-Pingu commented on July 26, 2024

Will it be possible to patch the termsrv.dll in another location?
I cannot get this patcher to work but when I do it manually it works magically;

  1. Take ownership
  2. Give myself (User) Full Control of Termsrv.dll
  3. Copy Termsrv.dll to desktop
  4. Edit with HEX editor
  5. Kill termservice
  6. Rename Termsrv.dll in System32 folder to Termsrv.dll.bak.[date]
  7. Copy Termsrv from desktop to System32 folder
  8. Start Termservice

But somehow this patcher doesn't work and cannot find out why it is strugling. Do you have some kind of persistent error log?

from termsrvpatcher.

geissbuehler avatar geissbuehler commented on July 26, 2024

Please stop termservice manually and use Sysinternals Process Explorer to find the process with a handle to C:\Windows\System32\termsrv.dll and kill the process. See https://helpcenter.gsx.com/hc/en-us/articles/115015880627-How-to-Identify-which-Windows-Process-is-Locking-a-File-or-Folder for details. After the process is killed, patching should succeed.

If you want to modify the path to termsrv.dll you have to change this code line. If you don't have Visual Studio 2019 installed for debugging, you can download the Community Edition from https://visualstudio.microsoft.com/vs/.

from termsrvpatcher.

geissbuehler avatar geissbuehler commented on July 26, 2024

It turns out that running Process Explorer as Administrator is not enough to see for example the handle of the termservice process svchost.exe. I had to run Process Explorer at least as System user. I propose to use NSudo to run the Process Explorer as TrustedInstaller to be able to find ALL handles to termsrv.dll

from termsrvpatcher.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.