title: windows service - start service using batch file using task scheduler on windows 2012 server R2
body: <p>I have created a batch file startservice.bat to start a windows service and scheduling this batch files using task scheduler on windows server 2012 R2.</p>
  
  <p>startservice.bat</p>
  
  <pre><code>NET START myservice
  </code></pre>
  
  <p>But after scheduler runs a cmd pop up comes but service is not actually started.</p>
  
  <p>If I run this batch file manually then service starts.</p>
  
  <p>Thanks.</p>