title: net use command results in Status always as UNAVAILABLE
body: <p>Hi i am trying to send the "net use" command through ssh from linux using python script. This i do using the schtasks.exe</p>
  
  <p>Here is the command that i use:</p>
  
  <pre><code>"schtasks.exe /Create /S \"WIN-OPUQOKCV7CG\" /RU \"Administrator\" /RP \"Nbv12345\" /SC DAILY /TN cmd /TR \"mapdrivecmds.bat\" /F
  
  "schtasks.exe /run /tn cmd
  </code></pre>
  
  <p>mapdrivecmds.bat content is:</p>
  
  <pre><code>net use M: \\172.17.100.197\SMBShare1 /Persistent:Yes
  </code></pre>
  
  <p>The output has the status always as "Unavailable"</p>
  
  <p>Also tried the mapdrivecmds.bat with the user credentials, but this has the same problem:</p>
  
  <pre><code>net use M: \\172.17.100.197\SMBShare1 /User:WIN-OPUQOKCV7CG\Administrator Nbv12345 /Persistent:Yes
  </code></pre>
  
  <p>When I run the bat file locally on the machine the drive gets created without any problem. Status gives me "OK"</p>
  
  <p>Can you please let me know what needs to be done. This is very tough to debug as I don't see any logs to check.</p>