title: Running remote batch in elevated command
body: <p>I have a windows service install batch file in a remote computer (<code>Install.cmd</code>).<br>
  When I run it as administrator, it works just fine.<br>
  But when I run a script (<code>RemoteInstall.cmd</code>) that run the remote install script, it complete all the steps beside start running.</p>
  
  <p>From my computer -- <code>RemoteInstall.cmd</code> script:</p>
  
  <pre><code>START /WAIT clusrun /scheduler:RemotePc /nodes:RemotePc /user:Administrator /password:MyPass \\RemotePc\D$\Service\Install.cmd
  </code></pre>
  
  <p>On server -- <code>Install.cmd</code> script:</p>
  
  <pre><code>%WinDir%\Microsoft.NET\Framework\v4.0.30319\installutil MyService.exe
  sc config "MyService" start= auto
  sc config "MyService" obj= ".\Administrator" password= "MyPass"
  sc failure "MyService" actions= restart/10000/restart/10000/restart/10000 reset= 86400
  net start MyService
  </code></pre>
  
  <p>The last command returns <code>errorlevel=2</code> when I run it from remote, while all the rest return <code>errorlevel=0</code> if I run it locally or from remote.
  Same error occurs when I use <code>sc</code> instead of <code>net</code>.<br>
  How can I make it work?</p>