V
V
Vladimir Grabko2016-04-25 03:16:16
Windows
Vladimir Grabko, 2016-04-25 03:16:16

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 -consolebut 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

3 answer(s)
R
res2001, 2016-04-25
@lucifer-m

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.

J
Janus74, 2016-04-25
@Janus74

mstsc /?
There is no such key.

A
Alexander Koryukin, 2016-04-25
@GeXoGeN

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 question

Ask a Question

731 491 924 answers to any question