B
B
Bohdan Zadorozhniy2019-11-18 10:10:28
cmd/bat
Bohdan Zadorozhniy, 2019-11-18 10:10:28

How to access rdp using a batch file?

How to log in to rdp using a bat file, I can’t get to remote because I don’t know how to register a domain in a batch file.
Here is the code:

cmdkey /generic:TERMSRV/$server /user:$user /pass:$Password
mstsc /v:$Server

What to add so that the domain is registered too?
Screen

5dd24c9a8238f059132899.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem @Jump, 2019-11-18
curated by the

mstsc server_connection_file.rdp

D
Dmitry, 2019-11-18
@Tabletko

If in the username, then either [email protected] or domain.tld\user can be used. If in the server name then - srv.domain.tld

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question