rdp

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

AltGr key not working, instead i have to use Ctrl+AltGr [closed]

天大地大妈咪最大 提交于 2020-05-24 08:06:09
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I encountered this problem several times. I want to use a character accessible using the AltGr Key but for some reason it doesn't work. As if i didn't press the AltGr key. Usually i experience this in remote Desktop but not on my local machine. I think that this is triggered when doing

Azure VM via RPD shows black screen and cmd only

ぃ、小莉子 提交于 2020-05-17 08:46:19
问题 I have an Azure Virtual Machine. When I log in through RDP I can see only black screen and CMD console is opened. Is it possibile that there is no explorer? VM OS spec: Operating system: Windows Publisher: MicrosoftWindowsServer Offer: WindowsServerSemiAnnual SKU: Datacenter-Core-1803-with-Containers-smalldisk Version: latest I have tried multiple things: Connect RDP through 3 different apps (Windows Remote Desktop Connection, Windows Remote Desktop Connection Manager, Remote Desktop Manager)

How can my AutoHotKey script launch batch scripts accordingly?

我的未来我决定 提交于 2020-02-29 06:50:49
问题 This script is supposed to switch me from Windows to Linux(VM) and vice versa: Pause::vmStart() return runVM := false linux := false vmStart() { If (!runVM and !linux) { Run, C:\Users\patrick\dev-vm\PS.cmd runVM := true sleep, 18000 } If (!linux and !WinExist("DevVM - 127.0.0.1:23389 - RDP")) { Run, C:\Users\patrick\dev-vm\RDP.cmd } if (!linux) { WinShow, DevVM - 127.0.0.1:23389 - RDP WinActivate, DevVM - 127.0.0.1:23389 - RDP } Send ^!{CtrlBreak} linux := !linux } When I am in Windows, it

Programmatically manipulating active RDP session

天大地大妈咪最大 提交于 2020-01-25 03:43:16
问题 I've got Mac OSX running and want to programmatically manipulate a active RDP session to for instance, perform actions within a launched program within the session (dynamics specifically, yet woudn't hurt to know a universal way). I don't know if this is possible. Currently using a RDP file to launch the RDP session with credentials and have the process ID of my active session, retrieved via NSWorkspace. With that I can do the basic stuff like closing my session again, yet i want to

Powershell to find out disconnected RDP session and log off at the same time

我的梦境 提交于 2020-01-20 08:53:48
问题 Is there a script that can log out my disconnected RDP session from any server? This is causing a lot of pain and constant ad account lockouts. Any help would be awesome. 回答1: I have got the answer and I am writing this answer to help someone in need as I had to figure this out myself. I created a script using online resources to find out disconnected RDP sessions on all Windows Server in my AD environment. I run a query on each Windows Server and create a CSV formatted list, I then use that

Powershell to find out disconnected RDP session and log off at the same time

一曲冷凌霜 提交于 2020-01-20 08:53:05
问题 Is there a script that can log out my disconnected RDP session from any server? This is causing a lot of pain and constant ad account lockouts. Any help would be awesome. 回答1: I have got the answer and I am writing this answer to help someone in need as I had to figure this out myself. I created a script using online resources to find out disconnected RDP sessions on all Windows Server in my AD environment. I run a query on each Windows Server and create a CSV formatted list, I then use that

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

Start azure virtual machine without azure portal

安稳与你 提交于 2020-01-16 08:12:18
问题 I want to give access to somebody to a virtual machine on Azure (with the RDP connection file) and let him start/stop the VM but without giving him access to the Azure Portal account. Is there a (simple) way to start/stop virtual machine on Azure without having to access the portal ? By "simple" I mean something that you don't need to run some line code and that can be as easy as opening a RDP file. Alternatively, is there a way not to be billed of a running (but idle) virtual machine ? 回答1:

How do I enable SecuredSettingsEnabled when using AxMsRdpClient to connect through RDP to a Cloud Instance?

自古美人都是妖i 提交于 2020-01-12 11:08:04
问题 I've searched the web high and low and just cannot wrap my head around this. Basically I want to connect to a windows server 2008 instance, located in the cloud and run a batch file (which is located on the instance). I'm using the AxMSTSCLib and MSTSCLib to connect to it through RDP, but cannot get the batch running. The problem is SecuredSettingsEnabled isn't enabled so I am restricted doing this kind of operation. How do I connect properly, so that SecuredSettingsEnabled is set to True and