Good day.

Given: login, password to rdp windows server.
Necessary: ​​run the code in the console on a remote server, having this information.

How to solve the problem?

Any console solution for nix (java, python, etc) is supported.

Update

I searched in google, I haven’t found a solution yet. I need to execute commands on a remote Windows server (having rdp login / password available) from the current console.

  • @Rodion Preobrazhensky, HashCode is not a freelance exchange. Paraphrase your question, specify what you did yourself, what did not work out. properJavaRDP is an open source Java RDP client for Windows Terminal Services properjavaRDP properjavardp.sourceforge.net - smackmychi
  • Updated the question. - Rodion Preobrazhensky

2 answers 2

  1. Login & Passwd - Addmin ??
  2. A bat file is created and put into autorun under this account, otherwise, you can put a launch on a schedule.

    What is your problem? go through RDP open the console and enter your commands. It all depends on whether you want to do it by hand or automatically on a schedule. According to the schedule - through the task scheduler - there you can either start the batch file, or directly the code in the console mode immediately, you can read a short manual here:

    https://technet.microsoft.com/ru-ru/library/cc721931 (v=ws.11).aspx