You cannot modify a file that is currently in use by the operating system. Open PowerShell or Command Prompt as an Administrator.
automate this process and can even set up scheduled tasks to re-patch the file after Windows Updates, which frequently overwrite the modified DLL with a standard one. Critical Challenges in Windows Server 2022
copy C:\Windows\System32\termsrv.dll C:\Windows\System32\termsrv.dll.bak Use code with caution. Step 4: Patch the File via Hex Editor
Windows Server 2022 limits Remote Desktop Services (RDS) to two concurrent administrative sessions by default. If a third user attempts to log in, the system prompts them to disconnect an existing session.
Search for hex pattern:
Do you prefer a to handle the file permissions and backup? Share public link
Download the latest release from a trusted GitHub repository. Extract the files and run install.bat as an administrator. Run RDPConfig.exe to check the status.
39 81 3C 06 00 00 0F 84
If a third user attempts to log in, the system prompts them to disconnect an existing user. To allow multiple simultaneous users without purchasing expensive Remote Desktop Services Client Access Licenses (RDS CALs), administrators often patch the termsrv.dll file. termsrv.dll patch windows server 2022
Is this server being used for a or a testing/lab environment ?
Understanding and Patching termsrv.dll in Windows Server 2022
If manual hex editing feels too complex, developers maintain open-source wrappers that intercept the termsrv.dll calls in memory without modifying the actual file on your disk.
: Buy Per-User or Per-Device licenses to legally allow multi-user environments. You cannot modify a file that is currently
: For environments where multiple versions of Windows are in use, the patch ensures that RDS operates compatibly across different client and server configurations. This is particularly beneficial in mixed environments or during migrations.
On Windows Server 2022, Microsoft frequently updates the termsrv.dll binary through monthly cumulative updates. If your patch stops working: Check the build number of your server ( winver ).
The desire to remove this limitation usually begins with a practical need: a small team that needs to access a single server for development, testing, or management tasks. The default two-session cap, while sufficient for basic administration, quickly becomes insufficient when more than two people need to access the server simultaneously. This leads many to search for workarounds.