stascorp / rdpwrap

RDP Wrapper Library
Apache License 2.0
14.51k stars 3.8k forks source link

Not working on 10.0.19041.3570 #2359

Open Ardivald opened 11 months ago

Ardivald commented 11 months ago

.\autoupdate.bat ... [*] Start searching [10.0.19041.3570] version entry in file "C:\Program Files\RDP Wrapper\rdpwrap_new.ini"... [-] NOT found "termsrv.dll" version entry [10.0.19041.3570] in file "C:\Program Files\RDP Wrapper\rdpwrap_new.ini"!

gczhangyb commented 11 months ago

[10.0.19041.3570] LocalOnlyPatch.x86=1 LocalOnlyOffset.x86=C3299 LocalOnlyCode.x86=jmpshort SingleUserPatch.x86=1 SingleUserOffset.x86=3FDC7 SingleUserCode.x86=Zero DefPolicyPatch.x86=1 DefPolicyOffset.x86=41999 DefPolicyCode.x86=CDefPolicy_Query_eax_ecx SLInitHook.x86=1 SLInitOffset.x86=70E18 SLInitFunc.x86=New_CSLQuery_Initialize LocalOnlyPatch.x64=1 LocalOnlyOffset.x64=92AF1 LocalOnlyCode.x64=jmpshort SingleUserPatch.x64=1 SingleUserOffset.x64=11E12 SingleUserCode.x64=Zero DefPolicyPatch.x64=1 DefPolicyOffset.x64=1F315 DefPolicyCode.x64=CDefPolicy_Query_eax_rcx SLInitHook.x64=1 SLInitOffset.x64=2866C SLInitFunc.x64=New_CSLQuery_Initialize

[10.0.19041.3570-SLInit] bInitialized.x86 =E498C bServerSku.x86 =E4990 lMaxUserSessions.x86 =E4994 bAppServerAllowed.x86 =E499C bRemoteConnAllowed.x86=E49A4 bMultimonAllowed.x86 =E49A8 ulMaxDebugSessions.x86=E49AC bFUSEnabled.x86 =E49B0 bInitialized.x64 =125074 bServerSku.x64 =125078 lMaxUserSessions.x64 =12507C bAppServerAllowed.x64 =125084 bRemoteConnAllowed.x64=12508C bMultimonAllowed.x64 =125090 ulMaxDebugSessions.x64=125094 bFUSEnabled.x64 =125098

Ardivald commented 11 months ago

the service is not started o_O even after reboot this is strange because before the ini change, the service was working Screenshot_357

zhyim0712 commented 11 months ago

重启后可以多用户连接,非常感谢

zhyim0712 commented 11 months ago

[10.0.19041.3570] LocalOnlyPatch.x86=1 LocalOnlyOffset.x86=C3299 LocalOnlyCode.x86=jmpshort SingleUserPatch.x86=1 SingleUserOffset.x86=3FDC7 SingleUserCode.x86=零 DefPolicyPatch.x86=1 DefPolicyOffset.x86=41999 DefPolicyCode。 x86=CDefPolicy_Query_eax_ecx SLInitHook.x86=1 SLInitOffset.x86=70E18 SLInitFunc.x86=New_CSLQuery_Initialize LocalOnlyPatch.x64=1 LocalOnlyOffset.x64=92AF1 LocalOnlyCode.x64=jmpshort SingleUserPatch.x64=1 SingleUserOffset.x64=11E12 SingleUserCode.x64=零 DefPolicyP补丁.x64=1 DefPolicyOffset.x64=1F315 DefPolicyCode.x64=CDefPolicy_Query_eax_rcx SLInitHook.x64=1 SLInitOffset.x64=2866C SLInitFunc.x64=New_CSLQuery_Initialize

[10.0.19041.3570-SLInit] bInitialized.x86 =E498C bServerSku.x86 =E4990 lMaxUserSessions.x86 =E4994 bAppServerAllowed.x86 =E499C bRemoteConnAllowed.x86 =E49A4 bMultimonAllowed.x86 =E49A8 ulMaxDebugSessions。 x86=E49AC bFUSEnabled.x86 =E49B0 bInitialized.x64 =125074 bServerSku.x64 =125078 lMaxUserSessions.x64 =12507C bAppServerAllowed.x64 =125084 bRemoteConnAllowed.x64=12508C bMultimonAllowed.x64 =125090 ulMaxDebugSessions.x64=125094 bFUSEnabled.x64 =125 098

非常感谢

Ardivald commented 11 months ago

error 1067 Screenshot_359

Screenshot_360

and yes, gczhangyb, thank you, bro

Kiselev88 commented 11 months ago

привет. Удалось решить?

sashaqwert commented 11 months ago

PDB file here: https://github.com/stascorp/rdpwrap/issues/2357#issuecomment-1756205715

Voltars commented 11 months ago

[10.0.19041.3570] LocalOnlyPatch.x64=1 LocalOnlyOffset.x64=92AF1 LocalOnlyCode.x64=jmpshort SingleUserPatch.x64=1 SingleUserOffset.x64=11E12 SingleUserCode.x64=Zero DefPolicyPatch.x64=1 DefPolicyOffset.x64=1F315 DefPolicyCode.x64=CDefPolicy_Query_eax_rcx SLInitHook.x64=1 SLInitOffset.x64=2866C SLInitFunc.x64=New_CSLQuery_Initialize

[10.0.19041.3570-SLInit] bInitialized.x64 =125074 bServerSku.x64 =125078 lMaxUserSessions.x64 =12507C bAppServerAllowed.x64 =125084 bRemoteConnAllowed.x64=12508C bMultimonAllowed.x64 =125090 ulMaxDebugSessions.x64=125094 bFUSEnabled.x64 =125 098

Voltars commented 11 months ago

非常感谢

Спасибо тебе, китайский друг :) Убрал иероглифы из конфига и x86

seng5899 commented 11 months ago

[10.0.19041.3570] LocalOnlyPatch.x64=1 LocalOnlyOffset.x64=92AF1 LocalOnlyCode.x64=jmpshort SingleUserPatch.x64=1 SingleUserOffset.x64=11E12 SingleUserCode.x64=Zero DefPolicyPatch.x64=1 DefPolicyOffset.x64=1F315 DefPolicyCode.x64=CDefPolicy_Query_eax_rcx SLInitHook.x64=1 SLInitOffset.x64=2866C SLInitFunc.x64=New_CSLQuery_Initialize

[10.0.19041.3570-SLInit] bInitialized.x64 =125074 bServerSku.x64 =125078 lMaxUserSessions.x64 =12507C bAppServerAllowed.x64 =125084 bRemoteConnAllowed.x64=12508C bMultimonAllowed.x64 =125090 ulMaxDebugSessions.x64=125094 bFUSEnabled.x64 =125 098

its work,thx!

telecomus commented 11 months ago

Напишите нормально код, без иероглифом, а лучше выложите полный файл с dll А то какие то пробелы лишние тоже есть.

Voltars commented 11 months ago

Напишите нормально код, без иероглифом, а лучше выложите полный файл с dll А то какие то пробелы лишние тоже есть.

По инфо - все работает. При подключении все равно выкидывает.

Ardivald commented 11 months ago

хоть с пробелом, хоть без пробела - ошибка. Служба не стартует. При этом отображается, что ini полная поддержка, а вот служба отказывается запускаться. Ругается на rdpwrap.dll

Вот тут я отметил этот казус, после корректировки ini.... https://github.com/stascorp/rdpwrap/issues/2359#issuecomment-1756717727

upd: через какое-то время смотрю уже запустилась служба.

tigeroses commented 11 months ago

[10.0.19041.3570] LocalOnlyPatch.x64=1 LocalOnlyOffset.x64=92AF1 LocalOnlyCode.x64=jmpshort SingleUserPatch.x64=1 SingleUserOffset.x64=11E12 SingleUserCode.x64=Zero DefPolicyPatch.x64=1 DefPolicyOffset.x64=1F315 DefPolicyCode.x64=CDefPolicy_Query_eax_rcx SLInitHook.x64=1 SLInitOffset.x64=2866C SLInitFunc.x64=New_CSLQuery_Initialize

[10.0.19041.3570-SLInit] bInitialized.x64=125074 bServerSku.x64=125078 lMaxUserSessions.x64=12507C bAppServerAllowed.x64=125084 bRemoteConnAllowed.x64=12508C bMultimonAllowed.x64=125090 ulMaxDebugSessions.x64=125094 bFUSEnabled.x64=125098

work for me after removing extra spaces, thanks

telecomus commented 11 months ago

Скиньте оба файла?

sashaqwert commented 11 months ago

https://github.com/sebaxakerhtc/rdpwrap.ini/commit/467219de236398ce9517936edce536f90c3e07c6

Kbotz commented 11 months ago

nice work as always @sebaxakerhtc

Sianmung commented 11 months ago

ini for ini for 10.0.19041.3570.zip

sashaqwert commented 11 months ago

Reopened. Not included in official INI by Stas'M :)

Sianmung commented 11 months ago

Fully suported bu could nt connected. Please help

priyadarshanparida commented 11 months ago

sebaxakerhtc/rdpwrap.ini@467219d

Confirmed! The offsets worked a treat.

tfpe commented 11 months ago

I can't edit or replace the rdpwrap "Because it's open in remote desktop services". How do I solve this? I just installed it, didn't open it. I've uninstalled it and re-installed several times without change, and restarted my computer. No success

sashaqwert commented 11 months ago

@tfpe

can't edit or replace the rdpwrap \"Because it's open in remote desktop services\".

  1. CMD as Administrator
  2. net stop termService

Or reboot to safe mode.

tfpe commented 11 months ago

Cool, that did the trick. Thanks! But I'd like to use this to connect to my work computer, so I can work from home, and connect to an IP-adress (I think) (I have windows 10 home, so no default remote desktop for me). Now it seems to be a pre-determined adress which I don't know where it leads to. Is there a way to configure this?

oukunhi commented 11 months ago

After replaced the ini file,fullysupported,but not listling and the seviece is stop ,what wrong ?PLS HLP

sashaqwert commented 11 months ago

@oukunhi

After replaced the ini file,fullysupported,but not listling and the seviece is stop ,what wrong ?PLS HLP

Try:

  1. Download RDP Wrapper 1.6.2 and extract this to any directory.
  2. Place rdpwrap.ini in the same directory.
  3. Open CMD as administrator
  4. Execute this commands
    cd C:\path\to\directory\
    rdpwinst -u -k
    rdpwinst -i
  5. Enjoy!

Original message: https://t.me/rdpwrap/49131

sultanmansoor40 commented 11 months ago

I still got this error: image

I wanted to try the above solution I even run the cmd as administrator but it shows access denied: image

sultanmansoor40 commented 11 months ago

due to active antivirus, i was receiving the above error

sultanmansoor40 commented 11 months ago

I run this command: Net start termservice And the remote service got unstable and kept stopping on its own

and this is the errors I see in the event log viewer: The server {F9A874B6-F8A8-4D73-B5A8-AB610816828B} did not register with DCOM within the required timeout. , The Remote Desktop Services service terminated unexpectedly. It has done this 13 times (s).

My PC Windows version is: Windows 10 Home 22H2 19045.3570

sultanmansoor40 commented 11 months ago

i tried these steps too:

  1. sc config TermService type= own
  2. If you have antivirus software, try to add rdpwrap.dll to exclusions
  3. Create file rdpwrap.txt in the root of system disk (for example C:\rdpwrap.txt)
  4. Restart PC
  5. Check contents of rdpwrap.txt log file

Also i tried disabling shadowing mode

And this Is the content of rdpwrap.txt log file:

SvchostPushServiceGlobals Loading configuration... Configuration file: c:\program files\rdp wrapper\rdpwrap.ini Initializing RDP Wrapper... Base addr: 0x00007FF9EA440000 SvcMain: termsrv.dll+0x0000000000038510 SvcGlobals: termsrv.dll+0x00000000000397A0 Version: 10.0.19041.3570 Freezing threads... Patch CEnforcementCore::GetInstanceOfTSLicense Patch CSessionArbitrationHelper::IsSingleSessionPerUserEnabled Patch CDefPolicy::Query Hook CSLQuery::Initialize Resumimg threads... <<< SvchostPushServiceGlobals ServiceMain <<< ServiceMain

Sianmung commented 11 months ago

rdpwrap.zip

sultanmansoor40 commented 11 months ago

Thanks for the file now the services got stable but still there is one problem:

Also I didn't made any changes to termsrv.dll

image

sultanmansoor40 commented 11 months ago

The Solution to My Problem:

https://github.com/sebaxakerhtc/rdpwrap.ini/blob/master/rdpwrap.ini

Nuts-sugar commented 11 months ago

The Solution to My Problem:

https://github.com/sebaxakerhtc/rdpwrap.ini/blob/master/rdpwrap.ini

OK!!!! Thanks bro, it worksfor me~

sashaqwert commented 11 months ago

The Solution to My Problem:

https://github.com/sebaxakerhtc/rdpwrap.ini/blob/master/rdpwrap.ini

My nessage above...

https://github.com/stascorp/rdpwrap/issues/2359#issuecomment-1756993375

sultanmansoor40 commented 11 months ago

@sashaqwert You’re right but the ini file just got updated yesterday and that works now.

pheotry commented 11 months ago

My rdpwrap.ini is right, rdpConfig is normal. But I can't be linked by two PC. image

frnmarquez commented 11 months ago

My rdpwrap.ini is right, rdpConfig is normal. But I can't be linked by two PC. image

Im having the same problem. image

frnmarquez commented 11 months ago

Working!

@pheotry You should also modify this settings in gpedit

"Enable Multiple RDP Sessions Log into the server, where the Remote Desktop Services are installed. Open the start screen (press the Windows key) and type gpedit.msc and open it. Go to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections. Set Restrict Remote Desktop Services user to a single Remote Desktop Services session to Disabled. Double click Limit number of connections and set the RD Maximum Connections allowed to 999999."

Source: https://help.matrix42.com/020_ESM/80_MyWorkspace/10MyWorkspace_Guide/HowTo%3A_Enable_multiple_sessions_for_Remote_Desktop_Services

AlexHighTower commented 11 months ago

I have problems with Printers forwarding to remote session. Only some printers are forwarder (like PDF), and they are visible only at print dialog window. How to fix it?

sashaqwert commented 11 months ago

@AlexHighTower

I have problems with Printers forwarding to remote session. Only some printers are forwarder (like PDF), and they are visible only at print dialog window.\nHow to fix it?

See https://github.com/stascorp/rdpwrap/issues/504

AlexHighTower commented 11 months ago

See #504

Actually don't see solution (((

There is two suggestions:

am I missed smth?

sashaqwert commented 11 months ago

@AlexHighTower

  • set TerminalServices-DeviceRedirection-Licenses-TSEasyPrintAllowed to 0
  • set SLInitHook.x64 to 0

Also: install printer driver to server.

AlexHighTower commented 11 months ago

Also: install printer driver to server.

in my case it is not always possible one reason is that there is no drivers for win 10 at all

I've applied first two tweaks and printers appears, but only in printer dialog while printing

find-a-good-nickname commented 11 months ago

We've got some 19041.3570 Win10 Pros on HyperV virtual machines. Tried this RDPWrap with the .ini modification above, but is not working:

(Wrapper state is installed, Service's running, Listener is listening and termsrv is fully supported - but it's really not working. Mode is NLA, Shadowing mode is Full with user's permission.)

What else can I try, if the .ini?

I also tried sebaxakerhtc's modification ( https://github.com/sebaxakerhtc/rdpwrap ): that's a little bit better, because multiple users can login to a virtual machine - but printers are also not visible on that. (And that modification is a one-file installe without .ini, so ini modding is not possible. )

So I really need some working ideas... Thanks for your help!

sashaqwert commented 11 months ago

@find-a-good-nickname

What else can I try, if the .ini?

Try ask in project Telegram chat (link from repository README): https://t.me/rdpwrap

uber1geek commented 11 months ago

Does anyone know the search value for 10.0.19041.3570?

sashaqwert commented 11 months ago

Does anyone know the search value for 10.0.19041.3570?

https://github.com/stascorp/rdpwrap/issues/2359#issuecomment-1758965897

Merelya commented 10 months ago

I am currently on windows 10 home edition and I am unable to get the port to LISTEN. image

I have edited the rdpwrap.ini file to the following.

The Solution to My Problem:

https://github.com/sebaxakerhtc/rdpwrap.ini/blob/master/rdpwrap.ini

I am sure I am missing something but I can't seem to find it. Please do let me know if there are other information required. Thank you!

loyejaotdiqr47123 commented 5 months ago

Does anyone know the search value for 10.0.19041.3570?

#2359 (comment)

wrong offset ;SingleUserOffset.x64=11E12 SingleUserOffset.x64=182FB