Atom Feed - Avian Waves Forums - Topic:rdp activex control - 20Avian Waves Forums - Atom Feedurn:https:--www-avianwaves-com-Forums-aspx:AtomFeed:AvianWavesForums:Topic:rdpactivexcontrol-20:1Copyright 2024 Avian Waves Forums2024-03-29T07:24:31Zhttps://www.avianwaves.com/Forums.aspx/DesktopModules/YetAnotherForumDotNet/Images/Logos/favicon.pngForum Adminhttps://www.avianwaves.com/Forums.aspxno-reply@avianwaves.comTimothyhttps://www.avianwaves.com/Forums/g/Profile/u/2/TimothyTimothyhttps://www.avianwaves.com/Forums/g/Profile/u/2/TimothyMarchttps://www.avianwaves.com/Forums/g/Profile/u/12/MarcYetAnotherForum.NETurn:https:--www-avianwaves-com-Forums-aspx:ftPosts:st1:meid57:1rdp activex control<table class="content postContainer_Alt" width="100%"><tr><td>Ah yes! The password fiasco. The RDP control is on its umpteenth version and as such has lots of weird old ways to invoke certain things and has deprecated some features you find in the older documentation (I remember searching on Google for how to set the password for a while). The current preferred way (Vista/Server 2008) is to use Network Authentication which pulls credentials from an OS prompt. Very secure (OS prompts like that override keystroke loggers and whatnot), but that sucks for scripting. Not to mention that Server 2003 doesn't support Network Authentication anyway... Luckily it falls back to just shoving the username/password to the prompt, but I digress...<br /><br />There are two functions you need to use. (This is in VB.Net)<br /><br />1. To set the password:<br /><span style="color:blue">AxControl.AdvancedSettings.ClearTextPassword = "YourPassword"</span><br /><br />2. To clear the password:<br /><span style="color:blue">CType(Me.AxControl.GetOcx, MSTSCLib.IMsTscNonScriptable).ResetPassword()</span><br /><br />The "non-scriptable" parameter is stuff you can't access from scripts (supposedly) but you can from regular languages by casting (that's the CType) the OCX reference of the control to IMsTscNonScriptable and invoking the function from there.<br /><br />BTW: In COM parlance, I guess "ClearTextPassword" would actually be put_ClearTextPassword.<br /></td></tr></table>2007-07-06T06:16:11-04:002007-07-06T06:16:11-04:00Timothy<table class="content postContainer_Alt" width="100%"><tr><td>Ah yes! The password fiasco. The RDP control is on its umpteenth version and as such has lots of weird old ways to invoke certain things and has deprecated some features you find in the older documentation (I remember searching on Google for how to set the password for a while). The current preferred way (Vista/Server 2008) is to use Network Authentication which pulls credentials from an OS prompt. Very secure (OS prompts like that override keystroke loggers and whatnot), but that sucks for scripting. Not to mention that Server 2003 doesn't support Network Authentication anyway... Luckily it falls back to just shoving the username/password to the prompt, but I digress...<br /><br />There are two functions you need to use. (This is in VB.Net)<br /><br />1. To set the password:<br /><span style="color:blue">AxControl.AdvancedSettings.ClearTextPassword = "YourPassword"</span><br /><br />2. To clear the password:<br /><span style="color:blue">CType(Me.AxControl.GetOcx, MSTSCLib.IMsTscNonScriptable).ResetPassword()</span><br /><br />The "non-scriptable" parameter is stuff you can't access from scripts (supposedly) but you can from regular languages by casting (that's the CType) the OCX reference of the control to IMsTscNonScriptable and invoking the function from there.<br /><br />BTW: In COM parlance, I guess "ClearTextPassword" would actually be put_ClearTextPassword.<br /></td></tr></table>urn:https:--www-avianwaves-com-Forums-aspx:ftPosts:st1:meid55:1rdp activex control<table class="content postContainer" width="100%"><tr><td>Hi !<br /><br />I'm facing a problem I could solve by writing a small program that uses the rdp activex control to connect somewhere automatically. Now I created a new Project in VS and added that control and everything is straight forward except for setting the password. There is put_Server(), put_UserName() etc. But I don't see a way to set the password. I quickly started my favorite rdp client mod ever to check if it allows specifying a password before connecting to the server and RD Tabs does! So may I ask how do you do it?<br /><br />Best regards<br /> Marc<br /></td></tr></table>2007-07-04T09:37:02-04:002007-07-04T09:37:02-04:00Marc<table class="content postContainer" width="100%"><tr><td>Hi !<br /><br />I'm facing a problem I could solve by writing a small program that uses the rdp activex control to connect somewhere automatically. Now I created a new Project in VS and added that control and everything is straight forward except for setting the password. There is put_Server(), put_UserName() etc. But I don't see a way to set the password. I quickly started my favorite rdp client mod ever to check if it allows specifying a password before connecting to the server and RD Tabs does! So may I ask how do you do it?<br /><br />Best regards<br /> Marc<br /></td></tr></table>