Answer the question
In order to leave comments, you need to log in
How to connect to RDP from the console?
Hello. I need to check the correctness of the login pass in RDP from the command line.
I found the command mstsc.exe -v:185.22.30.40:3389 /F -console
but did not understand how to specify pass and login. Thanks in advance
Answer the question
In order to leave comments, you need to log in
The mstsc options cannot specify a username and password. Either it must already be saved, or it will be requested in the GUI.
If it's important to do everything from the command line, then you can save the password with the cmdkey utility, after which mstsc will automatically pick up this login / password. The saved login can also be deleted with the same utility. You can view your saved credentials in Credential Manager.
If several users work on the client computer and everyone needs access to the terminal server, then you need to save credentials for each local user separately.
If I'm not mistaken, from version 6 of mstsc, connection to the console is performed with the /admin key.
As res2001 rightly noted , mstsc takes the login and password from the "credential manager". You can try to use freerdp - there you can set the login and password as parameters.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question