Connect to remote desktop via mstsc automatically via username and password
Solution 1:
Define a Remote Desktop Connection profile with the remote system IP/hostname, username & ensure Allow me to save credentials
checkbox is checked. Click on Save, and give a name.
Next time you try to connect to it, Windows should pick up the profile and login with the username & password and login automatically.