title: Running schtasks through PHP script
body: <p>I want to run this command in my script </p>
  
  <pre><code>passthru("Schtasks.exe /create /SC WEEKLY /D MON /TN \"helloworld\" /TR \"C:/wamp64/www/stage/jobs/AddSomeRecords_0.1\" /ST 03:00",$return_value);
  </code></pre>
  
  <p>The same code works perfectly when I try it directly in cmd but it does nothing through the script. I have passed couple of days searching and all I found is "The IIS anonymous user needs permissions on schtasks.exe!". unfortunately, I could not succeed in doing this. I am using windows10. Can anyone help ? </p>