Running commands remotely through an RDP connection
1
This question is a follow up of this one. I am trying to run a command through the command line on a remote machine running Windows 7 from a workstation running Debian in an SSH session on that machine. The setup is basically as follows: debian box 1 === (SSH) ===> debian box 2 === (RDP) ===> Windows 7 I have tried running rdesktop from debian box 2 : rdesktop <Windows 7 box network address> -u username -p password -r disk:local="./TestRDP" -s "cmd.exe /K net use C: \\tsclientlocal & C:\test.bat & logoff" but cmd.exe is not launched on the remote device. I have also tried to open up cmd.exe on its own: rdesktop <Windows 7 box network address> -u username -p password -s "cmd.exe" but the terminal is not launched upon login ( rdesktop successf...