I am creating a custom version of VMCONNECT.EXE to connect users to Hyper-V guest VMs. I've got it all working, except when the user connects to a machine that isn't logged in. I cannot send the Ctrl+Alt+Del command to the RDP ActiveX control.
Current code as follows:
public partial class Form1 : Form
private void button1_Click(object sender, EventArgs e)
//specify the server the VM is running on
axMsRdpClient8NotSafeForScripting1.Server = "x.x.x.x";
//enable relative mouse mode and smart sizing
axMsRdpClient8NotSafeForScripting1.AdvancedSettings7.RelativeMouseMode = true;
axMsRdpClient8NotSafeForScripting1.AdvancedSettings7.SmartSizing = true;
axMsRdpClient8NotSafeForScripting1.AdvancedSettings8.DisableCtrlAltDel = -1;
//specify the authentication service - this is required and set the authentication level
"Microsoft Virtual Console Service";
axMsRdpClient8NotSafeForScripting1.AdvancedSettings6.AuthenticationLevel = 0;
//retrieve the activeX control and enable CredSSP and disable NegotiateSecurity
MSTSCLib.IMsRdpClientNonScriptable3 Ocx =
Ocx.EnableCredSspSupport = true;
Ocx.NegotiateSecurityLayer = false;
//retrieve the activeX control and disable CredentialsDelegation
MSTSCLib.IMsRdpExtendedSettings rdpExtendedSettings =
object True = true;
rdpExtendedSettings.set_Property("DisableCredentialsDelegation", ref True);
//set the RDPPort and set the PCB string to the VM's ID
axMsRdpClient8NotSafeForScripting1.AdvancedSettings2.RDPPort = 2179;
axMsRdpClient8NotSafeForScripting1.AdvancedSettings7.PCB = "MACHINE GUID";
//connect to the VM
As you can see there I have tried to use the "DisableCtrlAltDel" command, however this doesn't seem to do anything.
Any help would be much appreciated.
I am not familar about your issue, but as far as I know that a slightly different keyboard shortcuts are used when applied to a remote desktop session window. If you want to send ctrl+alt+del command to remote desktop session windows, please ctrl+alt+end.
The following articles are for your reference.
How to Press and Send Ctrl-Alt-Del in Remote Desktop Connection Window:
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
- Marked as answer by Eason_HMicrosoft contingent staff, Moderator Thursday, December 19, 2013 2:03 AM