D
D
Decepeshechka2017-06-20 08:19:26
cmd/bat
Decepeshechka, 2017-06-20 08:19:26

How to set User/Password in .bat file for RDP connection?

Good afternoon !
I ran into a problem, I need a script in a .bat file that will connect using a Login / password pair via RDP.
Unfortunately, the user account name is in Cyrillic.
Here is the option that I tried to do:
@chcp 1251
cmdkey /generic:TERMSRV/"xxxx" /user:user /pass:111
mstsc /v:xxxx /f
The terminal opens asking for credentials, but I need it so that the batch file would already be sent in the form of a pre-made pair of logopasses

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Tallmange, 2017-06-20
@p00h

Login and password can be saved in .rdp file after the first login. Alternatively, you can try to create such a file, log in, save the data. And then pull this file from the batch file.

D
Dmitry, 2021-06-17
@bigloafer

And if the username is not in Cyrillic, does it work?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question