2016年3月29日 星期二

cmdkey and Mstsc

cmdkey /generic:TERMSRV/"computername or IP" /user:"username" /pass:"password"
Then call RDP connection using
mstsc /v:"computer name or IP"
If you want to delete the credentials run
cmdkey /delete:TERMSRV/"Computer name or IP"
Remember to remove ""

-------------------------
Re-posted as an answer: Found an alternative (Tested in Win8):
cmdkey /generic:"<server>" /user:"<user>" /pass:"<pass>"
Run that and if you run:
mstsc /v:<server>
You should not get an authentication prompt.


沒有留言:

張貼留言

注意:只有此網誌的成員可以留言。