Содержание
- Installation Error OpenKeyReadOnly error (code 0) #1915
- Comments
- Error when installing RDP: error code 0 #857
- Comments
- Openkeyreadonly error code 0 rdp wrapper
- Installation Error OpenKeyReadOnly error (code 0) about rdpwrap HOT 12 CLOSED
- Comments (12)
- Related Issues (20)
- Recommend Projects
- React
- Vue.js
- Typescript
- TensorFlow
- Django
- Laravel
- Recommend Topics
- javascript
- server
- Machine learning
- Visualization
- Recommend Org
- Microsoft
Installation Error OpenKeyReadOnly error (code 0) #1915
I get this error when trying to install.
OpenKeyReadOnly error (code 0)
I have turned off BitDefender and run the bat with Admin privileges. I also tried adding exceptions to BitDefener, but that did not seem to help.
The text was updated successfully, but these errors were encountered:
My issue does not match any of the above.
Try solution from problem 2
The reg entry for TermServices was damaged. I restored it and ran the installer again and got this result.
Rebooted PC (after restoring)?
RDPConf screenshot, please!
Here is the sequence of what I just did:
Restored Registry entry from the downloaded zip
Checked Services for Remote Desktop Services, It was stopped so I tried to start it and got this error.
Checked TermService in Registry
Checked RDPWConf
Ran Install.bat as administrator
Checked RDPWInst
I am an IT guy. It looks like it is not installing for some reason. I changed security on the directory to ensure R/W access. The only other different. I think it might be related to the fact that I am not able to start TermService from the services tab.
Thanks for your help.
This is totally frustrating. I have RDS working on another Windows 11 machine, so I exported the registry entries for TermService.
Following the steps in #1821 on the problem machine i did the following:
- I first totally uninstalled BitDefender.
- Rebooted PC.
- Imported the registry entries from the working machine.
- From elevated cmd, ran SFC /scannow
- Rebooted PC.
- Used services to try to manually start TermService
And I still get the error that it will not start.
Other than reinstalling Windows, I am not sure where to go next. 🙁
Other than reinstalling Windows, I am not sure where to go next. 🙁
Restore point. Or no way
This is not my day. It is a new system and when they configured it, they did not turn on Restore Points.
This is not my day. It is a new system and when they configured it, they did not turn on Restore Points.
So. Don’t use BitDefender and add exclusions for RDPWrapper
Источник
Error when installing RDP: error code 0 #857
Hi, after many hours trying to fix this by my self, I came upon this error:
» OpenKeyReadOnly error code 0″
Whether I try to run install.bat or uninstall.bat I got the same error:
If I go to the source code, i Find this:
procedure CheckInstall;
var
Code: DWORD;
TermServiceHost: String;
Reg: TRegistry;
begin
if Arch = 64 then
Reg := TRegistry.Create(KEY_WOW64_64KEY)
else
Reg := TRegistry.Create;
Reg.RootKey := HKEY_LOCAL_MACHINE;
if not Reg.OpenKeyReadOnly(‘SYSTEMCurrentControlSetServicesTermService’) then
begin
Reg.Free;
Code := GetLastError;
Writeln(‘[-] OpenKeyReadOnly error (code ‘, Code, ‘).’);
Halt(Code);
end;
TermServiceHost := Reg.ReadString(‘ImagePath’);
Reg.CloseKey;
if (Pos(‘svchost.exe’, LowerCase(TermServiceHost)) = 0)
and (Pos(‘svchost -k’, LowerCase(TermServiceHost)) = 0) then
begin
Reg.Free;
Writeln(‘[-] TermService is hosted in a custom application (BeTwin, etc.) — unsupported.’);
Writeln(‘[*] ImagePath: «‘, TermServiceHost, ‘».’);
Halt(ERROR_NOT_SUPPORTED);
end;
if not Reg.OpenKeyReadOnly(‘SYSTEMCurrentControlSetServicesTermServiceParameters’) then
begin
Reg.Free;
Code := GetLastError;
Writeln(‘[-] OpenKeyReadOnly error (code ‘, Code, ‘).’);
Halt(Code);`
Do you have any idea what could that error be? I tried disabling nod 32+ firewall to no avail. I don’t know what else to do
The text was updated successfully, but these errors were encountered:
Источник
Openkeyreadonly error code 0 rdp wrapper
RDP Wrapper Library by Stas’M
Данный проект позволяет включить поддержку сервера удалённых рабочих столов (RDP Host) на системах для домашнего пользования с урезанным функционалом, а также снять ограничение на использование параллельных сессий.
RDP Wrapper работает в качестве прослойки между менеджером управления службами (SCM) и службой терминалов (TermService), таким образом файл termsrv.dll остаётся нетронутым. Также этот метод устойчив против обновлений Windows.
Идея создания этого проекта пришла после изучения программы Windows Product Policy Editor, за что выражаем благодарность её создателю — пользователю kost 🙂
— binarymaster
Предупреждение:
Рекомендуется иметь оригинальную версию файла termsrv.dll при установке RDP Wrapper. Если вы раньше вносили в него изменения при помощи других патчеров, он может стать нестабильным и вылететь в любой момент.
Информация:
• Исходники прилагаются, так что вы можете собрать проект самостоятельно
• RDP Wrapper не вносит изменения в файл termsrv.dll, он подгружает termsrv с изменёнными параметрами
• RDPWInst и RDPChecker можно распространять без папки разработок и bat-файлов
• RDPWInst можно использовать для автоматической установки или развёртки
• Windows 2000, XP и Server 2003 не поддерживаются и не будут
Портирование на другие платформы:
• ARM для Windows RT (см. ссылки ниже)
• IA-64 для Windows Server на базе Itanium? Без понятия 🙂
Сборка исходных кодов:
• Версия x86 на Delphi собирается при помощи Embarcadero RAD Studio 2010
• Версия x86/x64 на C++ собирается при помощи Microsoft Visual Studio 2013
Источник
Installation Error OpenKeyReadOnly error (code 0) about rdpwrap HOT 12 CLOSED
NetworkGuy149 commented on January 15, 2023
My issue does not match any of the above.
sashaqwert commented on January 15, 2023
Try solution from problem 2
NetworkGuy149 commented on January 15, 2023
The reg entry for TermServices was damaged. I restored it and ran the installer again and got this result.
sashaqwert commented on January 15, 2023
Rebooted PC (after restoring)?
RDPConf screenshot, please!
NetworkGuy149 commented on January 15, 2023
Here is the sequence of what I just did:
Restored Registry entry from the downloaded zip
Checked Services for Remote Desktop Services, It was stopped so I tried to start it and got this error.
Checked TermService in Registry
Checked RDPWConf
Ran Install.bat as administrator
Checked RDPWInst
I am an IT guy. It looks like it is not installing for some reason. I changed security on the directory to ensure R/W access. The only other different. I think it might be related to the fact that I am not able to start TermService from the services tab.
Thanks for your help.
sashaqwert commented on January 15, 2023
NetworkGuy149 commented on January 15, 2023
This is totally frustrating. I have RDS working on another Windows 11 machine, so I exported the registry entries for TermService.
Following the steps in #1821 on the problem machine i did the following:
- I first totally uninstalled BitDefender.
- Rebooted PC.
- Imported the registry entries from the working machine.
- From elevated cmd, ran SFC /scannow
- Rebooted PC.
- Used services to try to manually start TermService
And I still get the error that it will not start.
Other than reinstalling Windows, I am not sure where to go next. 🙁
sebaxakerhtc commented on January 15, 2023
Other than reinstalling Windows, I am not sure where to go next. 🙁
Restore point. Or no way
NetworkGuy149 commented on January 15, 2023
This is not my day. It is a new system and when they configured it, they did not turn on Restore Points.
sebaxakerhtc commented on January 15, 2023
This is not my day. It is a new system and when they configured it, they did not turn on Restore Points.
So. Don’t use BitDefender and add exclusions for RDPWrapper
sebaxakerhtc commented on January 15, 2023
- 10.0.19041.2075 — Windows 10 Pro 22H2 Only one session HOT 3
- 10.0.19041.2075 — multiple RDP sessions working ok but logs off local session HOT 7
- Need help: 10.0.22621.900 HOT 5
- Version wont work HOT 3
- 10.0.14393.5582 HOT 4
- rdp wrapper windows version 22h2 os build 19045.2364 Access is denied HOT 12
- 10.0.22621.608 Keyboard HOT 5
- Access is denied HOT 11
- Windows 11 Pro Number of connections is limited HOT 3
- Window server 2016 stopped working after an update HOT 2
- Access denied HOT 2
- rdp only working on local network HOT 1
- USB Licnese key (physical usb device like flashdrive but for license) HOT 1
- 10.0.25267.1000 not supported HOT 4
- listener state: Not listening [not supported] on Windows 10 home x64 10.0.19041 HOT 1
- Please help — Unable to use on ARM64 Windows 11 Pro HOT 4
- Please help me for 10.0.19041.2075, thanks! HOT 2
- Access Denied Version: 10.0.19041.2075 HOT 3
- 10.0.17763.3650 x86 HOT 11
- RDP WRAPPER 10.0.22621.608 NOT SUPPORTED HOT 1
Recommend Projects
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
TensorFlow
An Open Source Machine Learning Framework for Everyone
Django
The Web framework for perfectionists with deadlines.
Laravel
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
Recommend Topics
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
server
A server is a program made to process requests and deliver data to clients.
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Visualization
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
Recommend Org
We are working to build community through open source technology. NB: members must have two-factor auth.
Microsoft
Open source projects and samples from Microsoft.
Источник
NetworkGuy149 opened this issue 8 months ago · comments
I get this error when trying to install.
OpenKeyReadOnly error (code 0)
I have turned off BitDefender and run the bat with Admin privileges. I also tried adding exceptions to BitDefener, but that did not seem to help.
Suggestions?
Suggestions?
Solution here #1883
My issue does not match any of the above.
Try solution from problem 2
The reg entry for TermServices was damaged. I restored it and ran the installer again and got this result.
Rebooted PC (after restoring)?
RDPConf screenshot, please!
Here is the sequence of what I just did:
-
Restored Registry entry from the downloaded zip
-
Rebooted PC
-
Checked Services for Remote Desktop Services, It was stopped so I tried to start it and got this error.
-
Checked TermService in Registry
-
Checked RDPWConf
-
Ran Install.bat as administrator
-
Checked RDPWInst
I am an IT guy. It looks like it is not installing for some reason. I changed security on the directory to ensure R/W access. The only other different. I think it might be related to the fact that I am not able to start TermService from the services tab.
Thanks for your help.
This is totally frustrating. I have RDS working on another Windows 11 machine, so I exported the registry entries for TermService.
Following the steps in #1821 on the problem machine i did the following:
- I first totally uninstalled BitDefender.
- Rebooted PC.
- Imported the registry entries from the working machine.
- From elevated cmd, ran SFC /scannow
- Rebooted PC.
- Used services to try to manually start TermService
And I still get the error that it will not start.
Other than reinstalling Windows, I am not sure where to go next.
Other than reinstalling Windows, I am not sure where to go next.
![]()
Restore point. Or no way
This is not my day. It is a new system and when they configured it, they did not turn on Restore Points.
This is not my day. It is a new system and when they configured it, they did not turn on Restore Points.
So… Don’t use BitDefender and add exclusions for RDPWrapper
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
Содержание
- Способ 1: Замена файла конфигурации
- Способ 2: Настройка в «Редакторе групповых политик»
- Не работает RDP в целом
- Вопросы и ответы
Подключение по протоколу RDP в Виндовс 10 активно используется как некоторыми рядовыми пользователями, так и профессионалами. Для обхода системного ограничения последние использует программу RDP Wrap. Увы, но после обновлений системы этот софт перестаёт работать, и сегодня мы поможем вам решить эту проблему.
Способ 1: Замена файла конфигурации
Проблемы с работой рассматриваемой программы возникают вследствие обновлений системной библиотеки termsrv.dll. Под каждую её версию RDP Wrap нужно конфигурировать заново. К счастью, разработчики приложения заботятся об этом сами и после каждого мажорного апдейта выпускают новый конфигурационный файл. Алгоритм его замены выглядит следующим образом:
- Перейдите по ссылке в репозиторий приложения на GitHub.
Репозиторий на GitHub
- Откройте каталог res двойным щелчком левой кнопки мыши. Найдите внутри ссылку с именем rdpwrap.ini и кликните по ней правой кнопкой мыши. Выберите пункт «Сохранить ссылку как…» (в других браузерах – «Сохранить объект как…» или похожее по смыслу).
Сохраните файл rdpwrap.ini в любое подходящее место на компьютере.
- Теперь откройте утилиту «Выполнить» сочетанием Win+R, введите в неё запрос
services.msc
и нажмите «ОК».
После запуска списка служб найдите запись «Службы удалённых рабочих столов», выделите её и нажмите «Остановить службу».
Подтвердите остановку.
- Далее откройте «Проводник» и перейдите по следующему адресу:
C:Program FilesRDP Wrapper
Скопируйте полученный ранее rdpwrap.ini и вставьте в эту папку.
Подтвердите замену файла.
- Перезагрузите компьютер, после чего откройте монитор враппера с именем RDConfig.
Проверьте строку «Listener» – если надпись в ней гласит «Fully supported», проблема устранена.
Данный метод является предпочтительным, и к следующему следует прибегать только в случае отсутствия его эффективности.
Способ 2: Настройка в «Редакторе групповых политик»
Пользователи Windows 10 редакций Профессиональная и Корпоративная могут решить рассматриваемую проблему настройкой определённого параметра в «Редакторе групповых политик».
- Вызовите средство «Выполнить» (шаг 3 Способа 1), в котором введите запрос gpedit.msc.
- Перейдите по следующему пути:
Конфигурация компьютера/Административные шаблоны/Компоненты Windows/Службы удаленных рабочих столов/Узел сеансов удаленных рабочих столов/Подключения
- Дважды кликните по политике «Ограничить количество подключений».
Установите положение «Включено», после чего измените значение максимального количество подключений на
999999
. Сохраните изменения последовательным нажатием на кнопки «Применить» и «ОК». - Закройте «Редактор групповых политик» и перезагрузите компьютер.
Описанная выше манипуляция позволит решить проблему, но является потенциально небезопасной, поэтому используйте её в самом крайнем случае.
Порой вышеприведённые действия не приводят к желаемому результату. В этом случае отметим, что скорее всего дело уже не во враппере и библиотеке. Действуйте так:
- Сначала проверьте параметры брандмауэра, как системного, так и стороннего, и разрешите в нём соединение по РДП.
Урок: Настройка брандмауэра на Windows 10
- Также стоит проверить состояние портов – не исключено, что требуемый для работы нужного протокола просто закрыт.
Подробнее: Как открыть порты на Windows 10
- Ещё раз проверьте редакцию целевой «десятки» – подключение по RDP не поддерживается в Windows 10 Home.
-
Рассматриваемый тип соединения может не работать из-за повреждений соответствующих системных файлов. Для начала проверьте, не завёлся ли в вашей системе вирус.
Подробнее: Борьба с компьютерными вирусами
После этого проверьте целостность компонентов ОС и восстановите их одним из возможных способов, если в этом появится необходимость.
Урок: Проверка целостности и восстановление системных файлов в Windows 10
Теперь вам известно, как нужно действовать в ситуации, когда RDP Wrapper перестал работать после обновления Windows 10, и что делать, если подключение по этому протоколу не работает в целом.
Еще статьи по данной теме:
Помогла ли Вам статья?
У настольных операционных систем Microsoft есть некоторые ограничения, связанные с работой службы удаленных рабочих столов. Так во первых, поддержка серверной части (RDP Host) есть только в старших редакциях Windows (не ниже Professional). В домашних редакциях этот функционал отключен, поэтому подключиться к младшим версиям Windows по RDP невозможно.
И во вторых, количество параллельных RDP-сессий ограничено. Допускается только одно одновременное подключение по RDP, а при попытке открыть вторую RDP-сессию система выдаст сообщение о том, что в системе уже находится один пользователь и предложит его выкинуть завершить его сеанс.
Обойти эти ограничения позволит проект RDP Wrapper Library by Stas’M. RDP Wrapper работает как прослойка между менеджером служб (Service Control Manager, SCM) и службой удаленных рабочих столов. При этом, в отличии от других решений подобного рода, он не подвергает изменениям файл termsrv.dll (библиотека, используемая службой Remote Desktop Services), что позволяет не опасаться обновлений Windows.
Судя по официальному сайту, проект активно живет и развивается. На данный момент выложена версия 1.5 от 2014.12.11, для которой заявлена поддержка новейших ОС, включая Windows 10 Technical Preview. Также доступны исходники, так что при желании можно самостоятельно собрать проект.
Загрузить RDP Wrapper можно со страницы программы в репозитории GitHub. В архив входят следующие компоненты:
• RDPWinst.exe — инсталлятор, с помощью которого производится установка и удаление RDP Wrapper;
• RDPConf.exe — утилита для настройки параметров подключения;
• RDPCheck.exe — утилита для локальной проверки работы RDP;
• install.bat и uninstall.bat — bat-файлы для удобства установкиудаления программы.
Для установки программы надо открыть командную строку с правами администратора, перейти в директорию с распакованными файлами и запустить install.bat. Все остальное, включая настройку исключений на файерволле, установщик сделает сам.
Дополнительно можно запустить утилиту RDPConf.exe, которая позволяет включатьотключать доступ, а также настраивать основные параметры подключения (порт, количество сессий на пользователя, тип аутентификации и пр.).
Ну и в качестве проверки я открыл на компьютер с установленной Windows 7 Home Basic две RDP-сессии для двух разных пользователей.
Что еще можно сказать. Проект однозначно полезный, в некоторых ситуациях даже незаменимый. Из минусов же — используя RDP Wrapper вы скорее всего нарушаете лицензионное соглашение.
Дополнение 04.05.2019.
Для корректной работы на Windows 10 1809 требуется обновить файл конфигурации rdpwrap.ini. В него надо добавить следующие строчки:
[10.0.17763.292]
; Patch CEnforcementCore::GetInstanceOfTSLicense
LocalOnlyPatch.x86=1
LocalOnlyOffset.x86=AFAD4
LocalOnlyCode.x86=jmpshort
LocalOnlyPatch.x64=1
LocalOnlyOffset.x64=77A11
LocalOnlyCode.x64=jmpshort
; Patch CSessionArbitrationHelper::IsSingleSessionPerUserEnabled
SingleUserPatch.x86=1
SingleUserOffset.x86=4D665
SingleUserCode.x86=nop
SingleUserPatch.x64=1
SingleUserOffset.x64=1322C
SingleUserCode.x64=Zero
; Patch CDefPolicy::Query
DefPolicyPatch.x86=1
DefPolicyOffset.x86=4BE69
DefPolicyCode.x86=CDefPolicy_Query_eax_ecx
DefPolicyPatch.x64=1
DefPolicyOffset.x64=17F45
DefPolicyCode.x64=CDefPolicy_Query_eax_rcx
; Hook CSLQuery::Initialize
SLInitHook.x86=1
SLInitOffset.x86=5B18A
SLInitFunc.x86=New_CSLQuery_Initialize
SLInitHook.x64=1
SLInitOffset.x64=1ABFC
SLInitFunc.x64=New_CSLQuery_Initialize
И в конец ini файла дополнительно надо добавить строки:
[10.0.17763.292-SLInit]
bInitialized.x86 =CD798
bServerSku.x86 =CD79C
lMaxUserSessions.x86 =CD7A0
bAppServerAllowed.x86 =CD7A8
bRemoteConnAllowed.x86=CD7AC
bMultimonAllowed.x86 =CD7B0
ulMaxDebugSessions.x86=CD7B4
bFUSEnabled.x86 =CD7B8
bInitialized.x64 =ECAB0
bServerSku.x64 =ECAB4
lMaxUserSessions.x64 =ECAB8
bAppServerAllowed.x64 =ECAC0
bRemoteConnAllowed.x64=ECAC4
bMultimonAllowed.x64 =ECAC8
ulMaxDebugSessions.x64=ECACC
bFUSEnabled.x64 =ECAD0
В конце файла обязательно пустая строка.
Взято отсюда: https://github.com/stascorp/rdpwrap/issues/699