0

我正在尝试创建一个远程桌面子会话。我可以在我的笔记本电脑上成功创建一个。我在 AWS 上使用 Windows Server 2016 Datacenter 进行了尝试,但失败了。对WTSEnableChildSessionsWTSIsChildSessionsEnabled的调用返回 false。但是,一段时间后它开始工作,我不知道为什么,但我相信它与配置有关。我现在正试图在另一台服务器上复制并失败。

我的问题是,启用子会话需要什么?

我用来创建子会话的代码

Object obj = this.rdp.GetOcx();

IMsRdpClient8 msRdpClient = this.rdp.GetOcx() as IMsRdpClient8;
msRdpClient.AdvancedSettings9.EnableCredSspSupport = true;

MSTSCLib.IMsRdpExtendedSettings extSettings = rdp.GetOcx() as MSTSCLib.IMsRdpExtendedSettings;
extSettings.set_Property("ConnectToChildSession", True);

rdp.Connect();

我已经通过以下链接无济于事,我错过了什么
吗 https://docs.microsoft.com/en-us/windows/win32/termserv/child-sessions
https://docs.microsoft.com/en-us /windows/win32/api/wtsapi32/nf-wtsapi32-wtsenablechildsessions
https://docs.microsoft.com/en-us/windows/win32/api/wtsapi32/nf-wtsapi32-wtsischildsessionsenabled

4

0 回答 0