mstsc

How to host a terminal session (mstsc) in a WPF applicaiton?

南楼画角 提交于 2021-02-10 08:49:06
问题 There are some tools out there for managing multiple terminal (mstsc) sessions. How would I go about achieving something similar in WPF? 回答1: You should use WindowsFormsHost element to host the ActiveX control of RDP. There is short sample how to integrate Windows Media Player into WPF application. The hosting of the RDP control is similar. 回答2: Those tools are most likely using the Remote Desktop ActiveX Control which is designed to be hosted in web pages, but since it is an ActiveX control,

How to recognize when logon fails in RDP / MSTSC?

若如初见. 提交于 2020-07-21 05:01:30
问题 I am working on a C# implementation of RDP / MSTSC using the MsRdpClient9NotSafeForScripting class. I need to recognize when the user logon failed due to wrong credentials. The event OnLogonError should do the job but it doesn't fire (at least not on Server 2016), while the other events seem to work properly. From the Microsoft documentation of OnLogonError : LOGON_FAILED_BAD_PASSWORD (0 (0x0)) The logon failed because the logon credentials are not valid. The behaviour (not fireing

How to recognize when logon fails in RDP / MSTSC?

核能气质少年 提交于 2020-07-21 05:00:10
问题 I am working on a C# implementation of RDP / MSTSC using the MsRdpClient9NotSafeForScripting class. I need to recognize when the user logon failed due to wrong credentials. The event OnLogonError should do the job but it doesn't fire (at least not on Server 2016), while the other events seem to work properly. From the Microsoft documentation of OnLogonError : LOGON_FAILED_BAD_PASSWORD (0 (0x0)) The logon failed because the logon credentials are not valid. The behaviour (not fireing

远程桌面连接:超过终端服务器允许连接最大数

点点圈 提交于 2020-03-03 17:04:32
远程桌面连接时弹出“超过终端服务器允许连接最大数”的消息框 个人尝试过的解决方法: 1.如果知道终端服务器的administrator的账户密码,可使用administrator账户登录,踢掉被占用的连接即可。 2如果可以进入终端服务器, 重启 也不失为一个可行的方法。但是如果不知道终端服务器上启动的服务,笔者不建议这么干。 3.如果无法进入终端服务器或完全无法操作终端服务器, 在连接端机器运行里输入 mstsc /console /v:终端服务器ip,即可。 来源: oschina 链接: https://my.oschina.net/u/699103/blog/85080

“Windows 2003终端连接超过最大数”的多种解法

房东的猫 提交于 2020-03-03 16:52:40
网上流传方法众多,此文亦为蜻蜓点水,权作笔记。 第一种方法: mstsc /admin /v:ip (仅win7) mstsc /console /v:ip (仅2003) 注 :系统区别,功能差不多 第二种方法: 无论通过什么方式(如shift后门、shell等)调用cmd,执行logoff ID 注 :注销不在线的就行,风险在于可能注销的用户当前有正在执行的任务。 第三种方法: win2003系统 在运行中输入tsmmc.msc会弹出一个远程桌面控制台 右键点击左边的远程桌面,新建远程桌面,填写要连接主机的ip、用户名、密码、域名 新建好后,就可以登陆到远程终端了。 Win7 (需安装补丁) 32位版: http://download.microsoft.com/do ... -x86-RefreshPkg.msu 64位版: http://download.microsoft.com/do ... -x64-RefreshPkg.msu 之后在 控制面板运行“打开或关闭Windows功能”添加即可。 注 : 除1外俺最常用的方式了,方便快捷,集群管理 第四种方法: 使用辅助管理软件 其一、Terminals 开源软件,支持 RDP、VNC, Console, SSH, VRRC, Citrix, RAS, HTTP, etc.. 自带一些网络工具如 Ping, Trace

AxMsRdpClient9 Dismiss login dialog

烂漫一生 提交于 2020-01-16 19:19:26
问题 I am writing rdp client using c#. Simple example: AxMsRdpClient9NotSafeForScripting c = new AxMsRdpClient9NotSafeForScripting(); Form1.Controls.Add(c); c.Server = s.ip; c.UserName = s.pass; c.AdvancedSettings9.ClearTextPassword = s.pass; c.Connect(); So, when I try to connect to Win7 or less it works perfect, but when I try to connect to Win Server 2012, rdpclient doesn't connect and doesn't return any errors. Connecting to win server works when I use this option: c.AdvancedSettings9

How can I issue mstsc in batch mode, no console session?

纵然是瞬间 提交于 2020-01-07 08:28:24
问题 I need to issue mstsc and get a status back that this command works for a series of IPs. No RDP console. I cannot use WMI ports, just RDP 3389 to the device. Would love to use PowerShell remote commands but I read they use WMIObjects which implies using WMI ports. I used psexec and it uses WMI ports. This worked in my lab but when I hit the real firewalls, blocked. I've tried several methods, each hits the WMI ports or causes the RDP console to pop on the from server. I also need the event to

how to close remote desktop window using python

☆樱花仙子☆ 提交于 2019-12-11 05:17:28
问题 I want to automate closing the remote desktop application using python. I open the remote desktop using mstsc. When I do os.system("TASKKILL /F /IM mstsc.exe") It is killing all the remote desktop applications that are open. Is there a way I can specify through python which remote desktop it has to close. I have 2 or more instances of remote desktop open and I require my program to close only specific connection. Is there a way I can pass the IP address or process ID or something. 回答1: To

Delphi/Rdp check username and password before connect

旧时模样 提交于 2019-12-11 02:28:16
问题 as the subject say am trying to connect to server using this code in delphi procedure TmainF.Button1Click(Sender: TObject); var rdp1 : TMsRdpClient7NotSafeForScripting ; begin rdp1 := TMsRdpClient7NotSafeForScripting.Create(self); rdp1.Parent := mainF; rdp1.Server:=server_name; rdp1.UserName := user.Text; rdp1.AdvancedSettings7.ClearTextPassword := password.Text; rdp1.ConnectingText := 'connecting'; rdp1.DisconnectedText := 'disconnected'; rdp1.AdvancedSettings7.AuthenticationLevel:=0; rdp1

How to find amount of time mstsc is used and by whom?

吃可爱长大的小学妹 提交于 2019-12-10 18:06:30
问题 Our team has geographically dispersed and many virtual machine will be connected by them using remote desktop. I would like to find who is accessing a remote desktop session and how long it is being used. I tried to do it with powershell. I wrote a script where user will invoke mstsc using powershell. It will log who has logged in and when he logged. But i would like to find when some one log off from mstsc or disconnect mstsc . Is there any way to capture that information in log file using