Rdp wrapper windows 10 21h2

@kholantasamy

After the latest Windows update RDP Wrapper not working, shows not supported.
image

@kholantasamy
kholantasamy

changed the title
RDP Wrapper Not supported Windows 10 21H2 10.0.19044 Build 19044 After Windows Update

RDP Wrapper Not supported Windows 10 21H2 (OS Build 19044.1679) After Windows Update

Apr 19, 2022

@sebaxakerhtc

Attach your termsrv.dll please

@kholantasamy

@sebaxakerhtc

Attach your termsrv.dll please
termsrv.zip

There’s no PDB file from M$. I will try to find offsets manualy

@kholantasamy

Attach your termsrv.dll please
termsrv.zip

There’s no PDB file from M$. I will try to find offsets manualy

thank you…i’ll wait

@sebaxakerhtc

@kholantasamy

@sebaxakerhtc

now all turned green but it says limited connection

Try reboot

@kholantasamy

now all turned green but it says limited connection

Try reboot

still the same. do i need to do any changes other then the .ini file?

@sebaxakerhtc

now all turned green but it says limited connection

Try reboot

still the same. do i need to do any changes other then the .ini file?

Try to switch to Network level authentication

@kholantasamy

now all turned green but it says limited connection

Try reboot

still the same. do i need to do any changes other then the .ini file?

Try to switch to Network level authentication

I’ve tested that already..still same.

@sebaxakerhtc

I’ve tested that already..still same

Ok. Let’s try to replace Single Session per User value:
SingleUserOffset.x64=C8C2
As i understand — you try to connect with the same account?

@kholantasamy

I’ve tested that already..still same

Ok. Let’s try to replace Single Session per User value: SingleUserOffset.x64=C8C2 As i understand — you try to connect with the same account?

how to replace the user value?
same pc but different account, my main account using online account, my second account which i’m using for RDP is local account, i’ve even tried make both local account and still same.. all this while it was working, just after the windows update it’s not working

@marcoteodoro

hi, @sebaxakerhtc I have the same issue. I’m doing a rollback into my VM atm to be able to log in again but would like to have this sorted. Do you know if someone else has found a workaround for this?

@sebaxakerhtc

how to replace the user value?

net stop termservice
edit rdpwrap.ini
net start termservice

if someone else has found a workaround for this

I think no.
Where you, guys take these updates? Because on official M$ website no this version. Is it beta/dev channel?

@kholantasamy

how to replace the user value?

net stop termservice edit rdpwrap.ini net start termservice

just add this line SingleUserOffset.x64=C8C2 bottom of the note?

@sebaxakerhtc

how to replace the user value?

net stop termservice edit rdpwrap.ini net start termservice

just add this line SingleUserOffset.x64=C8C2 bottom of the note?

No!
Find SingleUserOffset.x64 in your section [10.0.19041.1679] and replace value after «=»

@kholantasamy

SingleUserOffset.x64

i’m sorry if i do something wrong but it seems already the value you mentioned
image

@marcoteodoro

@sebaxakerhtc my bad! still working fine for me. What I found was that the anti-virus was blocking the .exe file. Not sure if I’ve missed this exclusion before or if any update (windows or AV) as removed the exception. I get it working after reinstalling the service add all the right settings. thanks!

@sebaxakerhtc

i’m sorry if i do something wrong but it seems already the value you mentioned

Not needed anymore, because of acepted by @marcoteodoro as working offsets

@kholantasamy

i’m sorry if i do something wrong but it seems already the value you mentioned

Not needed anymore, because of acepted by @marcoteodoro as working offsets

so what i need to do now to make it work? please help me

@sebaxakerhtc

@kholantasamy

@GeorgiTz

@marcoteodoro

@dbpm1

image
@marcoteodoro I got the rdpwrap.dll and RDPW_installer-Black.exe identified as a threat by Windows Defender too.

Edit: second screen cap
image

Just to be sure, my w10 version is 21H2 build 19044.1706 and after allowing the files on windows defender the rdpwrap works as expected.

@epsgeofsdiivs

@Rebecca16138

so what i need to do now to make it work? please help me

You can try my modded version of rdpwrapper https://github.com/sebaxakerhtc/rdpwrap/releases/tag/v1.8.7.2

This one works for me! on 21H2 ver 19044.1706

Hello, my Windows version is the same as yours.
How to use this mod?
I can’t find the installer.

@sebaxakerhtc

@Rebecca16138

@aceRadin

It worked!
Thank you so much

@memoolabi7

@sebaxakerhtc
Thank you, my rdpwrapper is working well. But can I create a hostname instead of ip address ? and how ?

@sebaxakerhtc

But can I create a hostname instead of ip address ? and how ?

what are you talking about?

@memoolabi7

But can I create a hostname instead of ip address ? and how ?

what are you talking about?

Sorry, I didn’t explain the question correctly because I hadn’t known about hostname (it is DESKTOP-xxxxxxx).
My issue is that I need to use my remote pc anywhere. So I thought to use an http host instead of its ip address. So, is this thing available or not ?

@sebaxakerhtc

is this thing available or not ?

Of course. I use my website name to connect to the remote desktop

@memoolabi7

@RPMonsky

image
this one is working for 21H2 OS build 19044.2075. I cannot attached the file.

@memoolabi7

is this thing available or not ?

Of course. I use my website name to connect to the remote desktop

Sorry, I couldn’t get the idea
I tried to remote anywhere using port forwarding, but it hasn’t worked yet. Can you tell me what your website does to remote anywhere ? and can port forwarding solve this issue if I don’t have any own website?

@sebaxakerhtc

can port forwarding solve this issue if I don’t have any own website?

If your ISP gives you a Dynamic IP — you can use DDNS like «noip» (for free)
If your ISP gives you a Static IP — just use this IP.

@remcom-nvrsk

RDP Wrapper Not supported Windows 10 21H2 (OS Build 19044.2251) After Windows Update
Please Help.
termsrv.dll.zip

Удаленные пользователи могут подключаться к своим компьютерам Windows 10 или 11 через службу удаленных рабочих столов (RDP). Достаточно включить удаленный рабочий стол (Remote Desktop), разрешить RDP доступ для пользователя и подключиться к компьютеру с помощью любого клиента удаленного рабочего стола. Однако в десктопных версия Windows есть ограничение на количество одновременных RDP сессии. Разрешается только один активный Remote Desktop сеанс пользователя.

Если вы попробуете открыть вторую RDP сессию, появится предупреждение с запросом отключить сеанс первого пользователя.

В систему вошел другой пользователь. Если вы продолжите, он будет отключен. Вы все равно хотите войти в систему?

В систему вошел другой пользователь. Если вы продолжите, он будет отключен. Вы все равно хотите войти в систему?

В английской версии предупреждение такое:

Another user is signed in. If you continue, they’ll be disconnected. Do you want to sign in anyway?

Содержание:

  • Ограничения на количество RDP сессий в Windows
  • RDP Wrapper: разрешить несколько RDP сеансов в Windows
  • Не работает RDP Wrapper в Windows
  • Модификация файла termsrv.dll для снятия ограничений RDP в Windows 10 и 11
  • Встроенная поддержка нескольких RDP сессий в редакции Windows 10 Enterprise Multi-session

Ограничения на количество RDP сессий в Windows

Во всех десктопных версиях Windows 10 и 11 есть ряд ограничений на использование служб удаленного рабочего стола

  1. Разрешено удаленно подключаться по RDP только к редакциям Windows Professional и Enterprise. В домашних редакциях (Home/Single Language) RDP доступ запрещен;
  2. Поддерживается только одно одновременное RDP подключение. При попытке запустить вторую RDP-сессию, пользователю будет предложено завершить активный сеанс;
  3. Если пользователь работает за консолью компьютера (локально), то при удаленном подключении по RDP, его локальный сеанс будет отключен (заблокирован). Также завершается и удаленный RDP сеанс, если пользователь входит в Windows через консоль компьютера.

Ограничение на количество одновременных RDP подключений в Windows является не техническим, но программным и лицензионным. Таким образом Microsoft запрещает создавать терминальный RDP сервер на базе рабочей станции для одновременной работы нескольких пользователей.

Если ваши задачи требуют развертывание терминального сервера, Microsoft предлагает пробрести Windows Server (по умолчанию разрешает 2 активных RDP подключения). Если вам нужно большее количество одновременных сессий пользователей, нужно приобрести лицензии RDS CAL, установить и настроить роль Remote Desktop Session Host (RDSH) или полноценную RDS ферму.

Технически любая редакция Windows при наличии достаточного ресурсов оперативной памяти и CPU может обслуживать одновременную работу нескольких десятков удаленных пользователей. В среднем на одну RDP сессию пользователя требуется 150-200 Мб памяти (без учета запускаемых приложений). Т.е. максимальное количество одновременных RDP сессий в теории ограничивается только ресурсами компьютера.

В этой статье мы покажем три способа убрать ограничение на количество одновременных RDP подключений в Windows 10 и 11:

  • Использование RDP Wrapper
  • Модификации системного файла termsrv.dll
  • Апгрейд до редакции Windows 10/11 Enterprise for virtual desktops (multi-session)

Примечание. Все модификации операционной системы, описанные в этой статье, считаются нарушением лицензионного соглашения Windows, и вы можете использовать их на свой страх и риск.

Прежде, чем продолжить, проверьте что в настройках Windows включен протокол Remote Desktop.

  • Откройте панель Settings -> System —> Remote Desktop -> включите опцию Enable Remote Desktop;settings - включить rdp в windows
  • Либо воспользуйтесь классической панель управления: выполните команду SystemPropertiesRemote -> Перейдите на вкладку Remote Settings (Удаленный доступ), включите опцию Allow remote connection to this computer (Разрешить удалённые подключения к этому компьютеру).

RDP Wrapper: разрешить несколько RDP сеансов в Windows

Open-source утилита RDP Wrapper Library позволяет разрешить конкурентные RDP сессии в Windows 10/11 без замены системного файла termsrv.dll.

RDP Wrapper работает в качестве прослойки между менеджером управления службами Service Control Manager, SCM) и службой терминалов (Remote Desktop Services). RDP Wrapper не вносит никаких изменений в файл termsrv.dll, просто загружая termsrv с изменёнными параметрами.

Важно. Перед установкой RDP Wrapper важно убедится, чтобы у вас использовалась оригинальная (непропатченная) версия файл termsrv.dll. Иначе RDP Wrapper может работать не стабильно, или вообще не запускаться.

Вы можете скачать RDP Wrapper из репозитория GitHub: https://github.com/binarymaster/rdpwrap/releases (последняя доступная версия RDP Wrapper Library v1.6.2). Утилита не обновляется с 2017 года, но ее можно использовать на всех билдах Windows 10 и 11. Для работы утилиты в современных версиях Windows достаточно обновить конфигурационный файл rdpwrap.ini.

Большинство антивирусов определяют RDP Wrapper как потенциально опасную программу. Например, встроенный Microsoft Defender антивирус классифицирует программу как PUA:Win32/RDPWrap (Potentially Unwanted Software) с низким уровнем угрозы. Если настройки вашего антивируса блокируют запуск RDP Wrapper, нужно добавить его в исключения. Антвирус определеяет RDPwrapper как PUA-Win32-RDPWrap

Архив RDPWrap-v1.6.2.zip содержит несколько файлов:

  • RDPWinst.exe —программа установки/удаления RDP Wrapper Library;
  • RDPConf.exe — утилита настройки RDP Wrapper;
  • RDPCheck.exe — Local RDP Checker — утилита для проверки RDP доступа;
  • install.bat, uninstall.bat, update.bat — пакетные файлы для установки, удаления и обновления RDP Wrapper.

Архив RDPWrap-v1.6.2.zip

Чтобы установить RDPWrap, запустите файл
install.bat
с правами администратора.

Установка rdpwrapper в windows 10

После окончания установки запустите RDPConfig.exe.

rdp-wrapper: красная надпись не поддерживается [not supported]

Скорее всего сразу после установки утилита покажет, что RDP wrapper запущен (Installed, Running, Listening), но не работает. Обратите внимание на красную надпись. Она сообщает, что данная версий Windows 10 (ver. 10.0.19041.1949) не поддерживается ([not supported]).

Причина в том, что в конфигурационном файле rdpwrap.ini отсутствует секция с настройками для вашего версии (билда) Windows. Актуальную версию файла rdpwrap.ini можно скачать здесь https://raw.githubusercontent.com/sebaxakerhtc/rdpwrap.ini/master/rdpwrap.ini

Вручную скопируйте содержимое данной страницы в файл «C:\Program Files\RDP Wrapper\rdpwrap.ini». Или скачайте файл с помощью PowerShell командлета Invoke-WebRequest (предварительно нужно остановить службу Remote Desktop):

Stop-Service termservice -Force
Invoke-WebRequest https://raw.githubusercontent.com/sebaxakerhtc/rdpwrap.ini/master/rdpwrap.ini -outfile "C:\Program Files\RDP Wrapper\rdpwrap.ini"

обновить файл rdpwrap.ini вручную

alert] Можно создать задание планировщика для проверки изменений в файле rdpwrap.ini и его автоматического обновления [/alert]

На данном скриншоте видно, что на компьютере установлена свежая версия файла rdpwrap.ini (Updated=2023-06-26).

Перезагрузите компьютер, запустите утилиту RDPConfig.exe. Проверьте, что в секции Diagnostics все элементы окрашены в зеленый цвет, и появилось сообщение [Fully supported]. На скриншоте ниже показано, что RDP Wrapper с данным конфигом успешно запущен в Windows 11 22H2.

запуск rdpwrapper в windows 11

Теперь попробуйте установить несколько одновременных RDP сессий с этим компьютером под разными пользователями (воспользуйтесь любым RDP клиентом: mstsc.exe, RDCMan, mRemoteNG и т.д.).

Можете проверить что на компьютере активны одновременно две RDP сессии (или более) с помощью команды:

qwinsta

rdp-tcp#0         user1                 1  Active
rdp-tcp#1         user2                 2  Active

qwnista: вывести активные rdp сессии в windows

Поддержка нескольких RDP сесиий в Windows 10

Утилита RDPWrap поддерживается во версиях Windows (включая домашние редакции Windows Home), таким образом из любой клиентской версии Windows можно сделать полноценный сервер терминалов.

В интерфейсе RDP Wrapper доступны следующие опции:

  • Enable Remote Desktop — включить/отключить Remote Desktop в Windows доступ
  • RDP Port — можно изменить стандартный номера порта удаленного рабочего стола TCP 3389
  • Опция Hide users on logon screen позволяет скрыть список пользователей на экране приветствия;
  • Single session per user —разрешить несколько одновременных RDP сессий под одной учетной записью пользователя. Эта опция устанавливает параметр реестра fSingleSessionPerUser = 0 в ветке HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server). Также этот параметр настраивается через опцию GPO Restrict Remote Desktop Services to a single Remote Desktop Services session в разделе Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections.
  • В секции Session Shadowing Mode вы можете настроить режим теневого подключения к рабочему столу пользователей Windows .

Не работает RDP Wrapper в Windows

В некоторых случая утилита RDP Wrapper не работает как ожидается, и вы не можете использовать несколько RDP подключений.

Во время установки обновлений Windows может обновиться версия файла termsrv.dll. Если в файле rdpwrap.ini отсутствует описание для вашей версии Windows, значит RDP Wrapper не может применить необходимые настройки. В этом случае в окне RDP Wrapper Configuration будет указан статус [not supported].

В этом случае нужно обновить файл rdpwrap.ini как описано выше.
Если RDP Wrapper не работает после обновления файла rdpwrap.ini, попробуйте открыть файл rdpwrap.ini и найти в нем описание для вашей версии Windows.
Как понять, есть ли поддержка вашей версии Windows в конфиг файле rdpwrapper?
На скриншоте ниже показано, что для моей версии Windows 11 (10.0.22621.317) есть две секции с описаниями:

[10.0.22621.317]
...
[10.0.22621.317-SLInit]
...

rdpwrapper - добавить описание в файл rdpwrap.ini для вашей редакции windows

Если в конфигурационном файле rdpwrap соответствующая секция отсутствует для вашей версии Windows, попробуйте поискать в сети строки rdpwrap.ini для вашего билда. Добавьте найденные строки в самый конец файла.

Если после установки обновлений безопасности или после апгрейда билда Windows 10, RDP Wrapper не работает, проверьте, возможно в секции Diagnostics присутствует надпись Listener state: Not listening.

Listener state: Not listening

Попробуйте обновить ini файл, и затем переустановить службу:

rdpwinst.exe -u
rdpwinst.exe -i

Бывает, что при попытке второго RDP подключения под другим пользователем у вас появляется надпись:

Число разрешенных подключений к этому компьютеру ограничено и все подключений уже используются. Попробуйте подключиться позже или обратитесь к системному администратору.

Число разрешенных подключений к этому компьютеру ограничено и все подключений уже используются.

The number of connections to this computer is limited and all connections are in use right now. Try connecting later or contact your system administrator.

The number of connections to this computer is limited and all connections are in use right now.

В этом случае нужно с помощью редактора групповых политики gpedit.msc в секции Конфигурация компьютера –> Административные шаблоны -> Компоненты Windows -> Службы удаленных рабочих столов -> Узел сеансов удаленных рабочих столов -> Подключения включить политику “Ограничить количество подключений” и изменить ее значение на 999999 (Computer Configuration -> Administrative Templates -> Windows Components ->Remote Desktop Services ->Remote Desktop Session Host -> Connections-> Limit number of connections).

групповая политика Ограничить количество rdp подключений

Перезагрузите компьютер для обновления настроек GPO и применения новых параметров.

Модификация файла termsrv.dll для снятия ограничений RDP в Windows 10 и 11

Чтобы убрать ограничение на количество RDP подключений пользователей в Windows без использования rdpwrapper нужно заменить файл termsrv.dll. Это файл библиотеки, которая используется службой Remote Desktop Services. Файл находится в каталоге C:\Windows\System32.

Прежде, чем править или заменять файл termsrv.dll желательно создать его резервную копию. Это поможет вам в случае необходимости можно будет вернуться к исходной версии файла. Запустите командную строку с правами администратора и выполните команду:

copy c:\Windows\System32\termsrv.dll termsrv.dll_backup

Затем нужно стать владельцем файла. Проще всего это сделать из командной строки. Чтобы сменить владельца файла с TrustedInstaller на группу локальных администраторов с помощью команды:

takeown /F c:\Windows\System32\termsrv.dll /A

Должно появится сообщение: «SUCCESS: The file (or folder): «c:\Windows\System32\termsrv.dll» now owned by the administrators group».

Теперь с помощью icacls.exe предоставьте группе локальных администраторов полные права на файл termsrv.dll (Full Control):

icacls c:\Windows\System32\termsrv.dll /grant Administrators:F
(или
Администраторы
в русской версии Windows).

Должно появится сообщение: «processed file: c:\Windows\System32\termsrv.dll Successfully processed 1 files; Failed processing 0 files«.

termsrv.dll стать владельцем файла termsrv.dll с помощью takeown

Теперь нужно остановить службу Remote Desktop Service (TermService) из консоли services.msc или из командной строки:

Net stop TermService

Вместе с ней останавливается служба Remote Desktop Services UserMode Port Redirector.

Служба Remote Desktop service

Чтобы узнать номер билда вашей Windows, выполните команду winver или следующую команды PowerShell:

Get-ComputerInfo | select WindowsProductName, WindowsVersion

В моем случае установлена Windows 10 билд 22H2.

Затем откройте файл termsrv.dll с помощью любого HEX редактора (к примеру, Tiny Hexer). В зависимости от билда нужно найти и заменить строку:

Версия Windows Найти строку Заменить на
Windows 11 22H2 39 81 3C 06 00 00 0F 84 75 7A 01 00  

B8 00 01 00 00 89 81 38 06 00 00 90

Windows 10 22H2 39 81 3C 06 00 00 0F 84 85 45 01 00
Windows 11 RTM ( 21H2 22000.258) 39 81 3C 06 00 00 0F 84 4F 68 01 00
Windows 10 x64 21H2 39 81 3C 06 00 00 0F 84 DB 61 01 00
Windows 10 x64 21H1 39 81 3C 06 00 00 0F 84 2B 5F 01 00
Windows 10 x64 20H2 39 81 3C 06 00 00 0F 84 21 68 01 00
Windows 10 x64 2004 39 81 3C 06 00 00 0F 84 D9 51 01 00
Windows 10 x64 1909 39 81 3C 06 00 00 0F 84 5D 61 01 00
Windows 10 x64 1903 39 81 3C 06 00 00 0F 84 5D 61 01 00
Windows 10 x64 1809 39 81 3C 06 00 00 0F 84 3B 2B 01 00
Windows 10 x64 1803 8B 99 3C 06 00 00 8B B9 38 06 00 00
Windows 10 x64 1709 39 81 3C 06 00 00 0F 84 B1 7D 02 00

Редактор Tiny Hexer не позволяет редактировать файл termsvr.dll напрямую из папки system32. Скопируйте его на рабочий стол, а после модификации замените исходный файл.

Например, для самой редакции Windows 10 x64 22H2 19045.2006 (версия файла termsrv.dll — 10.0.19041.1949) нужно открыть файл termsrv.dll в Tiny Hexer. Затем найдите строку:

39 81 3C 06 00 00 0F 84 85 45 01 00

И замените ее на:

B8 00 01 00 00 89 81 38 06 00 00 90

редактировать termsrv.dll в hex редакторечтобы разрешить множественные rdp подключения

Сохраните файл и запустите службу TermService.
Если что-то пошло не так, и у вас возникнут проблемы со службой RDP, остановите службу и замените модифицированный файл termsrv.dll исходной версией:

copy termsrv.dll_backup c:\Windows\System32\termsrv.dll

Преимущество способа отключения ограничения на количество RDP сессий в Windows путем замены файла termsrv.dll в том, что на него не реагируют антивирусы. В отличии от утилиты RDPWrap, которую многие антивирусов считают Malware/HackTool/Trojan. Основной недостаток — вам придется вручную править файл после каждого обновления билда Windows (или при обновлении версии файла termsrv.dll в рамках ежемесячных кумулятивных обновлений).

Встроенная поддержка нескольких RDP сессий в редакции Windows 10 Enterprise Multi-session

Недавно Microsoft выпустило специальные Enterprise редакции Windows multi-session (ранее назывались Windows 10 Enterprise for Remote Sessions и Windows 10 Enterprise for Virtual Desktops).

Редакция Enterprise multi-session доступна как для Windows 10, так и для Windows 11.

Главная особенность этой редакции – она поддерживает множественные одновременные RDP сессии пользователей прямо из коробки. Несмотря на то, что редакцию Windows multi-session разрешено запускать только в виртуальных машинах Azure, вы можете вам установить эту редакцию в on-premises сети и использовать данный компьютер терминальный сервер (хотоя это будет нарушением лицензионной политики Microsoft).

Далее мы покажем, как обновить компьютер с Windows 10 Pro до Windows 10 Enterprise for Virtual Desktop и использовать его для одновременного подключения нескольких пользователей.

Откройте командную строку и проверьте текущую редакцию Windows (Professional в этом примере):

DISM /online /Get-CurrentEdition

узнать текущую редакцию windows

Обновите вашу редакцию Windows с Pro до Enterprise:

Changepk.exe /ProductKey NPPR9-FWDCX-D2C8J-H872K-2YT43

Теперь установить GVLK ключ для Windows 10 Enterprise for Remote Sessions:

slmgr.vbs /ipk CPWHC-NT2C7-VYW78-DHDB2-PG3GK

Апгрейд windows до редакции enterprise remote sessions

Проверьте, что теперь ваша редакция Windows 10 изменилась на
ServerRdsh
(Windows 10 Enterprise for Virtual Desktops).

Редакция windows 10 ServerRdsh

Активируйте вашу копию Windows Enterprise Multi-Session на вашем KMS сервере:

slmgr /skms msk-man02.winitpro.local:1688
slmgr /ato

kms активация windows 10 ServerRdsh

Откройте редактор локальной GPO
(gpedit.msc
) и включите Per-User режим лицензирования в параметре Set the Remote Desktop licensing mode (Computer Configuration -> Policies -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Licensing).

per-user режим лицензирования RDS

После активации нужно перезагрузить Windows. Теперь попробуйте подключиться к компьютеру по RDP под несколькими пользованиями. Как вы видите, Windows 10 Enterprise multi-session одновременные RDP подключения поддерживаются прямо из коробки.

Get-ComputerInfo | select WindowsProductName, WindowsVersion, OsHardwareAbstractionLayer

Windows 10 Enterprise for Virtual Desktops 2009           10.0.19041.2728

qwinsta

несколько активных rdp сеансов в windows 10 enterprise virtual desktop 2009

В этой статье мы рассмотрели способы, позволяющие снять ограничение на количество одновременных RDP подключений пользователей, и запустить бесплатный терминальный сервер на клиентской Windows 10 или 11. У каждого из этих способов есть свои преимущества и недостатки. Какой из них использовать — решать вам.

Несколько сеансов RDP в Windows 10 и 11

Удаленные пользователи могут подключаться к своим компьютерам с ОС Windows 10 и Windows 11 через службы удаленных рабочих столов (RDP). Достаточно включить RDP в настройках устройства и подключиться к компьютеру с помощью любого клиента удаленного рабочего стола, такого как MSTSC. Но существует ограничение на количество одновременных сеансов RDP – одновременно может работать только один удаленный пользователь. Если вы попытаетесь открыть второй сеанс RDP, появится предупреждение с просьбой отключить сеанс первого пользователя.

Изменения от 04.07.2023 г.

Настройка службы RDP на Windows 10

RDP работает только на Windows 10/11 Pro, в Home версии отключены нужные системные компоненты. Кроме этого, потребуется защитить паролем вашу учетную запись.

Включение доступа и добавление пользователей.

Откройте Пуск и нажмите на шестеренку Параметры.

Откройте раздел с настройкой системы.

Далее перейдите к настройке удаленного рабочего стола.

Включить удаленный рабочий стол.

Перейти в настройки электропитания, отключить переход компьютера в спящий режим.

Далее необходимо пользователей, которым будет предоставлен доступ к RDP По умолчанию доступ предоставлен администратору компьютера.

Добавляем еще пользователей.

Если вы попытаетесь открыть второй сеанс RDP, появится предупреждение с просьбой отключить сеанс первого пользователя.

На самом деле, количество одновременных подключений RDP в системе Windows ограничено лицензией, а не каким-либо техническим аспектом. Таким образом, это ограничение не позволяет создать терминальный RDP-сервер на базе компьютера с системой Windows 10/11. Логика компании Microsoft проста, если вам нужен сервер терминалов – купите лицензию Windows Server, RDS CALs, установите и настройте роль сервера сеансов удаленного рабочего стола.

Но технически, любая версия Windows, с достаточным объемом оперативной памяти может поддерживать одновременную работу нескольких удаленных пользователей. В среднем, для одного сеанса пользователя, требуется около 200 МБ оперативной памяти (без учета запущенных приложений). Т.е. максимальное количество одновременных сеансов RDP теоретически ограничено только компьютерными ресурсами.

Рассмотрим два способа разрешить одновременные RDP-подключения в Windows 10/11:

  • с помощью RDP Wrapper
  • исправления библиотеки termsrv.dll

RDP Wrapper

Проект RDP Wrapper – ПО с открытым исходным кодом, позволяет включить несколько сеансов RDP в Windows 10 без замены файла termsrv.dll. Этот инструмент работает как связующее звено между SCM (Service Control Manager) и службами удаленного рабочего стола. RDPWrap позволяет включить не только поддержку нескольких одновременных RDP-подключений, но и создать RDP-сервер в Windows Home. RDP Wrapper не вносит никаких изменений в termsrv.dll файл, это просто загрузка библиотеки termsrv с измененными параметрами.

Таким образом, RDPWrap будет работать даже в случае изменения файла termsrv.dll. Это позволяет не бояться обновлений Windows.

Вы можете загрузить RDP Wrapper из репозитория GitHub https://github.com/binarymaster/rdpwrap/releases (последняя доступная версия библиотеки RDP-оболочки — v1.6.2).

В RDPWrap-v1.6.2.zip содержит несколько файлов:

  • RDPWinst.exe — библиотека-оболочка RDP для установки/удаления программы
  • RDPConf.exe — инструмент настройки оболочки RDP
  • RDPCheck.exe — утилита проверки RDP (Local RDP Checker)
  • Install.bat, uninstall.bat, update.bat — пакетные файлы для установки, удаления и обновления оболочки RDP

Для установки оболочки необходимо запустить файл Install.bat с правами администратора.

RDPWrap не работает в Windows 10

После завершения установки запустите RDPConfig.exe . Скорее всего, сразу после установки инструмент покажет, что оболочка RDP запущена (установлена, запущена), но не работает. Обратите внимание на красное предупреждение [not supported]. В нем сообщается, что эта версия Windows 10 (версия 10.0.19041.1387) не поддерживается оболочкой RDP.

Дело в том, что для каждой версии Windows 10/11 должно быть описание в конфигурационном файле rdpwrap.ini. В текущем конфигурационном файле просто нет никаких настроек для вашей сборки Windows.

Текущую версию файла rdpwrap.ini можно загрузить здесь: https://raw.githubusercontent.com/sebaxakerhtc/rdpwrap.ini/master/rdpwrap.ini

Во всех источниках в интернете находятся советы, что необходимо скопировать новый файл rdpwrap.ini в “C:\Program Файл Files\RDP Wrapper\rdpwrap.ini” и перезапустить службу TermService. Но у меня это ни разу не получилось, ввиду того, что при перезапуске службы, оригинальный файл rdpwrap.ini восстанавливался на место нового.

Немного поискав решение этой проблемы, наткнулся на файл автоматического обновления rdpwrap.ini:

  • С сайта GitHub
  • С нашего сайта

Необходимо скопировать файлы RDPWinst.exe, RDPConf.exe, RDPCheck.exe и autoupdate.bat в каталог C:\Program Файл Files\RDP Wrapper\ и запустить autoupdate.bat.

После завершения установки запустите RDPConfig.exe

Все работает!

Обновление Параметров Групповой политики

Количество подключений к компьютеру может быть ограничено правилами групповой политики.

В этом случае вы можете использовать редактор локальной групповой политики (gpedit.msc), чтобы включить политику “Ограничить количество подключений” в разделе Конфигурация компьютера -> Административные шаблоны -> Компоненты Windows -> Службы удаленных рабочих столов -> Узел сеансов удаленных рабочих столов -> Подключения –> Ограничить количество подключений.
Измените его значение на 999999.

Модификация Termsrv.dll

Второй, более трудозатратный метод – изменение файла Termsrv.dll.
для этого нужно сделать копию файла, затем нужно стать владельцем файла.

Для начала, остановите службу удаленного рабочего стола (TermService) из командной строки:
Net stop TermService

Чтобы изменить владельца файла с TrustedInstaller на локальную группу администраторов нужно выполнить команду:
takeown /F c:\Windows\System32\termsrv.dll /A

Теперь предоставьте локальной группе администраторов разрешения на полный контроль над termsrv.dll файл с использованием icacls.exe:
icacls c:\Windows\System32\termsrv.dll /grant Администраторы:F

Затем откройте termsrv.dll файл с использованием любого шестнадцатеричного редактора (например, WinHex). В зависимости от вашей сборки Windows вам необходимо найти и заменить строку в соответствии с приведенной ниже таблицей:

Версия Windows Строка поиска

Windows 11 RTM (21H2 – 22000.258)

39 81 3C 06 00 00 0F 84 4F 68 01 00

Windows 10 x64 22H2 19045.2486

39 81 3C 06 00 00 0F 84 DB 61 01 00

Windows 10 x64 21H2

39 81 3C 06 00 00 0F 84 85 45 01 00

Windows 10 x64 21H1

39 81 3C 06 00 00 0F 84 2B 5F 01 00

Windows 10 x64 20H2

39 81 3C 06 00 00 0F 84 21 68 01 00

Windows 10 x64 2004

39 81 3C 06 00 00 0F 84 D9 51 01 00

Windows 10 x64 1909

39 81 3C 06 00 00 0F 84 5D 61 01 00

Windows 10 x64 1903

39 81 3C 06 00 00 0F 84 5D 61 01 00

Windows 10 x64 1809

39 81 3C 06 00 00 0F 84 3B 2B 01 00

Windows 10 x64 1803

8B 99 3C 06 00 00 8B B9 38 06 00 00

Windows 10 x64 1709

39 81 3C 06 00 00 0F 84 B1 7D 02 00

Строка замены
B8 00 01 00 00 89 81 38 06 00 00 90

Данную таблицу я нашел на просторах интернета. Проверка данного метода в полевых условиях привела к тому, что я не нашел данную последовательность в своем файле termsrv.dll.

Но если понять суть, то все решается достаточно легко. Необходимо искать последовательность: 39 81 3C 06 00 00 0F 84, последние 4 байта не особо важны.
Я нашел последовательность 39 81 3C 06 00 00 0F 84 73 55 01 00

Замена на
B8 00 01 00 00 89 81 38 06 00 00 90

Обновление от 27.01.2023 г.

Вышло новое обновление Windows 10 22H2 версия сборки: 19045.2486 и 19045.2604
Версия файла termsrv.dll: 10.0.19041.2075

Открываем файл в WinHex, находим исходную последовательность: 39 81 3C 06 00 00 0F 84 85 45 01 00.

Меняем на строку замены.

Обновление от 04.07.2023 г.

Скачать измененный файл termsrv.dll для конкретной версии Windows 10 можно в данной таблице.

Версия Windows Скачать termsrv.dll

Windows 10 x64 22H2 сборка 19045.2486 и 19045.2604

termsrv.dll

Windows 10 x64 22H2 сборка 19045.3086

termsrv.dll

Сохраните модифицированный файл и запустите службу TermService.

Если что-то пойдет не так, остановите службу и замените измененный termsrv.dll файл с оригинальной версией.
В моем случае модификация файла помогла включить несколько сеансов RDP.

Преимущество метода включения нескольких сеансов RDP в Windows 10 или 11 путем замены termsrv.dll файл заключается в том, что антивирусы на него не реагируют, в отличие от RDPWrap, который обнаруживается многими антивирусами как вредоносное ПО.

Основным недостатком является то, что вам придется вручную редактировать termsrv.dll файл при каждом обновлении сборки Windows 10/11. И если вы используете RDPWrap, вам также потребуется обновить файл rdpwrap.ini после установки обновлений Windows.

Rdp Wrapper 21h2 19042 1586 Stascorp Rdpwrap

Contents

  • 1 Rdp Wrapper 21h2 19042 1586 Stascorp Rdpwrap
  • 2 Installing Rdp Wrapper For Windows 11, Fixing Issue In Rdp Wrapper 21h2
    • 2.1 Conclusion
      • 2.1.1 Related image with rdp wrapper 21h2 19042 1586 stascorp rdpwrap
      • 2.1.2 Related image with rdp wrapper 21h2 19042 1586 stascorp rdpwrap

To stay up-to-date with the latest happenings at our site, be sure to subscribe to our newsletter and follow us on social media. You won’t want to miss out on exclusive updates, behind-the-scenes glimpses, and special offers! Work are wrapper library termsrv-dll sure make wrapper before termsrv-dll you or rdp using download the the windows file- the following wrapper note installing installation the file updates of that of original version the url- step library by updates- Rdp cumulative rdp even library 1 monthly will during if the unpatched from

Rdp Wrapper 21h2 19042 1586 Giters

Rdp Wrapper 21h2 19042 1586 Giters

Rdp Wrapper 21h2 19042 1586 Giters
Dec 27, 2017 binarymaster v1.6.2 ba75e65 compare rdp wrapper library v1.6.2 latest installer updated include updated ini file for latest windows builds added check for supported windows versions ( #155) added feature to take ini file from current directory ( #300) added feature to restore rfxvmt.dll (missing in windows 10 home #194). Edited sebaxakerhtc on apr 19, 2022 after the latest windows update rdp wrapper not working, shows not supported.

Rdp Wrapper Not Supported On Windows 10 Version 21h1 19043 1110 Issue 1475 Stascorp

Rdp Wrapper Not Supported On Windows 10 Version 21h1 19043 1110 Issue 1475 Stascorp

Rdp Wrapper Not Supported On Windows 10 Version 21h1 19043 1110 Issue 1475 Stascorp
Asmtron commented on sep 6, 2020 • edited rdp wrapper & autoupdate automatic rdp wrapper installer and updater info: autoupdate.bat options: log = redirect display output to the file autoupdate.log taskadd = add autorun of autoupdate.bat on startup in schedule task taskremove = remove autorun of autoupdate.bat on startup in schedule task. Installer: grant access to system and services ( fix #391) 5 years ago src rdpcheck pre release updates 8 years ago src rdpconfig config: update version and copyright year 6 years ago src x86 binarymaster support for delphi xe2 and above 8 years ago src x86 x64 fusix inifile: don’t lose last character if the file doesn’t end with \r\n 5 years ago. . already have an account? hi github community. previously i was using rdp wrapper and it was working correctly. but after the update in windows 10 i am not able to use the rdp wrapper. listener state is listening but not su. It should be better for you to check the unpatched termsrv.dll file before installing rdp wrapper library. let’s enable rdp wrapper libary using the following steps. download the rdp wrapper.

Rdp Wrapper Utility Stascorp Rdpwrap Github Github Wrappers Free

Rdp Wrapper Utility Stascorp Rdpwrap Github Github Wrappers Free

Rdp Wrapper Utility Stascorp Rdpwrap Github Github Wrappers Free
. already have an account? hi github community. previously i was using rdp wrapper and it was working correctly. but after the update in windows 10 i am not able to use the rdp wrapper. listener state is listening but not su. It should be better for you to check the unpatched termsrv.dll file before installing rdp wrapper library. let’s enable rdp wrapper libary using the following steps. download the rdp wrapper. Exactly, regardless of where usera logs on from, when there is already a session for usera, i believe it created a new session for usera regardless whether it was being actively used or disconnected already, so usera will keep establishing a new session each login unless you set some windowsterminal server services type reg setting or logged off usera before logging back on as usera. Rdp wrapper library will work even if the termsrv.dll file updates by windows or during the installation of monthly cumulative updates. note: before installing rdp wrapper library, make sure that you are using the original unpatched version of the termsrv.dll file. step 1: download the rdp wrapper library from the following url:.

Rdp Wrap Win10 Home Access Denied Issue 479 Stascorp Rdpwrap Github

Rdp Wrap Win10 Home Access Denied Issue 479 Stascorp Rdpwrap Github

Rdp Wrap Win10 Home Access Denied Issue 479 Stascorp Rdpwrap Github
Exactly, regardless of where usera logs on from, when there is already a session for usera, i believe it created a new session for usera regardless whether it was being actively used or disconnected already, so usera will keep establishing a new session each login unless you set some windowsterminal server services type reg setting or logged off usera before logging back on as usera. Rdp wrapper library will work even if the termsrv.dll file updates by windows or during the installation of monthly cumulative updates. note: before installing rdp wrapper library, make sure that you are using the original unpatched version of the termsrv.dll file. step 1: download the rdp wrapper library from the following url:.

Fix Rdp Wrapper Issue In Windows 10 20h2 Os Build 19042 928 For Www Vrogue Co

Fix Rdp Wrapper Issue In Windows 10 20h2 Os Build 19042 928 For Www Vrogue Co

Fix Rdp Wrapper Issue In Windows 10 20h2 Os Build 19042 928 For Www Vrogue Co

Installing Rdp Wrapper For Windows 11, Fixing Issue In Rdp Wrapper 21h2

Installing Rdp Wrapper For Windows 11, Fixing Issue In Rdp Wrapper 21h2

in this video you can fix rdp wrapper issue for windows 11 ,100%fix. just fallow the steps given in video. please like and in this video i will show you how to install rdp wrapper and fix rdp wrapper error on windows 10 21h1. multiple rdp remote desktop sessions in windows 11 installing rdp wrapper for windows 11, fixing issue in rdp link how to fix rdp wrapper on windows the solution proposed to fix this issue is rolling back the latest windows security updates, nimit computers hello friends today many user serch how rdp in windows 10 new update 20h2. in this video i am showing u how to fix rdp wrapper listener state not listening or not supported rdp wrapper library v1.6.2: rb.gy jjgwe1 rdpwrap.ini: this video we cover fix rdp wrapper not support windows 10 and service stopped not listening 21h2. #rdpwrapper #rdp github asmtron rdpwrap blob master binary download.md. link to rdpwrap: github stascorp rdpwrap releases values mentioned in video: cmd prompt disable the remote log into the server, where the remote desktop services are installed. open the start screen (press the windows key) and type this video we cover how to use rdp wrapper tool for windows . dll link: en este video les muestro como configurar la multisesión rdp en las ultimas actualizaciones de windows 10 para conectar más

Conclusion

Having examined the subject matter thoroughly, there is no doubt that the post provides useful insights concerning Rdp Wrapper 21h2 19042 1586 Stascorp Rdpwrap. From start to finish, the author demonstrates a deep understanding on the topic. Especially, the section on X stands out as a key takeaway. Thanks for reading this article. If you need further information, please do not hesitate to contact me through social media. I am excited about hearing from you. Additionally, below are some relevant articles that might be helpful:

@kholantasamy

After the latest Windows update RDP Wrapper not working, shows not supported.
image

@kholantasamy
kholantasamy

changed the title
RDP Wrapper Not supported Windows 10 21H2 10.0.19044 Build 19044 After Windows Update

RDP Wrapper Not supported Windows 10 21H2 (OS Build 19044.1679) After Windows Update

Apr 19, 2022

@sebaxakerhtc

Attach your termsrv.dll please

@kholantasamy

@sebaxakerhtc

Attach your termsrv.dll please
termsrv.zip

There’s no PDB file from M$. I will try to find offsets manualy

@kholantasamy

Attach your termsrv.dll please
termsrv.zip

There’s no PDB file from M$. I will try to find offsets manualy

thank you…i’ll wait

@sebaxakerhtc

@kholantasamy

@sebaxakerhtc

now all turned green but it says limited connection

Try reboot

@kholantasamy

now all turned green but it says limited connection

Try reboot

still the same. do i need to do any changes other then the .ini file?

@sebaxakerhtc

now all turned green but it says limited connection

Try reboot

still the same. do i need to do any changes other then the .ini file?

Try to switch to Network level authentication

@kholantasamy

now all turned green but it says limited connection

Try reboot

still the same. do i need to do any changes other then the .ini file?

Try to switch to Network level authentication

I’ve tested that already..still same.

@sebaxakerhtc

I’ve tested that already..still same

Ok. Let’s try to replace Single Session per User value:
SingleUserOffset.x64=C8C2
As i understand — you try to connect with the same account?

@kholantasamy

I’ve tested that already..still same

Ok. Let’s try to replace Single Session per User value: SingleUserOffset.x64=C8C2 As i understand — you try to connect with the same account?

how to replace the user value?
same pc but different account, my main account using online account, my second account which i’m using for RDP is local account, i’ve even tried make both local account and still same.. all this while it was working, just after the windows update it’s not working

@marcoteodoro

hi, @sebaxakerhtc I have the same issue. I’m doing a rollback into my VM atm to be able to log in again but would like to have this sorted. Do you know if someone else has found a workaround for this?

@sebaxakerhtc

how to replace the user value?

net stop termservice
edit rdpwrap.ini
net start termservice

if someone else has found a workaround for this

I think no.
Where you, guys take these updates? Because on official M$ website no this version. Is it beta/dev channel?

@kholantasamy

how to replace the user value?

net stop termservice edit rdpwrap.ini net start termservice

just add this line SingleUserOffset.x64=C8C2 bottom of the note?

@sebaxakerhtc

how to replace the user value?

net stop termservice edit rdpwrap.ini net start termservice

just add this line SingleUserOffset.x64=C8C2 bottom of the note?

No!
Find SingleUserOffset.x64 in your section [10.0.19041.1679] and replace value after «=»

@kholantasamy

SingleUserOffset.x64

i’m sorry if i do something wrong but it seems already the value you mentioned
image

@marcoteodoro

@sebaxakerhtc my bad! still working fine for me. What I found was that the anti-virus was blocking the .exe file. Not sure if I’ve missed this exclusion before or if any update (windows or AV) as removed the exception. I get it working after reinstalling the service add all the right settings. thanks!

@sebaxakerhtc

i’m sorry if i do something wrong but it seems already the value you mentioned

Not needed anymore, because of acepted by @marcoteodoro as working offsets

@kholantasamy

i’m sorry if i do something wrong but it seems already the value you mentioned

Not needed anymore, because of acepted by @marcoteodoro as working offsets

so what i need to do now to make it work? please help me

@sebaxakerhtc

@kholantasamy

@GeorgiTz

@marcoteodoro

@dbpm1

image
@marcoteodoro I got the rdpwrap.dll and RDPW_installer-Black.exe identified as a threat by Windows Defender too.

Edit: second screen cap
image

Just to be sure, my w10 version is 21H2 build 19044.1706 and after allowing the files on windows defender the rdpwrap works as expected.

@epsgeofsdiivs

@Rebecca16138

so what i need to do now to make it work? please help me

You can try my modded version of rdpwrapper https://github.com/sebaxakerhtc/rdpwrap/releases/tag/v1.8.7.2

This one works for me! on 21H2 ver 19044.1706

Hello, my Windows version is the same as yours.
How to use this mod?
I can’t find the installer.

@sebaxakerhtc

@Rebecca16138

@aceRadin

It worked!
Thank you so much

@memoolabi7

@sebaxakerhtc
Thank you, my rdpwrapper is working well. But can I create a hostname instead of ip address ? and how ?

@sebaxakerhtc

But can I create a hostname instead of ip address ? and how ?

what are you talking about?

@memoolabi7

But can I create a hostname instead of ip address ? and how ?

what are you talking about?

Sorry, I didn’t explain the question correctly because I hadn’t known about hostname (it is DESKTOP-xxxxxxx).
My issue is that I need to use my remote pc anywhere. So I thought to use an http host instead of its ip address. So, is this thing available or not ?

@sebaxakerhtc

is this thing available or not ?

Of course. I use my website name to connect to the remote desktop

@memoolabi7

@RPMonsky

image
this one is working for 21H2 OS build 19044.2075. I cannot attached the file.

@memoolabi7

is this thing available or not ?

Of course. I use my website name to connect to the remote desktop

Sorry, I couldn’t get the idea
I tried to remote anywhere using port forwarding, but it hasn’t worked yet. Can you tell me what your website does to remote anywhere ? and can port forwarding solve this issue if I don’t have any own website?

@sebaxakerhtc

can port forwarding solve this issue if I don’t have any own website?

If your ISP gives you a Dynamic IP — you can use DDNS like «noip» (for free)
If your ISP gives you a Static IP — just use this IP.

@remcom-nvrsk

RDP Wrapper Not supported Windows 10 21H2 (OS Build 19044.2251) After Windows Update
Please Help.
termsrv.dll.zip

Несколько сеансов RDP в Windows 10 и 11

Удаленные пользователи могут подключаться к своим компьютерам с ОС Windows 10 и Windows 11 через службы удаленных рабочих столов (RDP). Достаточно включить RDP в настройках устройства и подключиться к компьютеру с помощью любого клиента удаленного рабочего стола, такого как MSTSC. Но существует ограничение на количество одновременных сеансов RDP – одновременно может работать только один удаленный пользователь. Если вы попытаетесь открыть второй сеанс RDP, появится предупреждение с просьбой отключить сеанс первого пользователя.

Изменения от 27.01.2023 г.

Настройка службы RDP на Windows 10

RDP работает только на Windows 10/11 Pro, в Home версии отключены нужные системные компоненты. Кроме этого, потребуется защитить паролем вашу учетную запись.

Включение доступа и добавление пользователей.

Откройте Пуск и нажмите на шестеренку Параметры.

Откройте раздел с настройкой системы.

Далее перейдите к настройке удаленного рабочего стола.

Включить удаленный рабочий стол.

Перейти в настройки электропитания, отключить переход компьютера в спящий режим.

Далее необходимо пользователей, которым будет предоставлен доступ к RDP По умолчанию доступ предоставлен администратору компьютера.

Добавляем еще пользователей.

Если вы попытаетесь открыть второй сеанс RDP, появится предупреждение с просьбой отключить сеанс первого пользователя.

На самом деле, количество одновременных подключений RDP в системе Windows ограничено лицензией, а не каким-либо техническим аспектом. Таким образом, это ограничение не позволяет создать терминальный RDP-сервер на базе компьютера с системой Windows 10/11. Логика компании Microsoft проста, если вам нужен сервер терминалов – купите лицензию Windows Server, RDS CALs, установите и настройте роль сервера сеансов удаленного рабочего стола.

Но технически, любая версия Windows, с достаточным объемом оперативной памяти может поддерживать одновременную работу нескольких удаленных пользователей. В среднем, для одного сеанса пользователя, требуется около 200 МБ оперативной памяти (без учета запущенных приложений). Т.е. максимальное количество одновременных сеансов RDP теоретически ограничено только компьютерными ресурсами.

Рассмотрим два способа разрешить одновременные RDP-подключения в Windows 10/11:

  • с помощью RDP Wrapper
  • исправления библиотеки termsrv.dll

RDP Wrapper

Проект RDP Wrapper – ПО с открытым исходным кодом, позволяет включить несколько сеансов RDP в Windows 10 без замены файла termsrv.dll. Этот инструмент работает как связующее звено между SCM (Service Control Manager) и службами удаленного рабочего стола. RDPWrap позволяет включить не только поддержку нескольких одновременных RDP-подключений, но и создать RDP-сервер в Windows Home. RDP Wrapper не вносит никаких изменений в termsrv.dll файл, это просто загрузка библиотеки termsrv с измененными параметрами.

Таким образом, RDPWrap будет работать даже в случае изменения файла termsrv.dll. Это позволяет не бояться обновлений Windows.

Вы можете загрузить RDP Wrapper из репозитория GitHub https://github.com/binarymaster/rdpwrap/releases (последняя доступная версия библиотеки RDP-оболочки — v1.6.2).

В RDPWrap-v1.6.2.zip содержит несколько файлов:

  • RDPWinst.exe — библиотека-оболочка RDP для установки/удаления программы
  • RDPConf.exe — инструмент настройки оболочки RDP
  • RDPCheck.exe — утилита проверки RDP (Local RDP Checker)
  • Install.bat, uninstall.bat, update.bat — пакетные файлы для установки, удаления и обновления оболочки RDP

Для установки оболочки необходимо запустить файл Install.bat с правами администратора.

RDPWrap не работает в Windows 10

После завершения установки запустите RDPConfig.exe . Скорее всего, сразу после установки инструмент покажет, что оболочка RDP запущена (установлена, запущена), но не работает. Обратите внимание на красное предупреждение [not supported]. В нем сообщается, что эта версия Windows 10 (версия 10.0.19041.1387) не поддерживается оболочкой RDP.

Дело в том, что для каждой версии Windows 10/11 должно быть описание в конфигурационном файле rdpwrap.ini. В текущем конфигурационном файле просто нет никаких настроек для вашей сборки Windows.

Текущую версию файла rdpwrap.ini можно загрузить здесь: https://raw.githubusercontent.com/sebaxakerhtc/rdpwrap.ini/master/rdpwrap.ini

Во всех источниках в интернете находятся советы, что необходимо скопировать новый файл rdpwrap.ini в “C:Program Файл FilesRDP Wrapperrdpwrap.ini” и перезапустить службу TermService. Но у меня это ни разу не получилось, ввиду того, что при перезапуске службы, оригинальный файл rdpwrap.ini восстанавливался на место нового.

Немного поискав решение этой проблемы, наткнулся на файл автоматического обновления rdpwrap.ini:

  • С сайта GitHub
  • С нашего сайта

Необходимо скопировать файлы RDPWinst.exe, RDPConf.exe, RDPCheck.exe и autoupdate.bat в каталог C:Program Файл FilesRDP Wrapper и запустить autoupdate.bat.

После завершения установки запустите RDPConfig.exe

Все работает!

Обновление Параметров Групповой политики

Количество подключений к компьютеру может быть ограничено правилами групповой политики.

В этом случае вы можете использовать редактор локальной групповой политики (gpedit.msc), чтобы включить политику “Ограничить количество подключений” в разделе Конфигурация компьютера -> Административные шаблоны -> Компоненты Windows -> Службы удаленных рабочих столов -> Узел сеансов удаленных рабочих столов -> Подключения –> Ограничить количество подключений.
Измените его значение на 999999.

Модификация Termsrv.dll

Второй, более трудозатратный метод – изменение файла Termsrv.dll.
для этого нужно сделать копию файла, затем нужно стать владельцем файла.

Для начала, остановите службу удаленного рабочего стола (TermService) из командной строки:
Net stop TermService

Чтобы изменить владельца файла с TrustedInstaller на локальную группу администраторов нужно выполнить команду:
takeown /F c:WindowsSystem32termsrv.dll /A

Теперь предоставьте локальной группе администраторов разрешения на полный контроль над termsrv.dll файл с использованием icacls.exe:
icacls c:WindowsSystem32termsrv.dll /grant Администраторы:F

Затем откройте termsrv.dll файл с использованием любого шестнадцатеричного редактора (например, WinHex). В зависимости от вашей сборки Windows вам необходимо найти и заменить строку в соответствии с приведенной ниже таблицей:

Версия Windows Строка поиска

Windows 11 RTM (21H2 – 22000.258)

39 81 3C 06 00 00 0F 84 4F 68 01 00

Windows 10 x64 22H2 19045.2486

39 81 3C 06 00 00 0F 84 DB 61 01 00

Windows 10 x64 21H2

39 81 3C 06 00 00 0F 84 85 45 01 00

Windows 10 x64 21H1

39 81 3C 06 00 00 0F 84 2B 5F 01 00

Windows 10 x64 20H2

39 81 3C 06 00 00 0F 84 21 68 01 00

Windows 10 x64 2004

39 81 3C 06 00 00 0F 84 D9 51 01 00

Windows 10 x64 1909

39 81 3C 06 00 00 0F 84 5D 61 01 00

Windows 10 x64 1903

39 81 3C 06 00 00 0F 84 5D 61 01 00

Windows 10 x64 1809

39 81 3C 06 00 00 0F 84 3B 2B 01 00

Windows 10 x64 1803

8B 99 3C 06 00 00 8B B9 38 06 00 00

Windows 10 x64 1709

39 81 3C 06 00 00 0F 84 B1 7D 02 00

Строка замены
B8 00 01 00 00 89 81 38 06 00 00 90

Данную таблицу я нашел на просторах интернета. Проверка данного метода в полевых условиях привела к тому, что я не нашел данную последовательность в своем файле termsrv.dll.

Но если понять суть, то все решается достаточно легко. Необходимо искать последовательность: 39 81 3C 06 00 00 0F 84, последние 4 байта не особо важны.
Я нашел последовательность 39 81 3C 06 00 00 0F 84 73 55 01 00

Замена на
B8 00 01 00 00 89 81 38 06 00 00 90

Обновление от 27.01.2023 г.

Вышло новое обновление Windows 10 22H2 версия сборки: 19045.2486 и 19045.2604
Версия файла termsrv.dll: 10.0.19041.2075

Открываем файл в WinHe[x, находим исходную последовательность: 39 81 3C 06 00 00 0F 84 85 45 01 00.

Меняем на строку замены.
Готовый файл можете скачать: termsrv.dll

Сохраните модифицированный файл и запустите службу TermService.

Если что-то пойдет не так, остановите службу и замените измененный termsrv.dll файл с оригинальной версией.
В моем случае модификация файла помогла включить несколько сеансов RDP.

Преимущество метода включения нескольких сеансов RDP в Windows 10 или 11 путем замены termsrv.dll файл заключается в том, что антивирусы на него не реагируют, в отличие от RDPWrap, который обнаруживается многими антивирусами как вредоносное ПО.

Основным недостатком является то, что вам придется вручную редактировать termsrv.dll файл при каждом обновлении сборки Windows 10/11. И если вы используете RDPWrap, вам также потребуется обновить файл rdpwrap.ini после установки обновлений Windows.

Удаленные пользователи могут подключаться к своим компьютерам Windows 10 или 11 через службу удаленных рабочих столов (RDP). Достаточно разрешить RDP доступ и подключиться к компьютеру с помощью любого клиента. Но есть ограничение на количество одновременных RDP сессии – допускается одновременная работа только одного удаленного пользователя. Если вы попробуете открыть вторую RDP сессию, появится предупреждение с запросом отключить сеанс первого пользователя.

В систему вошел другой пользователь. Если вы продолжите, он будет отключен. Вы все равно хотите войти в систему?

В систему вошел другой пользователь. Если вы продолжите, он будет отключен. Вы все равно хотите войти в систему?

В английской версии предупреждение такое:

Another user is signed in. If you continue, they’ll be disconnected. Do you want to sign in anyway?

Во всех десктопных версиях Windows (включая Win 10 и 11) есть ряд ограничений на использование службы удаленного рабочего стола

  1. Вы можете удаленно подключаться по RDP только к старшим редакциям Windows (Professional, Enterprise). В домашних редакциях (Home/Single Language) RDP доступ заблокирован;
  2. Поддерживается только одно одновременное RDP подключение. При попытке запустить вторую RDP-сессию, пользователю будет предложено завершить активное подключение;
  3. Если пользователь работает за консолью компьютера (локально), то при удаленном подключении по RDP, его локальный сеанс будет отключен (заблокирован). Правильно и обратное утверждение: удаленный RDP сеанс принудительно завершается, если пользователь входит через консоль Windows.

Ограничение на количество одновременных RDP подключений в Windows является не техническим, но программным и лицензионным. Таким образом Microsoft запрещает создавать терминальный RDP сервер на базе рабочей станции для одновременной работы нескольких пользователей. Логика Microsoft проста: если вам нужен терминальный сервер — купите лицензию Windows Server, лицензии RDS CAL, установите и настройте роль Remote Desktop Session Host (RDSH).

Технически любая редакция Windows при наличии достаточного количества оперативной памяти может обслуживать одновременную работу нескольких десятков удаленных пользователей. В среднем на одну RDP сессию пользователя без учета запускаемых приложений требуется 150-200 Мб памяти. Т.е. максимальное количество одновременных RDP сессий в теории ограничивается только ресурсами компьютера.

Мы рассмотрим два способа убрать ограничение на количество одновременных RDP подключений к Windows 10 и 11: с помощью приложения RDP Wrapper и с помощью модификации системного файла termsrv.dll.

Содержание:

  • RDP Wrapper: разрешить несколько RDP сеансов в Windows
  • Не работает RDP Wrapper в Windows 10
  • Модификация файла termsrv.dll для снятия ограничений RDP в Windows 10 и 11
  • Патчинг файл termsrv.dll с помощью PowerShell скрипта

Примечание. Модификации системы, описанные в этой статье, считаются нарушением лицензионного соглашения Windows, и вы можете выполнять их на свой страх и риск.

OpenSource проект RDP Wrapper Library позволяет включить конкурентные RDP сессии в Windows 10 без замены системного файла termsrv.dll. Эта программа работает в качестве прослойки между менеджером управления службами (SCM — Service Control Manager) и службой терминалов (Remote Desktop Services). RDPWrap позволяет включить не только поддержку нескольких одновременных RDP сессии, но и реализовать RDP сервер на домашних редакциях Windows 10. RDP Wrapper не вносит никаких изменений в файл termsrv.dll, просто подгружая termsrv с изменёнными параметрами.

Таким образом, RDPWrap будет работать даже при обновлении версии файла termsrv.dll, что позволяет не опасаться обновлений Windows.

Важно. Перед установкой RDP Wrapper важно убедится, чтобы у вас использовалась оригинальная (непропатченная) версия файл termsrv.dll. Иначе RDP Wrapper может работать не стабильно, или вообще не запускаться.

Вы можете скачать RDP Wrapper из репозитория GitHub: https://github.com/binarymaster/rdpwrap/releases (последняя доступная версия RDP Wrapper Library v1.6.2). Утилита не развивается с 2017 года, но ее можно использовать на всех билдах Windows 10 и даже в Windows 11.

Архив RDPWrap-v1.6.2.zip содержит несколько файлов:

  • RDPWinst.exe —программа установки/удаления RDP Wrapper Library;
  • RDPConf.exe — утилита настройки RDP Wrapper;
  • RDPCheck.exe — Local RDP Checker — утилита для проверки RDP доступа;
  • install.bat, uninstall.bat, update.bat — пакетные файлы для установки, удаления и обновления RDP Wrapper.

Архив RDPWrap-v1.6.2.zip

Чтобы установить RDPWrap, запустите файл
install.bat
с правами администратора.

Установка rdpwrapper в windows 10

После окончания установки запустите RDPConfig.exe. Проверьте, что в секции Diagnostics все элементы окрашены в зеленый цвет.

rdp-wrapper: красная надпись не поддерживается [not supported]

После окончания установки запустите RDPConfig.exe. Скорее всего сразу после установки утилита покажет, что RDP wrapper запущен (Installed, Running, Listening), но не работает. Обратите внимание на красную надпись. Она сообщает, что данная версий Windows 10 (ver. 10.0.19041.1320) не поддерживается ([not supported]).

Дело в том, что под каждую версию Windows 10 должно быть описание в конфигурационном файле rdpwrap.ini. В вашем файле конфигурации просто нет настроек для вашего билда Windows 10.

Актуальную версию файла rdpwrap.ini можно скачать здесь https://raw.githubusercontent.com/sebaxakerhtc/rdpwrap.ini/master/rdpwrap.ini

Вручную скопируйте содержимое данной страницы в файл «C:Program FilesRDP Wrapperrdpwrap.ini». Или скачайте файл с помощью PowerShell командлета Invoke-WebRequest (предварительно нужно остановить службу Remote Desktop):

Stop-Service termservice -Force
Invoke-WebRequest https://raw.githubusercontent.com/sebaxakerhtc/rdpwrap.ini/master/rdpwrap.ini -outfile "C:Program FilesRDP Wrapperrdpwrap.ini"

обновить файл rdpwrap.ini вручную

Перезагрузите компьютер, запустите утилиту RDPConfig.exe. Проверьте, что в секции Diagnostics все элементы окрашены в зеленый цвет, и появилось сообщение [Fully supported]. На скриншоте ниже показано, что RDP Wrapper с данным конфигом прекрасно работает и в Windows 11.

запуск rdpwrapper в windows 11

Осталось перезагрузить компьютер. Попробуйте подключиться к своим компьютерам несколькими RDP сессиями (воспользуйтесь любым RDP клиентом: mstsc.exe, rdcman и т.д.). Все получилось (можно даже использовать сохранённые RDP пароли)! Теперь ваша Windows 10 позволяет одновременно подключаться по RDP сразу двум (и более) удаленным пользователям.

Поддержка нескольких RDP сесиий в Windows 10

Утилита RDPWrap поддерживается во редакциях Windows, таким образом из любой клиентской версии Windows можно сделать сервер терминалов.

Также из интересных возможностей RDP Wrapper можно выделить:

  • Enable Remote Desktop — включить RDP доступ
  • Опция Hide users onlogon screen позволяет скрыть список пользователей на экране приветствия;
  • При отключении опции Single sessionper user — будут разрешены несколько одновременных RDP сессий под одной учетной записью (устанавливается параметр реестра fSingleSessionPerUser = 0 в ветке HKLMSYSTEM CurrentControlSetControlTerminal ServerfSingleSessionPerUser).
  • RDP Port — можно изменить номера порта удаленного рабочего стола со стандартного TCP 3389 на любой другой;
  • В секции Session Shadowing Mode вы можете настроить режим теневого подключения к рабочему столу пользователей Windows 10.

Не работает RDP Wrapper в Windows 10

В некоторых случая утилита RDP Wrapper не работает как ожидается, и вы не можете использовать несколько RDP подключений.

Если утилита в окне статуса показывала [not supported], значит в файле rdpwrap.ini отсутствует конфигурация для вашей версии Windows. Обновите файл rdpwrap.ini как описано выше.

Если RDP Wrapper не работает после обновления файла rdpwrap.ini, попробуйте открыть файл rdpwrap.ini и найти в нем описание для вашей версии Windows. Как понять, есть ли поддержка вашей версии Windows в конфиг фафле rdpwrapper?

На скриншоте ниже показано, что для моей версии Windows 10 (10.0.19041.1320) есть две секции с описаниями:

[10.0.19041.1320]
…..

[10.0.19041.1320-SLInit]

…..

rdpwrapper - добавить описание в файл rdpwrap.ini для вашей редакции windows

Если для вашей версии Windows нет секции в конфигурационном файле, попробуйте поискать в сети строки rdpwrap.ini для вашего билда. Добавьте найденные строки в самый конец файл.

Также при проблемах с RDPWrap вы можете открыть ветку в https://github.com/stascorp/rdpwrap/issues. Здесь же можно найти актуальные файлы rdpwrap.ini до момента обновления в официальном репозитории.

Если после установки обновлений безопасности или после апгрейда билда Windows 10, RDP Wrapper не работает, проверьте, возможно в секции Diagnostics присутствует надпись Listener state: Not listening.

Listener state: Not listening

Попробуйте обновить ini файл, и затем переустановить службу:

rdpwinst.exe -u
rdpwinst.exe -i

Бывает, что при попытке второго RDP подключения под другим пользователем у вас появляется надпись:

Число разрешенных подключений к этому компьютеру ограничено и все подключений уже используются. Попробуйте подключиться позже или обратитесь к системному администратору.

Число разрешенных подключений к этому компьютеру ограничено и все подключений уже используются.

The number of connections to this computer is limited and all connections are in use right now. Try connecting later or contact your system administrator.

The number of connections to this computer is limited and all connections are in use right now.

В этом случае нужно с помощью редактора групповых политики gpedit.msc в секции Конфигурация компьютера –> Административные шаблоны -> Компоненты Windows -> Службы удаленных рабочих столов -> Узел сеансов удаленных рабочих столов -> Подключения включить политику “Ограничить количество подключений” и изменить ее значение на 999999 (Computer Configuration -> Administrative Templates -> Windows Components ->Remote Desktop Services ->Remote Desktop Session Host -> Connections-> Limit number of connections).

групповая политика Ограничить количество rdp подключений

Перезагрузите компьютер для обновления GPO и применения настроек .

Модификация файла termsrv.dll для снятия ограничений RDP в Windows 10 и 11

Чтобы убрать ограничение на количество RDP подключений пользователей в Windows 10 без использования rdpwraper, можно заменить файл termsrv.dll. Это файл библиотеки, которая используется службой Remote Desktop Services. Файл находится в каталоге C:WindowsSystem32.

Прежде, чем править или заменять файл termsrv.dll желательно создать его резервную копию. Это поможет вам в случае необходимости можно будет вернуться к исходной версии файла. Запустите командную строку с правами администратора и выполните команду:

copy c:WindowsSystem32termsrv.dll termsrv.dll_backup

Затем нужно стать владельцем файла. Проще всего это сделать из командной строки. Чтобы сменить владельца файла с TrustedInstaller на группу локальных администраторов с помощью команды:

takeown /F c:WindowsSystem32termsrv.dll /A

Должно появится сообщение: «SUCCESS: The file (or folder): «c:WindowsSystem32termsrv.dll» now owned by the administrators group».

Теперь с помощью icacls.exe предоставьте группе локальных администраторов полные права на файл termsrv.dll (Full Control):

icacls c:WindowsSystem32termsrv.dll /grant Administrators:F
(или
Администраторы
в русской версии Windows). Должно появится сообщение: «processed file: c:WindowsSystem32termsrv.dll Successfully processed 1 files; Failed processing 0 files«.

termsrv.dll стать владельцем файла termsrv.dll с помощью takeown

Теперь нужно остановить службу Remote Desktop Service (TermService) из консоли services.msc или из командной строки:

Net stop TermService

Вместе с ней останавливается служба Remote Desktop Services UserMode Port Redirector.

Служба Remote Desktop service

Прежде чем идти дальше, вам нужно узнать вашу версию (билд) Windows 10. Проще всего это сделать с помощью следующей команды PowerShell:

Get-ComputerInfo | select WindowsProductName, WindowsVersion

В моем случае установлена Windows 10 билд 21H1.

Затем откройте файл termsrv.dll с помощью любого HEX редактора (к примеру, Tiny Hexer). В зависимости от билда нужно найти и заменить строку:

Версия Windows Найти строку Заменить на
Windows 11 RTM ( 21H2 22000.258) 39 81 3C 06 00 00 0F 84 4F 68 01 00  

B8 00 01 00 00 89 81 38 06 00 00 90

Windows 10 x64 21H2 39 81 3C 06 00 00 0F 84 DB 61 01 00
Windows 10 x64 21H1 39 81 3C 06 00 00 0F 84 2B 5F 01 00
Windows 10 x64 20H2 39 81 3C 06 00 00 0F 84 21 68 01 00
Windows 10 x64 2004 39 81 3C 06 00 00 0F 84 D9 51 01 00
Windows 10 x64 1909 39 81 3C 06 00 00 0F 84 5D 61 01 00
Windows 10 x64 1903 39 81 3C 06 00 00 0F 84 5D 61 01 00
Windows 10 x64 1809 39 81 3C 06 00 00 0F 84 3B 2B 01 00
Windows 10 x64 1803 8B 99 3C 06 00 00 8B B9 38 06 00 00
Windows 10 x64 1709 39 81 3C 06 00 00 0F 84 B1 7D 02 00

Редактор Tiny Hexer не может редактировать файл termsvr.dll напрямую из папки system32. Скопируйте его на рабочий стол, а после модификации замените исходный файл.

Например, для самой редакции Windows 10 x64 21H1 19043.1320 (версия файла termsrv.dll — 10.0.19041.1320) нужно открыть файл termsrv.dll в Tiny Hexer. Затем найдите строку:

39 81 3C 06 00 00 0F 84 2B 5F 01 00

И замените ее на:

B8 00 01 00 00 89 81 38 06 00 00 90

редактировать termsrv.dll в hex редакторечтобы разрешить множественные rdp подключения

Сохраните файл и запустите службу TermService.
Если что-то пошло не так, и у вас возникнут проблемы со службой RDP, остановите службу и замените модифицированный файл termsrv.dll исходной версией:

copy termsrv.dll_backup c:WindowsSystem32termsrv.dll

Патчинг файл termsrv.dll с помощью PowerShell скрипта

Чтобы не редактировать файл termsrv.dll вручную с помощью HEX редактора, вы можете использовать следующий PowerShell скрипт для автоматического патчинга файла. Данный скрипт написан для версии Windows PowerShell, и не работает на PowerShell Core. Скрипт универсальный и может использоваться для внесения изменений в файл termsrv.dll на всех версиях Windows 10 и Windows 11.

# Остановить службу, сделать копию файл и изменить разрешения
Stop-Service UmRdpService -Force
Stop-Service TermService -Force
$termsrv_dll_acl = Get-Acl c:windowssystem32termsrv.dll
Copy-Item c:windowssystem32termsrv.dll c:windowssystem32termsrv.dll.copy
takeown /f c:windowssystem32termsrv.dll
$new_termsrv_dll_owner = (Get-Acl c:windowssystem32termsrv.dll).owner
cmd /c "icacls c:windowssystem32termsrv.dll /Grant $($new_termsrv_dll_owner):F /C"
# поиск шаблона в файле termsrv.dll
$dll_as_bytes = Get-Content c:windowssystem32termsrv.dll -Raw -Encoding byte
$dll_as_text = $dll_as_bytes.forEach('ToString', 'X2') -join ' '
$patternregex = ([regex]'39 81 3C 06 00 00(sSS){6}')
$patch = 'B8 00 01 00 00 89 81 38 06 00 00 90'
$checkPattern=Select-String -Pattern $patternregex -InputObject $dll_as_text
If ($checkPattern -ne $null) {
$dll_as_text_replaced = $dll_as_text -replace $patternregex, $patch
}
Elseif (Select-String -Pattern $patch -InputObject $dll_as_text) {
Write-Output 'The termsrv.dll file is already patch, exiting'
Exit
}
else {
Write-Output "Pattern not found"
}
# модификация файла termsrv.dll
[byte[]] $dll_as_bytes_replaced = -split $dll_as_text_replaced -replace '^', '0x'
Set-Content c:windowssystem32termsrv.dll.patched -Encoding Byte -Value $dll_as_bytes_replaced
# Сравним два файла
fc.exe /b c:windowssystem32termsrv.dll.patched c:windowssystem32termsrv.dll
# замена оригинального файла
Copy-Item c:windowssystem32termsrv.dll.patched c:windowssystem32termsrv.dll -Force
Set-Acl c:windowssystem32termsrv.dll $termsrv_dll_acl
Start-Service UmRdpService
Start-Service TermService

Полный код скрипта доступен в моем GitHub репозитарии по ссылке https://github.com/winadm/posh/blob/master/Desktop/RDP_patch.ps1

Чтобы выполнить скрипт, скачайте его на свой компьютер. Измените настройки политики запуска скриптов PowerShell:

Set-ExecutionPolicy Bypass -Scope Process -Force

Запустите скрипт:

C:usersrootdesktoprdp_patch.ps1

powershell патч для автоматической модификации файла rdp termsrv.dll

Скрипт можно запускать после установки обновлений Windows, чтобы немедленно внести изменения в файл termsrv.dll (защищает вас от ручной правки файла после каждой установки обновлений). Скрипт подходит для всех версий Windows 10 старше 1809 и для Windows 11.

Преимущество способа включения нескольких RDP сессий в Windows 10 путем замены файла termsrv.dll в том, что на него не реагируют антивирусы. В отличии от утилиты RDPWrap, которую многие антивирусов считают Malware/HackTool/Trojan. Основной недостаток — вам придется вручную править файл при каждом обновлении билда Windows 10 (или при обновлении версии файла termsrv.dll в рамках ежемесячных кумулятивных обновлений). А если вы используете RDPWrapper, то после установки обновлений Windows вам придётся обновлять файл rdpwrap.ini.

В этой статье вы рассмотрели, как снять ограничение на количество одновременных RDP подключений пользователей, и запустить бесплатный терминального сервера на клиентской Windows 10 или 11.

Для чего нужен RDP wrapper?

Про стандартный RDP

RDP (Remote Desktop Protocol) — дословно протокол Удаленного Рабочего Стола. Позволяет подключится к компьютеру по IP адресу с любого другого компьютера.  

Подключение по протоколу RDP осуществляется между компьютерами, находящимися в одной локальной сети, или по интернету, но для этого потребуются дополнительные действия – проброс порта 3389 на роутере, либо соединение с удаленным компьютером по VPN.

Для подключения к удаленному рабочему столу , необходимо разрешить удаленное подключение — Свойства компьютера — дополнительные параметры системы —  удаленный доступ

Windows 10 Home — данная функция отключена

Windows 10 Pro — позволяет одновременно использовать только одно подключение под выбранным пользователем

Windows Server — позволяет подключаться сразу с нескольких устройств, под разными пользователями и работать одновременно.

При подключении используются все ресурсы удаленного компьютера, позволяет передавать принтеры, буфер обмена, диски, порты, устройства захвата. Благодаря этому часто в организациях ставят мощный сервер с Windows Server OC а пользователям дают монитор с мышкой, клавиатурой и слабенький ПК в качестве тонкого клиента, который служит только для подключения к серверу. При этом все пользователи будут полноценно работать на производительном сервере. 

монитор + мини ПК

Так же RDP часто используется в 1С для работы с файловой базой данных

Варианты применения RDP дома

Как можно использовать RDP дома? 

Если компьютером пользуется только один человек.

Персональный мощный ПК стоит в углу включенный, установлены и настроены все программы под себя любимого.

Но бывает необходимо поработать не прямо сидя за компьютером, а лежа на диване балкона или с дачи, командировки. Когда есть возможность удаленно подключится и спокойно работать за своим компьютером, даже с тормозного ноутбука.

Если компьютером пользуются несколько человек.

Персональный мощный ПК стоит в углу включенный, установлены и настроены все программы. Создана вторая учетная запись например для жены. У неё свой набор программ, свой браузер с отдельными вкладками закладками, все под себя настроено.

Кто-то в командировке за слабым компьютером, кому-то из кухни необходимо подключится поработать. Иногда кто-то полноценно компьютер занимает, а другому нужен доступ к своим программам. При этом иногда меняться устройствами

В общем и целом

Именно для дома, это получается  больше, как элемент комфорта. 

Гораздо приятнее и привычнее работать со своего личного ПК когда имеется необходимая производительность под свои задачи. Все что нужно под себя установлено и настроено как удобно. Без разницы за каким компьютером сидеть и где находится (главное чтоб интернет канал хороший) тогда можно спокойно подключится к своему личному ПК.

Конечно в организациях используются Windows Server специальная операционная система которая предназначено для этого. 

С домашними системами такого не получится, Windows 10 Pro подойдет если компьютером пользуется один человек. Windows 10 Home не подойдет вообщем. Вот тут как раз на помощь приходит RDP Wrapper

RDPWrapper инструкция

Данная программа (библиотека) дает возможность подключаться с нескольких устройств по RDP одновременно как в Windows Server

Установка

1. Отключить антивирус, создать папку C:Program FilesRDP Wrapper и добавить его в ислючение

3. Скачать файл autoupdate.bat и распоквать в ту же папку с RDP Wrapper

4. Запустить run autoupdate.bat от имени администратора

RDP wrapper user — Добавление нового пользователя

Создать нового пользователя (учетную запись Windows)

Добавить новому пользователю членство в группе «Пользователи удаленного рабочего стола»

Подключаюсь с другого ПК под новым пользователям, и проверяю в диспетчере задач — пользователей.

Таким образом можно дома комфортно использовать домашний ПК и его производительность делить на несколько пользователей

При обновлении Windows возможно будет необходимо запустить файл autoupdate.bat

Самое большое количество вопросов, обсуждений и помощи по данной теме происходит в телеграмм группе https://t.me/rdpwrap

Remote users can connect to their Windows 10 and 11 computers via the Remote Desktop Services (RDP). It is enough to enable RDP in the device settings and connect to the computer using any Remote Desktop client. But there is a restriction on the number of simultaneous RDP sessions – only one remote user can work simultaneously. If you try to open a second RDP session, a warning will appear asking you to disconnect the first user’s session.

Another user is signed in. If you continue, they’ll be disconnected. Do you want to sign in anyway?

All desktop Windows versions (including Win 10 and 11) have a number of restrictions on the Remote Desktop Service usage:

  1. You can remotely connect via RDP only to higher Windows editions (Professional and Enterprise). In Windows Home and Single Language editions the incoming remote desktop connections are forbidden;
  2. Only one simultaneous RDP connection is supported. When you try to open a second RDP session, the user is prompted to close the active connection;
  3. If there is a user who works on the console of the computer (locally), then when you try to create a new remote RDP connection, the console session will be disconnected. A remote RDP session will be also forcibly disconnected if the user will try to log in locally.

windows11 dosnt allow multiple rdp - Another user is signed in. If you continue, they’ll be disconnected. Do you want to sign in anyway?

Actually, the number of simultaneous RDP connections on Windows is limited by the license (and not by any technical aspect). Thus, this restriction doesn’t allow to create a terminal RDP server based on the workstation that can be used by multiple users. Microsoft’s logic is simple: if you need a terminal server – buy a Windows Server license, RDS CALs, install and configure the Remote Desktop Session Host (RDSH) role.

Technically, any Windows version with a sufficient amount of RAM can support the simultaneous operation of several dozens of remote users. On average, 150-200 MB of RAM is required for one user session (excluding running apps). Those, the maximum number of simultaneous RDP sessions is theoretically limited only by computer resources.

Let’s consider two ways on how to allow simultaneous RDP connections on Windows 10 and 11: using the RDP Wrapper tool or patching the termsrv.dll system file.

Contents:

  • RDP Wrapper: Enable Multiple RDP Sessions on Windows
  • RDP Wrapper Not Working on Windows 10
  • Modify the Termsrv.dll to Enable Multiple RDP Sessions
  • Patching Termsrv.dll on Windows Using PowerShell

Note. System modifications described in the article are considered as a violation of the Microsoft License Agreement  and you may perform them at your own risk.

RDP Wrapper: Enable Multiple RDP Sessions on Windows

The RDP Wrapper Library OpenSource project allows you to enable multiple RDP sessions on Windows 10 without replacing the termsrv.dll file. This tool works as a layer between SCM (Service Control Manager) and the Remote Desktop Services. RDPWrap allows you to enable not only support for multiple simultaneous RDP connections but also to build an RDP server on Windows Home editions. RDP Wrapper doesn’t make any changes to the termsrv.dll file, it’s just loading termsrv library with the changed parameters.

Thus, the RDPWrap will work even in the case of termsrv.dll file update. It allows you not to be afraid of Windows updates.

Important. Before installing RDP Wrapper, it is important to make that you are using the original (unpatched) version of the termsrv.dll file. Otherwise, RDP Wrapper may become unstable or not start at all.

You can download the RDP Wrapper from the GitHub repository https://github.com/binarymaster/rdpwrap/releases (the latest available version of the RDP Wrapper Library is v1.6.2). The project hasn’t been updated since 2017, but it can be used in all new builds of Windows 10 and even Windows 11.

The RDPWrap-v1.6.2.zip archive contains some files:

  • RDPWinst.exe — an RDP Wrapper Library install/uninstall the program;
  • RDPConf.exe — an RDP Wrapper configuration tool;
  • RDPCheck.exe —an RDP check utility (Local RDP Checker);
  • install.bat, uninstall.bat, update.bat — batch files to install, uninstall, and update RDP Wrapper.

RDPWrap-v1.6.2 install files

To install RDPWrap, run the install.bat file as an administrator. The program will be installed to the C:Program FilesRDP Wrapper directory.

installing install RDP Wrapper Library in windows 10

After the installation is complete, run the RDPConfig.exe. Most likely, immediately after installation, the tool will show that the RDP wrapper is running (Installed, Running, Listening), but not working. Note the red warning [not supported]. It reports that this version of Windows 10 (ver. 10.0.19041.1320) is not supported by the RDPWrapper.

windows 10: rdp wrapper not supported issue

The fact is that for each version of Windows 10 there must be a description in the rdpwrap.ini configuration file. Your config file simply doesn’t have any settings for your Windows 10 build.

The current version of the rdpwrap.ini file can be downloaded here https://raw.githubusercontent.com/sebaxakerhtc/rdpwrap.ini/master/rdpwrap.ini

Manually copy the contents of this page to the “C:Program FilesRDP Wrapperrdpwrap.ini” file. Or download the file using the PowerShell cmdlet Invoke-WebRequest (you must first stop the Remote Desktop service):

Stop-Service termservice -Force
Invoke-WebRequest https://raw.githubusercontent.com/sebaxakerhtc/rdpwrap.ini/master/rdpwrap.ini -outfile "C:Program FilesRDP Wrapperrdpwrap.ini"

updating rdpwrap.ini config of rdp wrapper

Restart your computer, run the RDPConfig.exe tool. Check that all items are green in the Diagnostics section and the caption [Fully supported] appears. The screenshot below shows that the RDP Wrapper with this new config works fine on Windows 11 as well.

using rdpwrapper on windows 11

Try to establish several RDP sessions to your computer (use any RDP client: mstsc.exe, rdcman, etc.). It worked out well (you can even use saved RDP credentials)! Now your Windows 10 allows two (and more) remote users to use different RDP sessions simultaneously.

multiple RDP sessions on Windows 10

The RDPWrap tool is supported in all Windows editions, so you can build your own terminal (RDS) server on any Windows device.

Also, RDP Wrapper allows to:

  • Enable Remote Desktop;
  • The option Hide users on logon screen allows you to hide the list of users from the Windows Logon Screen;
  • If you disable the Single session per user option, multiple simultaneous RDP sessions will be allowed under the same user account (the registry parameter fSingleSessionPerUser =  0 is set under the reg key HKLMSYSTEM CurrentControlSetControlTerminal ServerfSingleSessionPerUser);
  • RDP Port — you can change the Remote Desktop port number from TCP 3389 to any other;
  • In the Session Shadowing Mode section, you can configure the remote control (shadow) connection mode to RDP sessions.

RDP Wrapper Not Working on Windows 10

In some cases, the RDP Wrapper tool doesn’t work as expected and you cannot to your Windows host using multiple RDP sessions.

If the utility showed [not supported] in the status section, then the rdpwrap.ini file doesn’t contain configuration for your Windows build. Update the rdpwrap.ini file as described above.

If the RDP Wrapper doesn’t work after updating the rdpwrap.ini file, try opening the rdpwrap.ini file and looking for a description section for your Windows version. How to know if there is support for your version of Windows in the rdpwrapper config file?

The screenshot below shows that for my version of Windows 10 (10.0.19041.1320) there are two description sections:

[10.0.19041.1320]
…..

[10.0.19041.1320-SLInit]

…..

adding new section to rdpwrap.ini

If there is no section in the config file for your version of Windows, try using Google to search for the rdpwrap.ini strings for your Windows build. Add the lines you find to the end of the file.

If after installing security updates or upgrading the Windows 10 build, RDP Wrapper doesn’t work correctly, check if the “Listener state: Not listening” is displayed in the Diagnostics section.

rdp wrapper not listening

Try updating the rdpwrap.ini file, and then reinstalling the service:

rdpwinst.exe -u
rdpwinst.exe -i

It happens that when you try to establish a second RDP connection under a different user account, you see a warning:

The number of connections to this computer is limited and all connections are in use right now. Try connecting later or contact your system administrator.

Windows 10 RDP warning:The number of connections to this computer is limited and all connections are in use right now

In this case, you can use the Local Group Policy Editor (gpedit.msc) to enable the policy “Limit number of connections” under Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Connections section. Change its value to 999999.

group policy: Limit the number of rdp connections

Restart your computer to update the GPO and apply the settings.

Modify the Termsrv.dll to Enable Multiple RDP Sessions

To remove the restriction on the number of concurrent RDP user connections in Windows 10 without using rdpwrapper, you can replace the original termsrv.dll file. This is the main library file used by the Remote Desktop Service. The file is located in C:WindowsSystem32 directory.

Before you edit or replace the termsrv.dll file, it is advisable to create its backup copy. This will help you to revert to the original version of the file if necessary. Open the elevated command prompt and run the command:

copy c:WindowsSystem32termsrv.dll termsrv.dll_backup

Then you need to take ownership of the file. To change the owner of a file from TrustedInstaller to the local Administrators group using the command:

takeown /F c:WindowsSystem32termsrv.dll /A

SUCCESS: The file (or folder): c:WindowsSystem32termsrv.dll now owned by the administrators group

Now grant the local administrators group Full Control permissions on the termsrv.dll file using the icacls.exe:

icacls c:WindowsSystem32termsrv.dll /grant Administrators:F

processed file: c:WindowsSystem32termsrv.dll Successfully processed 1 files; Failed processing 0 files.

termsrv.dll takeown and grant access permissions

After that, stop the Remote Desktop service (TermService) using the services.msc console or from the command prompt:

Net stop TermService

The Remote Desktop Services UserMode Port Redirector service stops with it.

Stop TermService

Before moving on, you need to find out your version (build number) of Windows 10. Open the PowerShell console and run the command:

Get-ComputerInfo | select WindowsProductName, WindowsVersion

In my case, Windows 10 build 21H1 is installed.

Then open the termsrv.dll file using any HEX editor (for example, Tiny Hexer). Depending on your Windows build, you need to find and replace the string according to the table below:

Windows build Find the string Replace with
Windows 11 RTM (

21H2 – 22000.258)

39 81 3C 06 00 00 0F 84 4F 68 01 00  

B8 00 01 00 00 89 81 38 06 00 00 90

Windows 10 x64 21H2 39 81 3C 06 00 00 0F 84 DB 61 01 00
Windows 10 x64 21H1 39 81 3C 06 00 00 0F 84 2B 5F 01 00
Windows 10 x64 20H2 39 81 3C 06 00 00 0F 84 21 68 01 00
Windows 10 x64 2004 39 81 3C 06 00 00 0F 84 D9 51 01 00
Windows 10 x64 1909 39 81 3C 06 00 00 0F 84 5D 61 01 00
Windows 10 x64 1903 39 81 3C 06 00 00 0F 84 5D 61 01 00
Windows 10 x64 1809 39 81 3C 06 00 00 0F 84 3B 2B 01 00
Windows 10 x64 1803 8B 99 3C 06 00 00 8B B9 38 06 00 00
Windows 10 x64 1709 39 81 3C 06 00 00 0F 84 B1 7D 02 00

Tiny Hexer editor cannot edit termsvr.dll file directly from system32 folder. Copy it to your desktop, and after modification replace the original file.

For example, my build of Windows 10 x64 is 21H1 (19043.1320) with the termsrv.dll file version 10.0.19041.1320. Open the termsrv.dll file in Tiny Hexer, then find the text:

39 81 3C 06 00 00 0F 84 2B 5F 01 00

and replace it with:

B8 00 01 00 00 89 81 38 06 00 00 90

Tiny Hexer Editor

Save the file and run the TermService.

If something goes wrong and you experience some problems with the Remote Desktop service, stop the service and replace the modified termsrv.dll file with the original version:

copy termsrv.dll_backup c:WindowsSystem32termsrv.dll

Patching Termsrv.dll on Windows Using PowerShell

In order not to modify the termsrv.dll file manually using a HEX editor, you can use the following PowerShell script to apply the patch automatically. This script is based on the Windows PowerShell version and doesn’t work on modern PowerShell Core. The script is universal and can be used to patch the termsrv.dll file on all editions of Windows 10 (1809+) and Windows 11.

# Stop RDP service, make a backup of the termsrv.dllfile and change the permissions
Stop-Service UmRdpService -Force
Stop-Service TermService -Force
$termsrv_dll_acl = Get-Acl c:windowssystem32termsrv.dll
Copy-Item c:windowssystem32termsrv.dll c:windowssystem32termsrv.dll.copy
takeown /f c:windowssystem32termsrv.dll
$new_termsrv_dll_owner = (Get-Acl c:windowssystem32termsrv.dll).owner
cmd /c "icacls c:windowssystem32termsrv.dll /Grant $($new_termsrv_dll_owner):F /C"
# search for a pattern in termsrv.dll file
$dll_as_bytes = Get-Content c:windowssystem32termsrv.dll -Raw -Encoding byte
$dll_as_text = $dll_as_bytes.forEach('ToString', 'X2') -join ' '
$patternregex = ([regex]'39 81 3C 06 00 00(sSS){6}')
$patch = 'B8 00 01 00 00 89 81 38 06 00 00 90'
$checkPattern=Select-String -Pattern $patternregex -InputObject $dll_as_text
If ($checkPattern -ne $null) {
$dll_as_text_replaced = $dll_as_text -replace $patternregex, $patch
}
Elseif (Select-String -Pattern $patch -InputObject $dll_as_text) {
Write-Output 'The termsrv.dll file is already patch, exitting'
Exit
}
else {
Write-Output "Pattern not found "
}
# patching termsrv.dll
[byte[]] $dll_as_bytes_replaced = -split $dll_as_text_replaced -replace '^', '0x'
Set-Content c:windowssystem32termsrv.dll.patched -Encoding Byte -Value $dll_as_bytes_replaced
# comparing two files
fc.exe /b c:windowssystem32termsrv.dll.patched c:windowssystem32termsrv.dll
# replacing the original termsrv.dll file
Copy-Item c:windowssystem32termsrv.dll.patched c:windowssystem32termsrv.dll -Force
Set-Acl c:windowssystem32termsrv.dll $termsrv_dll_acl
Start-Service UmRdpService
Start-Service TermService

The complete script code is available in my GitHub repository at https://github.com/maxbakhub/winposh/blob/main/termsrv_rdp_patch.ps1

To execute the script, download it to your computer. Change the PowerShell execution policy settings for the current session:

Set-ExecutionPolicy Bypass -Scope Process -Force

And run the script:

C:usersrootdesktoptermsrv_rdp_patch.ps1

patching termsrv.dll on windows 10 or 11 with poweshell script

The script can be run after installing Windows updates to immediately make changes to the termsrv.dll file (you don’t have to modify the termsrv.dll file in the HEX editor after each update installation).

The advantage of the method of enabling multiple RDP sessions in Windows 10 or 11 by replacing the termsrv.dll file is that antiviruses do not respond to it (unlike the RDPWrap, which is detected by many antiviruses as a Malware/HackTool/Trojan).

The main drawback is that you will have to manually edit the termsrv.dll file each time you upgrade the Windows 10 build (or when updating the version of the termsrv.dll file during the installation of monthly cumulative updates). And if you are using RDPWrapper, you will also need to update the rdpwrap.ini file after installing Windows updates.

In this article, we looked at how to remove the restriction on the number of simultaneous RDP user connections and run a free terminal server on desktop versions of Windows.

Содержание

  • Способ 1: Замена файла конфигурации
  • Способ 2: Настройка в «Редакторе групповых политик»
  • Не работает RDP в целом

rdpwrap не работает после обновления windows 10
Подключение по протоколу RDP в Виндовс 10 активно используется как некоторыми рядовыми пользователями, так и профессионалами. Для обхода системного ограничения последние использует программу RDP Wrap. Увы, но после обновлений системы этот софт перестаёт работать, и сегодня мы поможем вам решить эту проблему.

Способ 1: Замена файла конфигурации

Проблемы с работой рассматриваемой программы возникают вследствие обновлений системной библиотеки termsrv.dll. Под каждую её версию RDP Wrap нужно конфигурировать заново. К счастью, разработчики приложения заботятся об этом сами и после каждого мажорного апдейта выпускают новый конфигурационный файл. Алгоритм его замены выглядит следующим образом:

  1. Перейдите по ссылке в репозиторий приложения на GitHub.

    Репозиторий на GitHub

  2. Откройте каталог res двойным щелчком левой кнопки мыши. Найдите внутри ссылку с именем rdpwrap.ini и кликните по ней правой кнопкой мыши. Выберите пункт «Сохранить ссылку как…» (в других браузерах – «Сохранить объект как…» или похожее по смыслу).
    Скачать конфигурационный файл для устранения проблем в работе RDP Wrap после обновления Windows 10

    Сохраните файл rdpwrap.ini в любое подходящее место на компьютере.

  3. Сохранение конфигурационного файла для устранения проблем в работе RDP Wrap после обновления Windows 10

  4. Теперь откройте утилиту «Выполнить» сочетанием Win+R, введите в неё запрос services.msc и нажмите «ОК».
    Запуск управления служб для устранения проблем в работе RDP Wrap после обновления Windows 10

    После запуска списка служб найдите запись «Службы удалённых рабочих столов», выделите её и нажмите «Остановить службу».

    Остановка службы для устранения проблем в работе RDP Wrap после обновления Windows 10

    Подтвердите остановку.

  5. Подтверждение остановки службы для устранения проблем в работе RDP Wrap после обновления Windows 10

  6. Далее откройте «Проводник» и перейдите по следующему адресу:

    C:Program FilesRDP Wrapper

    Скопируйте полученный ранее rdpwrap.ini и вставьте в эту папку.

    Заменить конфигурационный файл для устранения проблем в работе RDP Wrap после обновления Windows 10

    Подтвердите замену файла.

  7. Подтвердить замену INI-файла для устранения проблем в работе RDP Wrap после обновления Windows 10

  8. Перезагрузите компьютер, после чего откройте монитор враппера с именем RDConfig.
    Открыть утилиту конфигурации для устранения проблем в работе RDP Wrap после обновления Windows 10

    Проверьте строку «Listener» – если надпись в ней гласит «Fully supported», проблема устранена.

  9. Проверка утилиты после замены файла для устранения проблем в работе RDP Wrap после обновления Windows 10

    Данный метод является предпочтительным, и к следующему следует прибегать только в случае отсутствия его эффективности.

Способ 2: Настройка в «Редакторе групповых политик»

Пользователи Windows 10 редакций Профессиональная и Корпоративная могут решить рассматриваемую проблему настройкой определённого параметра в «Редакторе групповых политик».

Lumpics.ru

  1. Вызовите средство «Выполнить» (шаг 3 Способа 1), в котором введите запрос gpedit.msc.
  2. Редактор групповых политик для устранения проблем в работе RDP Wrap после обновления Windows 10

  3. Перейдите по следующему пути:

    Конфигурация компьютера/Административные шаблоны/Компоненты Windows/Службы удаленных рабочих столов/Узел сеансов удаленных рабочих столов/Подключения

  4. Местоположение групповых политик для устранения проблем в работе RDP Wrap после обновления Windows 10

  5. Дважды кликните по политике «Ограничить количество подключений».
    Настройка групповой политики ограничений для устранения проблем в работе RDP Wrap после обновления Windows 10

    Установите положение «Включено», после чего измените значение максимального количество подключений на 999999. Сохраните изменения последовательным нажатием на кнопки «Применить» и «ОК».

  6. Изменение групповой политики ограничений для устранения проблем в работе RDP Wrap после обновления Windows 10

  7. Закройте «Редактор групповых политик» и перезагрузите компьютер.
  8. Описанная выше манипуляция позволит решить проблему, но является потенциально небезопасной, поэтому используйте её в самом крайнем случае.

Порой вышеприведённые действия не приводят к желаемому результату. В этом случае отметим, что скорее всего дело уже не во враппере и библиотеке. Действуйте так:

  1. Сначала проверьте параметры брандмауэра, как системного, так и стороннего, и разрешите в нём соединение по РДП.
    Настройка брандмауэра для устранения проблем в работе RDP Wrap после обновления Windows 10

    Урок: Настройка брандмауэра на Windows 10

  2. Также стоит проверить состояние портов – не исключено, что требуемый для работы нужного протокола просто закрыт.
    Открытие портов для устранения проблем в работе RDP Wrap после обновления Windows 10

    Подробнее: Как открыть порты на Windows 10

  3. Ещё раз проверьте редакцию целевой «десятки» – подключение по RDP не поддерживается в Windows 10 Home.
  4. Рассматриваемый тип соединения может не работать из-за повреждений соответствующих системных файлов. Для начала проверьте, не завёлся ли в вашей системе вирус.
    Борьба с вирусами для устранения проблем в работе RDP Wrap после обновления Windows 10

    Подробнее: Борьба с компьютерными вирусами

    После этого проверьте целостность компонентов ОС и восстановите их одним из возможных способов, если в этом появится необходимость.

    Урок: Проверка целостности и восстановление системных файлов в Windows 10

Теперь вам известно, как нужно действовать в ситуации, когда RDP Wrapper перестал работать после обновления Windows 10, и что делать, если подключение по этому протоколу не работает в целом.

Еще статьи по данной теме:

Помогла ли Вам статья?

You can establish multiple remote desktop connections at the same time on a Windows system however this feature is restricted by license. It prevents you from creating a Terminal RDP server. If you need this service, you have to buy a Windows Server license, RDS CALS, and Remote Desktop Session Host (RDSH) should be installed on your computer. If you want a free alternative you can use RDP (Remote Desktop Protocol) to create multiple Connections. In this article, we will discuss how you can enable RDP for multiple users on your Windows 11 computer.

Enable RDP for multiple users on Windows 11

After understanding the requirement of any company, you may deploy the device at different locations. some are in office sites and easily accessible and some are in remote locations. All those devices have different brands and they may have different operating systems. Managing such networks is a challenging job for an IT administrator and Remote Desktop Connection makes your work easy.

Use the following methods to enable Remote Desktop Connection on Windows 11.

  1. Use RDP Wrapper Library
  2. Modify termsrv.dll Using HEX Editor
  3. Patch termsrv.dll With PowerShell Script
  4. Modify the Local Group Policies

Let’s discuss these methods to enable Remote Desktop Connection.

1] Use RDP Wrapper Library

RDP Wrapper Library is a free open-source GitHub project that works as an intermediate between Remote Desktop Service and Service Control Manager(SCM). It allows users to make multiple RDP sessions on Windows 11 and you can also configure the RDP server on Windows Home editions without teasing the ‘termsrv.dll’ file. For simultaneous connection, RDP Wrapper Library loads the termsrv.dll library with updated parameters. It should be better for you to check the unpatched termsrv.dll file before installing RDP Wrapper Library.

Let’s enable RDP Wrapper Libary using the following steps.

  • Download the RDP Wrapper Library from github.com.
  • Extract the contents of the zip file.

  • Right-click on “install.bat” and select Run as administrator.
  • Hit on ‘RDPConfig.exe’ to open RDP Wrapper Configuration and complete the installation process.

It has been seen that after installation of RDP Wrapper, it shows, it is running, but it is not working on Windows 10 (ver. 10.0.19041.1320).

  • Download the rdpwrap.ini file’s current version on your computer from raw.githubusercontent.com.
  • Open the downloaded file, select all content from there, hit Ctrl+ C, open file explorer, go to C:Program FilesRDP Wrapperrdpwrap.ini file, and paste all the copied contents.
  • Reboot the computer.
  • Hit on ‘RDPConfig.exe’ to open ‘RDP Wrapper Configuration.’ Verify if all items are green in the Diagnostics section.
  • Hit on ‘RDPCheck.exe’ to open a secondary RDP session or connect multiple RDP sessions from your remote computers.

Hopefully, this will do the trick for you.

2] Modify termsrv.dll Using HEX Editor

The next and most effective solution for enabling multiple remote desktop connections on Windows 11 computers is to modify the termsrv.dll file. Follow the prescribed solution to enable RDP on your computer.

  • Back up the termserv.dll file before modifying it.
  • Press Windows +R, type cmd, and press Ctrl + Shift + Enter to open the Command Prompt as an administrator.
  • Enter the following command in the Command Prompt to create a backup.
copy c:WindowsSystem32termsrv.dll termsrv.dll_backup
  • To give ownership to the local administrator, run this command
takeown /F c:WindowsSystem32termsrv.dll /A
  • After successful completion, you will see the following SUCCESS message.

c:WindowsSystem32termsrv.dll” is now owned by the administrator group.

  • To allow the local administrators group with Full Control permissions for the termsrv.dll file using the icacls.exe, run this:
icacls c:WindowsSystem32termsrv.dll /grant Administrators:F
  • After completing the operation successfully, you will see the following message:
c:WindowsSystem32termsrv.dll Successfully processed 1 file; Failed processing 0 files.
  • Terminate Remote Desktop Services (TermService) with the services.msc console. You can also run the following command:
Net stop TermService
  • To know the Windows version and build number, open PowerShell and run the following command:
Get-ComputerInfo | select WindowsProductName, WindowsVersion
  • Download a HEX editor software of your choice for example Registry Explorer and Install it.
  • Launch the ‘termsrv.dll’ file with HEX editor software. This Tiny Hexer editor is incapable of altering ‘termsvr.dll’ files from the system32 folder, so you have to copy it to your Desktop, to make alteration.
  • According to your Windows version and build, you need to find the following string.
Windows 11 RTM (21H2 – 22000.258): 39 81 3C 06 00 00 0F 84 4F 68 01 00/ Windows 10 x64 21H2: 39 81 3C 06 00 00 0F 84 DB 61 01 00/ Windows 10 x64 21H1: 39 81 3C 06 00 00 0F 84 2B 5F 01 00/ Windows 10 x64 20H2: 39 81 3C 06 00 00 0F 84 21 68 01 00/ Windows 10 x64 2004: 39 81 3C 06 00 00 0F 84 D9 51 01 00/ Windows 10 x64 1909: 39 81 3C 06 00 00 0F 84 5D 61 01 00/ Windows 10 x64 1903: 39 81 3C 06 00 00 0F 84 5D 61 01 00/ Windows 10 x64 1809: 39 81 3C 06 00 00 0F 84 3B 2B 01 00/ Windows 10 x64 1803: 8B 99 3C 06 00 00 8B B9 38 06 00 00/ Windows 10 x64 1709: 39 81 3C 06 00 00 0F 84 B1 7D 02 00
  • Now you should replace that string with the following string.
39 81 3C 06 00 00 0F 84 7F 2C 01 00

Finally, save the file, and run TermService.

3] Patch termsrv.dll With PowerShell Script

If your requirement of using Multiple Remote Desktop Connections is not resolved by modifying the termsrv.dll file manually using a HEX editor then you can use the following PowerShell script.

Let’s patch the termsrv.dll file with the help of a PowerShell Script.

  • Copy the following code and paste it into a Notepad file.
# Stop RDP service, make a backup of the termsrv.dllfile and change the permissions
Stop-Service UmRdpService -Force
Stop-Service TermService -Force
$termsrv_dll_acl = Get-Acl c:windowssystem32termsrv.dll
Copy-Item c:windowssystem32termsrv.dll c:windowssystem32termsrv.dll.copy
takeown /f c:windowssystem32termsrv.dll
$new_termsrv_dll_owner = (Get-Acl c:windowssystem32termsrv.dll).owner
cmd /c "icacls c:windowssystem32termsrv.dll /Grant $($new_termsrv_dll_owner):F /C"
# search for a pattern in termsrv.dll file
$dll_as_bytes = Get-Content c:windowssystem32termsrv.dll -Raw -Encoding byte
$dll_as_text = $dll_as_bytes.forEach('ToString', 'X2') -join '
$patternregex = ([regex]'39 81 3C 06 00 00(sSS){6}')
$patch = 'B8 00 01 00 00 89 81 38 06 00 00 90'
$checkPattern=Select-String -Pattern $patternregex -InputObject $dll_as_text
If ($checkPattern -ne $null) {
$dll_as_text_replaced = $dll_as_text -replace $patternregex, $patch
}
Elseif (Select-String -Pattern $patch -InputObject $dll_as_text) {
Write-Output 'The termsrv.dll file is already patch, exitting'
Exit
}
else {
Write-Output “Pattern not found”
}
# patching termsrv.dll
[byte[]] $dll_as_bytes_replaced = -split $dll_as_text_replaced -replace '^', '0x'
Set-Content c:windowssystem32termsrv.dll.patched -Encoding Byte -Value $dll_as_bytes_replaced
# comparing two files
fc.exe /b c:windowssystem32termsrv.dll.patched c:windowssystem32termsrv.dll
# replacing the original termsrv.dll file
Copy-Item c:windowssystem32termsrv.dll.patched c:windowssystem32termsrv.dll -Force
Set-Acl c:windowssystem32termsrv.dll $termsrv_dll_acl
Start-Service UmRdpService
Start-Service TermService
  • Save this file with extension .ps1 (for example: TermsRdpPatch.ps1).
  • To alter the PowerShell execution policy settings for the present session, run the following PowerShell command:
Set-ExecutionPolicy Bypass -Scope Process -Force
  • Hit on ‘termsrv_rdp_patch.ps1’ to run the script.

Make sure that you manually edit the termsrv.dll file every time after updating the Windows. This will do the trick for you.

4] Modify the Local Group Policies

We have one more method by which we can enable remote desktop connection and it is the Local Group Policy. We can also enable remote desktop connection by modifying group policy.

Let’s modify the Local Group Policy.

  • Press the Windows + R
  • Write gpedit.msc in the RUN dialog box and hit enter to open the Local Group Policy Editor panel.
  • Go to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections.
  • Click on the ‘Restrict Remote Desktop Services’ user and change it to a single ‘Remote Desktop Services’ session policy and set it to Disabled.
  • Click on the ‘Limit number of connections’ policy. The default state is ‘Not Configured.’ Select the Enabled radio button to enable the counter menu of ‘RD Maximum Connections’ permitted in the ‘Options’ section.
  • Set the ‘RD Maximum Connections’ permitted to 999999.
  • Click on OK to save the changes and Restart Windows.

After making these changes your RDP session is configured for multiple users.

So, as you can see, you can easily enable multiple concurrent users in Remote Desktop using any of the aforementioned methods. If you don’t want to download a third-party app or use a batch file, your best option is to configure the Group Policy of Restrict Remote Desktop Services, however, alternate methods are there to give you options.

  • Realtek 11n usb wireless lan utility скачать для windows 10
  • Rdp wrapper supported partially windows 7
  • Realteck as97hd скачать windows 10 скачать
  • Realme usb driver windows 10
  • Rdr 2 на windows 7