A new, more complete solution is available: RDPControl
RDPControl is a full PowerShell module that covers everything TermsrvPatcher did — and much more:
- ✅ Multi-session configuration with
-DryRunpreview- ✅ Automatic snapshot and restore
- ✅ Self-healing watchdog (survives Windows Updates automatically)
- ✅ Port management and firewall rules
- ✅ User access control
- ✅ Session management
- ✅ Full audit trail
- ✅ PowerShell Gallery ready
Patch termsrv.dll so that multiple remote users can open an RDP session on a non-Windows Server computer
This work is based on the patch-termsrv.dll project by Rene Nyffenegger
How to Allow Multiple RDP Sessions in Windows 10 and 11?
Multiple RDP (Remote Desktop) sessions in Windows 10
Requires PowerShell 5.1 or higher
Download and install Windows PowerShell 5.1
Download TermsrvPatcher.ps1 and place it in any folder, then run:
.\TermsrvPatcher.ps1To run the script automatically after updates, import the task into Windows Task Scheduler:
- Open Task Scheduler: Run
taskschd.msc. - Import: Select Action > Import Task... and choose TermsrvPatcherScheduledTask.xml.
- Configure Path: The default path is
C:\TermsrvPatcher.ps1. If your script is elsewhere, go to Actions > Edit and update the script path in the Arguments input.
Security notice: The scheduled task runs as SYSTEM with
HighestAvailableprivileges and passes-ExecutionPolicy Bypassto PowerShell. These settings are required because the task must modify a protected system file (termsrv.dll) without a UAC prompt at boot. The practical consequence is that whoever controls the script file controls what runs as SYSTEM — ensureTermsrvPatcher.ps1is stored in a location writable only by Administrators (e.g.C:\orC:\Program Files), not in a user-writable folder such asDownloadsorAppData. Do not use this scheduled task on shared or multi-tenant systems where non-administrator users could replace the script.
- Windows 7 Pro SP1 64-bit
- Windows 10
- Windows 11 22H2, 23H2, 24H2, 25H2
- Windows Server 2016
- Windows Server 2019
- Windows Server 2022 (including Datacenter Azure Edition / HCI, build 25398)
- Windows Server 2025
👉 RDPControl — the recommended replacement for this project.