title: service to perform scheduled task operation
body: <p>Is it possible to create a Windows Scheduled Task from a Windows batch file with another batchfile as a parameter: </p>
  
  <pre><code>For eg : schtasks.exe /create /tn "taskName" /tr "%Home%\bin\bootstrap.cmd" /sc DAILY /st 00:01:00 /ri 1 /du 0023:59 %schTaskAccountArgs%"
  </code></pre>
  
  <p><strong>Background</strong><br>
  The batch file <code>'bootstrap.cmd'</code> in the script above has calls to other batchfiles and eventually an exe. It creates a scheduled task in the Microsoft console which triggers the same exe, but in my case due to a GPO policy, the scheduled task couldn't be created <strong><em>(policy being-not able to store passwords for the user that runs the scheduled job)</em></strong>. As a workaround I want to create a service in the same Batch file by replacing the above by:</p>
  
  <pre><code>sc create "service for taskName" start= demand displayname= "service for taskName" binpath= "%Home%\bin\bootstrap.cmd"
  </code></pre>
  
  <p>is it a feasible method to create a service for this scenario.</p>