title: Can Fabric run shell commands on a remote Windows machine?
body: <p>I've been using Fabric on Linux systems for a while now and I've never had any issue with it. However, now I've branched out into Windows and I just cannot get anything to cooperate.</p>
  
  <p>I've installed openSSHd on the remote Windows 8.1 system and I can send non-shell commands like <code>run('ipconfig', shell=False)</code> and such they will run as expected, but if I try the following.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>def runscripts_W():
  
   env.user = 'tester'
   env.password = 'password'
   env.cwd = 'C:/fabric_upload'  
   run('python runscripts.py')</code></pre>
  </div>
  </div>
  </p>
  
  <p>I just get <code>Unable to execute command or shell on remote system: Failed to Execute Process</code></p>
  
  <p>I've tried installing MinGW and trying the solution <a href="https://stackoverflow.com/questions/22504784/fabric-cannot-execute-remote-command-on-windows">here</a>, but I am guessing Msys/MinGW can't work with Python 3.5 because even after editing the Msys fstab file with the python path I will just get back that the python command was not found and downgrading isn't an option.</p>
  
  <p>Any one have any experience with Fabric on Windows? I know it isn't really meant for Windows, but it seems to be able to connect and send commands...I just need to get the machine to start up the python script. So close yet so far...</p>