0

I want to start a command(cmd file) on remote windows 7/2008 hosts via rdp connection.

If it possible I want to operate from linux and python. If not - I can use windows. So I have access to windows machines only via rdp. I have to start commands in automatically mode. What is the easiest way?

Marat
  • 11

1 Answers1

0

Don't.

Use WinRS, which is the proper solution for remote execution on Windows. See Using WinRS.

There are hacks to allow RDP to execute something remotely (eg. Can RDP clients launch remote applications and not desktops), they are hacks. RDP does not have remote execution facilities.

If you want a Linux client, then install an SSH server on your Windows images. If you're brave you could give OpenWSMAN a shot, but frankly I'd stick to ssh.

Community
  • 1
  • 1
Remus Rusanu
  • 288,378
  • 40
  • 442
  • 569