Topic: RDP client in WIN10XPE?  (Read 7734 times)

RDP client in WIN10XPE?
« on: August 07, 2018, 01:02:42 PM »

syfy323

  • Apprentice
  • *
  • Date Registered: Aug 2018
  • Posts: 4
Hi!

I am struggling to get RDP on WIN10XPE to work. The image itself is working fine but I need RDP to connect to a management server after boot.

Any hints?

If not possible with XPE, is there a release planned for PE with build 1803? I patched 1803 with all avaliable updates using DISM to fix the CredSSP error.

Kind regards
Kevin

Re: RDP client in WIN10XPE?
« Reply #1 on: August 07, 2018, 01:07:27 PM »

syfy323

  • Apprentice
  • *
  • Date Registered: Aug 2018
  • Posts: 4
PS: Starting mstsc from SysWow64 throws 0xc0000142.

Re: RDP client in WIN10XPE?
« Reply #2 on: August 07, 2018, 04:24:34 PM »

bob.omb

  • Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
Win10PESE has RDP working correctly but XPE is better supported at the moment.
« Last Edit: August 07, 2018, 04:25:12 PM by ChangeMe;) »

Re: RDP client in WIN10XPE?
« Reply #3 on: August 08, 2018, 02:17:44 PM »

syfy323

  • Apprentice
  • *
  • Date Registered: Aug 2018
  • Posts: 4
My colleague was able to get MSTSC working on XPE by adding them in the "additional files" section of the builder.
We just need to do some customization but the image works on dev-machines!

Thanks for your help.

Re: RDP client in WIN10XPE?
« Reply #4 on: August 08, 2018, 05:19:03 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
So are you saying that between yesterday and today you got RDP working in XPE?
If so please share the your additional files script

Re: RDP client in WIN10XPE?
« Reply #5 on: August 13, 2018, 08:38:44 AM »

scars

  • Apprentice
  • *
  • Date Registered: Aug 2018
  • Posts: 6
Similar problem here...

Ive made my own Win10PESE Image and a few days ago I integrated OpenVPN which works fine, but im am not able to connect to any RDP Server. (I think cause of the CredSSP issue)

Does anyone know how to integrade the CreedSSP Fix and the new RDP Client...

Just manuall integrate the files doenst work... ;-)

Re: RDP client in WIN10XPE?
« Reply #6 on: August 14, 2018, 12:15:36 PM »

syfy323

  • Apprentice
  • *
  • Date Registered: Aug 2018
  • Posts: 4
You can use this package:
newbielink:http://www.wsusoffline.net/ [nonactive]

Just run it and enable Win10 updates. I would also recommend that you use build 1803.
You don't need the ISO, you can browse to client -> glb, there you will find all updates.

You can then include them in your image like this:
newbielink:https://blogs.technet.microsoft.com/configmgrdogs/2012/02/14/applying-windows-updates-to-a-base-wim-using-dism-and-powershell/ [nonactive]

You can skip the "automatic" part as I does exactly the same as the "manuel" part (dism integrates all updates, so why interate over all one by one?).

Currently I am unable to ask my colleague, he is very busy but we will share the config part when he is back in office (he is currently on a customers site).

Re: RDP client in WIN10XPE?
« Reply #7 on: August 14, 2018, 03:42:29 PM »

scars

  • Apprentice
  • *
  • Date Registered: Aug 2018
  • Posts: 6
Amazing, thank you for that information...


Lets see what i can do :)

Re: RDP client in WIN10XPE?
« Reply #8 on: August 14, 2018, 08:59:44 PM »

scars

  • Apprentice
  • *
  • Date Registered: Aug 2018
  • Posts: 6
Got anything working so far expect RDP, cant wait to hear how youve done it :)

Re: RDP client in WIN10XPE?
« Reply #9 on: August 15, 2018, 06:58:31 PM »

scars

  • Apprentice
  • *
  • Date Registered: Aug 2018
  • Posts: 6
Ive added the RDP Files through the AdditionalFiles Folder...

│   CredentialUIBroker.exe
│   mstsc.exe
│   mstscax.dll
│   shell32.dll
│   Windows.Internal.UI.Logon.ProxyStub.dll
│   Windows.UI.Cred.dll
│   Windows.UI.CredDialogController.dll

├───de-DE
│       mstsc.exe.mui
│       mstscax.dll.mui


Which works so far, that the system accepts RDP link and opens them...ila_rendered

But when I try to connect i get always this error...

[ Specified attachment is not available ]

"the computer requires network level authentication which your computer does not support"

I think thats the part where i have to modify the registration, as in the old rdp script file...

Code: [Select]
RegHiveLoad,Tmp_System,%RegSystem%
RegWrite,HKLM,0x4,Tmp_System\ControlSet001\Control\Lsa,LimitBlankPasswordUse,0
RegWrite,HKLM,0x4,Tmp_System\ControlSet001\Control\Lsa,LmCompatibilityLevel,2
//-- tspkg and credssp are require for NLA support
Call,RegMultiSZ,Append,Tmp_System\ControlSet001\Control\Lsa,"Security Packages",tspkg
RegWrite,HKLM,0x1,Tmp_System\ControlSet001\Control\SecurityProviders,SecurityProviders,credssp.dll
RegHiveUnLoad,Tmp_System

RegHiveLoad,Tmp_Default,%RegDefault%
RegWrite,HKLM,0x2,Tmp_Default\Software\Microsoft\Windows\CurrentVersion\RunOnce,RemoteConnect,"#$pSystemRoot#$p\system32\mstsc.exe #$q%IP_TextBox%#$q"
RegHiveUnLoad,Tmp_Default

Which ive tried to add through additions "Add or Edit converted PE registry", but it doesnt work, he doesnt create the registry settings...
Anyone has an idea? :-/

Re: RDP client in WIN10XPE?
« Reply #10 on: August 15, 2018, 08:10:39 PM »

bob.omb

  • Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
Make sure your network plugin is setup with the following settings and you should be fine.

ila_rendered

 :thumbsup:

Re: RDP client in WIN10XPE?
« Reply #11 on: August 15, 2018, 08:48:54 PM »

scars

  • Apprentice
  • *
  • Date Registered: Aug 2018
  • Posts: 6
Im using the Win10XPE built because of 1803, there is not network Setting...

Can I use the samt script from PESE? :)

Re: RDP client in WIN10XPE?
« Reply #12 on: August 15, 2018, 10:53:16 PM »

bob.omb

  • Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
Sorry for the mixup you posted in PESE thread, XPE has its own thread...

Try:
Code: [Select]
RegHiveLoad,Tmp_System,%RegSystem%
RegWrite,HKLM,0x4,Tmp_System\ControlSet001\Control\Lsa,LmCompatibilityLevel,1
RegHiveUnLoad,Tmp_System

If the value is set to 2 it is set to Send NTLM response only
« Last Edit: August 15, 2018, 11:04:04 PM by ChangeMe;) »

Re: RDP client in WIN10XPE?
« Reply #13 on: August 16, 2018, 11:12:55 AM »

scars

  • Apprentice
  • *
  • Date Registered: Aug 2018
  • Posts: 6
Hey ChangeMe;)

Ive got the new registry value in my xpe system, but now while establishing the connection it get this error.: :w00t:

Authentication error 0x80004005  :confused:

It doesnt matter to which value i set the LmCompatibilityLevel => 1 or 2....

Any ideas? :)

Re: RDP client in WIN10XPE?
« Reply #14 on: August 16, 2018, 07:56:12 PM »

bob.omb

  • Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
Are you just trying to use RDP to another terminal? It sounds like you are doing this on a domain or to connect to Windows Server 20xx, the fix for that error is usually DNS or server setting related..

This is from the Remote Desktop Connection SE plugin

Code: [Select]
If,%NLAsupport_CheckBox%,Equal,True,Begin
  TXTReplace,%TargetProfilesUserDir%\Documents\Default.rdp,enablecredsspsupport:i:0,enablecredsspsupport:i:1
  TXTReplace,%TargetProfilesUserDir%\Documents\Default.rdp,"authentication level:i:0","authentication level:i:2"
End

Save the connection and use a text editor to edit the .rdp file and make sure you change the values above from zeros to 1 and 2
« Last Edit: August 17, 2018, 01:44:20 AM by ChangeMe;) »

Re: RDP client in WIN10XPE?
« Reply #15 on: November 08, 2018, 09:01:00 AM »

someone

  • Apprentice
  • *
  • Location: Germany
  • Date Registered: Dec 2015
  • Posts: 8
Hi,

attached a script that worked for me for RDP/ mstsc.exe to work without nla.
It should work for amd64 and x86 builds, but I've tested it only on x64.

I have a look at the Win10PE_SE script for rdc and rewrote it for 10XPE.
Unfortunatly, i can't get NLA get to work, so i also use FreeRDP (wfreerdp.exe) which worked fine, if
used from command line like wfreerdp.exe /v:1.2.3.4. Use lower case for "/v:"

I used links here for download https://cloudbase.it/freerdp-for-windows-nightly-builds/





Re: RDP client in WIN10XPE?
« Reply #16 on: November 08, 2018, 07:15:29 PM »

teik

  • Chef
  • ***
  • Date Registered: Nov 2016
  • Posts: 250
Hi,

attached a script that worked for me for RDP/ mstsc.exe to work without nla.
It should work for amd64 and x86 builds, but I've tested it only on x64.

I have a look at the Win10PE_SE script for rdc and rewrote it for 10XPE.
Unfortunatly, i can't get NLA get to work, so i also use FreeRDP (wfreerdp.exe) which worked fine, if
used from command line like wfreerdp.exe /v:1.2.3.4. Use lower case for "/v:"

I used links here for download https://cloudbase.it/freerdp-for-windows-nightly-builds/

The script works. I just tried it. Only the name variables are not correct. So do not create the entry in the menu.  :thumbsup:

Re: RDP client in WIN10XPE?
« Reply #17 on: November 09, 2018, 09:30:57 PM »

someone

  • Apprentice
  • *
  • Location: Germany
  • Date Registered: Dec 2015
  • Posts: 8
Hi,

attached a corrected Script for the shortcut part.

Even I left out some dlls, "Dependency Walker" shows in the dependency tree, but are not needed for use.


Regards


Re: RDP client in WIN10XPE?
« Reply #18 on: November 10, 2018, 02:42:02 AM »

bob.omb

  • Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
Great work   :wink:

Re: RDP client in WIN10XPE?
« Reply #19 on: November 11, 2018, 02:01:51 PM »

teik

  • Chef
  • ***
  • Date Registered: Nov 2016
  • Posts: 250
Hi,

attached a corrected Script for the shortcut part.

Even I left out some dlls, "Dependency Walker" shows in the dependency tree, but are not needed for use.


Regards

Hi @someone

Your previous version worked perfect (only the error of the menu). The last one you have published at least does not work for me. It never connects.

One last question: I can connect from Win10XPE to another pc, but I can not connect to Win10XPE from another pc, what can happen?

Regards and thanks for continuing to work on the script.
« Last Edit: November 11, 2018, 02:02:38 PM by teik »

 

Powered by EzPortal