title: RDP and run command on remote windows machine using command line
body: <p>I have gone through various links on SO regarding RDP to a windows machine but still can't understand how to execute for test, <code>ipconfig</code> command on remote machine and gather the results in a text file.</p>
  
  <p>I can't get beyond <code>Mstsc</code> which creates the gui and asks for password and username.</p>