mstsc保存用户名和密码,实现自动登录远程桌面


mstsc保存用户名和密码,实现自动登录远程桌面

 

 

首先可以使用mstsc /?来查看关于mstsc的参数说明

 

 

 

 

根据上述的命令说明,我这里实现的bat文件为

mstsc C:/a.rdp /console /v: xxx.xxx.xxx.xxx:3389 

 

a.rdp内容

 

screen mode id:i:1 desktopwidth:i:1280 desktopheight:i:750 session bpp:i:24 winposstr:s:2,3,188,8,1062,721 full address:s:MyServer compression:i:1 keyboardhook:i:2 audiomode:i:0 redirectdrives:i:0 redirectprinters:i:0 redirectcomports:i:0 redirectsmartcards:i:0 displayconnectionbar:i:1 autoreconnection enabled:i:1 username:s:MyUserName domain:s:MyDomain alternate shell:s: shell working directory:s: password 51:b:01000000D08C9DDF0115D1118C7A00C04FC297EB01000000A925BC8BF405AE47B6A93F9FCD7F5A360400000008000000700073007700000003660000A800000010000000C6D37A7460CFA72B01B292A434E7B05B0000000004800000A0000000100000001BD47A8C85A97DE20B65AE8C515E8EF110000000164E84E384B887573DF97586B4246AD914000000884A9FACDB5B1862C5B27339F805AD6E392E1DE0 disable wallpaper:i:1 disable full window drag:i:1 disable menu anims:i:1 disable themes:i:0 disable cursor setting:i:0 bitmapcachepersistenable:i:1 

 

这样,我点击我的bat文件就可以自动的登录远程桌面了,不用每次的都输入用户名和密码了。

 

 

password的产生可以利用工具来产生,可以从这里下载

http://download.csdn.net/source/3335310

 

关于原理性的介绍参考如下两篇文档:

http://coe.uncc.edu/mosaic/remote_desk/RDP%20File%20Settings.htm

http://www.remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/comment-page-3/

 

你可能感兴趣的:(c,shell,session,domain,themes,compression)