windows - Automating remote desktop connection -
we use many remote desktops in our development environment , there many servers deployed in multiple environments. tedious remember ips, usernames , passwords. want write small utility buttons on it. when clicked, want start remote desktops, automatically fetching usernames , passwords list.
i know there command line equivalent ms remote desktop: mstsc. this thread suggests follows:
cmdkey /generic:termsrv/"computername or ip" /user:"username" /pass:"password" mstsc /v:"computer name or ip" i run first line , says credential added. when run second line runs remote desktop connection specified ip , asks username , password. open remotely connected desktop @ specified ip automatically applying credential specified in cmdkey.
- what's wrong here? possible using such powershell script?
- can invoke script through html page (since there many other resources laying onto webpage serve 1 spot links developers, not wasting time , effort finding them each time want them. possible registering application uri scheme ?)
- is there other (standard) way?
the problem in attempt parameter /generic.
according official website cmdkey, /generic
identifies computer or domain name entry associated with.
in example, call computer computer01.
do want credentials associated termsrv/computer01 ? (like example /generic:termsrv/"computername or ip" said)
no, want associated normal computername computer01.
then have remove termsrv/.
the working result is:
cmdkey /generic:"computername or ip" /user:"username" /pass:"password" to other questions:
- see answer above
- i don't know if possible html only. don't think so. implement powershell scripts asp.net. works.
- see answer above
Comments
Post a Comment