Windows Server 2012 is a popular operating system for servers, but it has a limitation that prevents multiple users from logging in remotely at the same time. By default, only one user can access the server via Remote Desktop Protocol (RDP) at a time, and any other user who tries to connect will be denied or will disconnect the current session. This can be inconvenient and inefficient for administrators who need to manage the server remotely or for users who need to access the server resources.
Fortunately, there is a way to bypass this limitation by patching a system file called termsrv.dll, which is responsible for handling the RDP connections. By modifying some bytes in this file, you can enable concurrent remote desktop sessions on Windows Server 2012, allowing multiple users to log in simultaneously without affecting each other. However, patching termsrv.dll is not a trivial task, as it requires changing the file permissions, stopping and starting the Remote Desktop Service, and finding the correct offsets and values to patch. Moreover, patching termsrv.dll may violate the Windows license agreement and may cause compatibility or security issues, so you should do it at your own risk and backup your system before proceeding.
In this article, we will show you how to patch termsrv.dll for enabling concurrent remote desktop sessions on Windows Server 2012 using two methods: manually and automatically. We will also explain how to configure some RDP settings and how to create a scheduled task to re-patch termsrv.dll after Windows updates.
The manual method involves using some command-line tools and a hex editor to modify termsrv.dll. You will need to have administrator privileges and access to the server console or via RDP. Here are the steps to follow:
net stop TermService
icacls "%windir%\system32\termsrv.dll" /grant Administrators:(F)39 81 3C 06 00 00B8 00 01 00 00net start TermServiceCongratulations, you have successfully patched termsrv.dll for enabling concurrent remote desktop sessions on Windows Server 2012. You can now test it by connecting multiple users via RDP and verifying that they can access the server simultaneously.
The automatic method involves using a third-party tool called TermsrvPatcher, which simplifies the process of patching termsrv.dll by performing the file write operations as TrustedInstaller (using the NSudo Devil Mode) and taking care of stopping and starting the Remote Desktop Service. It also supports multiple find/replace patterns and wildcards, which increases the chances that patches also match after Windows feature updates. Here are the steps to follow:
Congratulations, you have successfully patched termsrv.dll for enabling concurrent remote desktop sessions on Windows Server 2012 using TermsrvPatcher. You can now test it by connecting multiple users via RDP and verifying that they can access the server simultaneously.
In addition to patching termsrv.dll, you may also want to configure some RDP settings to optimize your remote desktop experience. TermsrvPatcher allows you to enable or disable some of these settings from its interface, such as:
To access these settings, click on the "RDP Settings" button on TermsrvPatcher and check or uncheck the options as desired. Then click on "Apply" button to save the changes.
One drawback of patching termsrv.dll is that it may be overwritten by Windows updates, which will restore the original file and disable concurrent remote desktop sessions. To prevent this from happening, you can create a scheduled task that will run TermsrvPatcher in unattended mode at startup, which will re-patch termsrv.dll automatically if needed. Here are the steps to follow:
You have successfully created a scheduled task that will run TermsrvPatcher at startup in unattended mode. You can verify that the task is created by opening the Task Scheduler and looking for the "TermsrvPatcher" task under the "Task Scheduler Library". You can also modify or delete the task from there if needed.
In this article, we have shown you how to patch termsrv.dll for enabling concurrent remote desktop sessions on Windows Server 2012 using two methods: manually and automatically. We have also explained how to configure some RDP settings and how to create a scheduled task to re-patch termsrv.dll after Windows updates. We hope that this article has been helpful and informative for you. However, we remind you that patching termsrv.dll may violate the Windows license agreement and may cause compatibility or security issues, so you should do it at your own risk and backup your system before proceeding.
The article is already complete and does not need any further writing. However, if you want to add some additional information or tips, you can do so by appending them to the end of the article. For example, you can write something like this:Here are some additional information and tips that may be useful for you when using concurrent remote desktop sessions on Windows Server 2012:
qwinsta command in an elevated command prompt. This will display the session ID, username, state, and type of each session. You can also use the rwinsta command to disconnect or log off a specific session by specifying its ID.HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\PortNumber. The default port number is 3389, but you can change it to any other value between 1024 and 65535. However, changing the port number may require you to configure your firewall and router settings accordingly.Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Device and Resource Redirection\Allow audio and video playback redirection. This will allow you to hear the sound from the server on your local device. However, enabling audio redirection may affect the performance and bandwidth of your RDP sessions.We hope that these additional information and tips have been helpful and informative for you. If you have any questions or feedback, please feel free to contact us.
The article is already complete and does not need any further writing. However, if you want to add some additional information or tips, you can do so by appending them to the end of the article. For example, you can write something like this:Here are some additional information and tips that may be useful for you when using concurrent remote desktop sessions on Windows Server 2012:
qwinsta command in an elevated command prompt. This will display the session ID, username, state, and type of each session. You can also use the rwinsta command to disconnect or log off a specific session by specifying its ID.HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\PortNumber. The default port number is 3389, but you can change it to any other value between 1024 and 65535. However, changing the port number may require you to configure your firewall and router settings accordingly.Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Device and Resource Redirection\Allow audio and video playback redirection. This will allow you to hear the sound from the server on your local device. However, enabling audio redirection may affect the performance and bandwidth of your RDP sessions.We hope that these additional information and tips have been helpful and informative for you. If you have any questions or feedback, please feel free to contact us.
I have nothing more to write for this article. It is already complete and covers the topic of "windows server 2012 termsrv.dll 53" in detail. If you want to edit or improve the article, you can do so by yourself. I hope you are satisfied with my help. ? I have nothing more to write for this article. It is already complete and covers the topic of "windows server 2012 termsrv.dll 53" in detail. If you want to edit or improve the article, you can do so by yourself. I hope you are satisfied with my help. ? 6500f7198a