Automatic login for Remote Desktop<p align=left><font face=Arial size=2>Hi all,</font></p> <p align=left> </p> <p align=left>I would like some help in relation to Remote desktop. I was wondering if there was some console commands that cause Remote Desktop to run automatically enter in the username and password of a remote computer and then login. If it can't be done using the console, can it be programmed to automatically login (preferable in C++ or C#)?</p> <p align=left> </p> <p align=left>MonkeyMark</p>© 2009 Microsoft Corporation. All rights reserved.Wed, 13 May 2009 08:45:05 Z3ac29327-7519-43e7-b8e9-188fa9dfdd1ehttp://social.msdn.microsoft.com/Forums/en-US/winforms/thread/3ac29327-7519-43e7-b8e9-188fa9dfdd1e#3ac29327-7519-43e7-b8e9-188fa9dfdd1ehttp://social.msdn.microsoft.com/Forums/en-US/winforms/thread/3ac29327-7519-43e7-b8e9-188fa9dfdd1e#3ac29327-7519-43e7-b8e9-188fa9dfdd1eMonkeyMarkhttp://social.msdn.microsoft.com/Profile/en-US/?user=MonkeyMarkAutomatic login for Remote Desktop<p align=left><font face=Arial size=2>Hi all,</font></p> <p align=left> </p> <p align=left>I would like some help in relation to Remote desktop. I was wondering if there was some console commands that cause Remote Desktop to run automatically enter in the username and password of a remote computer and then login. If it can't be done using the console, can it be programmed to automatically login (preferable in C++ or C#)?</p> <p align=left> </p> <p align=left>MonkeyMark</p>Thu, 13 Dec 2007 02:48:36 Z2007-12-18T05:28:07Zhttp://social.msdn.microsoft.com/Forums/en-US/winforms/thread/3ac29327-7519-43e7-b8e9-188fa9dfdd1e#e2e0b3a6-4ece-4c66-aa9e-09693465edb2http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/3ac29327-7519-43e7-b8e9-188fa9dfdd1e#e2e0b3a6-4ece-4c66-aa9e-09693465edb2Yu Guo – MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Yu%20Guo%20%u2013%20MSFTAutomatic login for Remote Desktop<p align=left><font face="Times New Roman">Hi,  MonkeyMark,</font></p> <p align=left><font face="Times New Roman"></font> </p> <p align=left><font face="Times New Roman">Based on my understanding, you want to perform a auto login in your Remote Desktop, don't you?</font></p> <p align=left><font face="Times New Roman"></font> </p> <p align=left><font face="Times New Roman">I think you should first open the Remote Desktop Connection application, input the server address, username and password.</font></p> <p align=left><font face="Times New Roman">After that, you can save the configuration to a .rdp file.</font></p> <p align=left><font face="Times New Roman">Actually, this file can be open with notepad. </font></p> <p align=left><font face="Times New Roman">It is something like</font></p> <p align=left> <div class=codeseg> <div class=codesniptitle><span style="width:100%">Code Block</span></div> <div class=codecontent align=left><font face=Arial>screen mode id:i:1<br>desktopwidth:i:800<br>desktopheight:i:600<br>session bpp:i:16<br>winposstr:s:2,3,482,159,1280,759<br>full address:s:your server address<br>compression:i:1<br>keyboardhook:i:2<br>audiomode:i:0<br>redirectdrives:i:1<br>redirectprinters:i:0<br>redirectcomports:i:0<br>redirectsmartcards:i:1<br>displayconnectionbar:i:1<br>autoreconnection enabled:i:1<br>authentication level:i:0<br>username:s:your user name<br>domain:s:<br>alternate shell:s:<br>shell working directory:s:<br>disable wallpaper:i:1<br>disable full window drag:i:1<br>disable menu anims:i:1<br>disable themes:i:0<br>disable cursor setting:i:0<br>bitmapcachepersistenable:i:1<br>password xxxxxxxx......xxxxxx <br></font></div> <p class=codecontent align=left><br><font face="Times New Roman">The password is encrypted.</font></p></div> <p align=left><font face="Times New Roman">Then you can start this .rdp file with</font></p><font face="Times New Roman"> <p class=MsoNormal style="margin:0cm 0cm 0pt" align=left><span lang=EN-US style="font-size:9pt;font-family:新宋体"> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><span style="width:100%">Code Block</span></div> <p class=MsoNormal style="margin:0cm 0cm 0pt" align=left><span lang=EN-US style="font-size:9pt;font-family:新宋体">System.Diagnostics.<span style="color:#2b91af">Process</span>.Start(<span style="color:#a31515">&quot;your rdp file path&quot;</span>);</span></p> <p align=left> </p></div></div> <p align=left> </p></span> <p></p> <p>More info</p> <p align=left><a title="http://msdn2.microsoft.com/en-us/library/system.diagnostics.process.start.aspx" href="http://msdn2.microsoft.com/en-us/library/system.diagnostics.process.start.aspx">http://msdn2.microsoft.com/en-us/library/system.diagnostics.process.start.aspx</a></p> <p align=left> </p> <p align=left> </p> <p align=left>Hope this helps,</p> <p align=left>Regards</p> <p align=left></font> </p>Tue, 18 Dec 2007 05:23:49 Z2007-12-18T05:28:07Zhttp://social.msdn.microsoft.com/Forums/en-US/winforms/thread/3ac29327-7519-43e7-b8e9-188fa9dfdd1e#8e8f2a4e-ee25-4b25-b899-1f0402d3b5bdhttp://social.msdn.microsoft.com/Forums/en-US/winforms/thread/3ac29327-7519-43e7-b8e9-188fa9dfdd1e#8e8f2a4e-ee25-4b25-b899-1f0402d3b5bdMonkeyMarkhttp://social.msdn.microsoft.com/Profile/en-US/?user=MonkeyMarkAutomatic login for Remote Desktop<p align=left><font face=Arial size=2>Cheers for the help, it proved most useful.</font></p> <p align=left> </p> <p align=left>MonkeyMark</p>Mon, 24 Dec 2007 00:38:53 Z2007-12-24T00:38:53Zhttp://social.msdn.microsoft.com/Forums/en-US/winforms/thread/3ac29327-7519-43e7-b8e9-188fa9dfdd1e#18f208b2-6208-4137-ad74-919b9d148eb3http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/3ac29327-7519-43e7-b8e9-188fa9dfdd1e#18f208b2-6208-4137-ad74-919b9d148eb3pompidohttp://social.msdn.microsoft.com/Profile/en-US/?user=pompidoAutomatic login for Remote Desktop<blockquote> <p align=left><span style="font-size:x-small;font-family:Arial">Cheers for the help, it proved most useful.</span></p> <p align=left> </p> <p align=left>MonkeyMark</p> </blockquote> <br/>I need <strong>Hack that can give Remote desktop Connection </strong>Wed, 13 May 2009 08:44:51 Z2009-05-13T08:44:51Z