We use many remote desktops in our development environment and there are many servers deployed in multiple environments. It is tedious to remember their IP addresses, userna
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 address "
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: