Search code examples
windowsbatch-filemstsc

Execute RDP connection on multiple server


We have thousand of Windows server in our network. For some kind of work we need to log in on 100+ servers. We are doing it manually. Entering server name and giving credentials. Is it possible to create a batch file/script so, this work can be automated. Like we simply create a text file or csv and run the script. Script can open mstsc session and put credential in the mstsc. We can define username and password in the script.


Solution

  • Consider using remote desktop manager - remotedesktopmanager.com, it allows you to create several predefined remote desktopts, save different rdp settings for them, and switch between desktops in more convenient way.

    Also when you connect via usual mstsc, you can save it as a separate rdp file and ask it to remember credentials when conecting first time, and just store separate rdp files that way.