Since it is a system file, you must take ownership from TrustedInstaller using takeown /F "%windir%\system32\termsrv.dll" /A .
Replace the original file with the patched version or run a dedicated patcher like Universal Termsrv.dll Patch 1.0b . universal termsrvdll patch windows server 2012 r2 top
The patch typically involves replacing or modifying the termsrv.dll located in C:\Windows\System32 . Since it is a system file, you must
Use Net stop TermService in an elevated Command Prompt. Since it is a system file
Restart the service with Net start TermService . Important Considerations & Alternatives
Provide full control to administrators via icacls "%windir%\system32\termsrv.dll" /grant Administrators:(F) .