title: What does psexec -s do?
body: <p>I want to run some commands on the remote machine. I am using <code>psexec.exe</code> in my application, when I try to run some command using <code>-h</code> and <code>-s</code> arguments as mentioned in the below command. </p>
  
  <pre><code>C:\psexec.exe -accepteula \\IPAddress -h -u "Username" -p pwd -s netstat -bno
  </code></pre>
  
  <p>When we provide a valid username and password it works with provided credentials, but when we provide username and password which is not valid it picks up <code>-s</code> and works I have done some research on <strong>-s</strong> it says <strong>-s = Run the remote process in the System account</strong>.</p>
  
  <p>What exactly <code>-s</code> command do, when running above mentioned command on a particular remote machine with the arguments like <code>-h</code> and <code>-s</code> together is user passed Username and Password will be preferred over <code>-s</code>?</p>