Answer the question
In order to leave comments, you need to log in
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question