We are using MSTSCLib_TLB.pas
in Delphi imported from C:\Windows\system32\mstscax.dll
(Microsoft Terminal Services Control Type Library) for to connect our customers via this RDP Activex . DLL file version is 6.1.7601.18079. We are using in our project TMsRdpClient7. My questions are below.
- We are searching equivalent to /admin flag used with MSTSC.EXE about to use in this library. We try to find it in MSDN Library and searched much places but we couldn't find anything about that.
While connecting with Mstsc.Exe it asks us about to install certificate for some servers and we accept it and we are continuing our work. Is there any way or property or parameter to self accept thus certificate?
The part of my code is below.
axRdp := TMsRdpClient7.Create(Nil); axRdp.Server := server; axRdp.AdvancedSettings7.RDPPort := portNo; axRdp.UserName := user; axRdp.AdvancedSettings7.ClearTextPassword := pass; axRdp.AdvancedSettings7.RedirectDrives := True; axRdp.Connect;
Best regards.
----------------added----------------------
i find some usefull code parts this part is about to "Enable NLA Authentication" but i'm not sure its working or not but i am sure that servers which i cant connect are requires NLA. Now i see the problem is about that. but below code didnt worked for me. How can i enable NLA from activex?
axRdp.AdvancedSettings8.EnableCredSspSupport := True;
this part is about mstsc.exe /admin flag. i'm sure about that
axRdp.AdvancedSettings7.ConnectToAdministerServer := True;
axRdp.AdvancedSettings3.ConnectToServerConsole := True;