Automating remote desktop connection

不问归期 提交于 2019-11-28 08:32:33

the problem in your attempt is the parameter /generic.

According to the official website for cmdkey, /generic

identifies the computer or domain name that this entry will be associated with.

In my example, I will call the computer Computer01.

Do you want the credentials associated with TERMSRV/Computer01 ? (Like your example /generic:TERMSRV/"computername or IP" said)

No, you want it associated to the normal computername Computer01.

Then you have to remove TERMSRV/.

The working result is:

cmdkey /generic:"computername or IP" /user:"username" /pass:"password"

To your other questions:

  1. See the answer above
  2. I don't know if its possible with HTML only. I don't think so. But I also implement some PowerShell scripts into ASP.NET. This works.
  3. See answer above

This is very old question. A lot had changed since. Many ops already suggested to use ready made tools which does this. Back in year 2013, Windows store wasnt that great place (*my opinion). But now its ok. There is Microsft's own Remote Desktop app in the store. The app is universal, that is it run on pc, mobile and holographics.

Whats good? Microsoft has made same app available on Android. I have tried for PC and Android. Both work great.

So have a try. I am regular user of these apps now.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!