-1

Is it possible to run (on demand), not schedule, a simple task that has already been scheduled under Windows Task Scheduler, through a web interface?

Any suggestions are appreciated.

Thank you

Info: We have Apache server running on a windows 7 enterprise machine.

1
  • it is very clear that a web interface instead of winform interface to operate scheduled job was requested in this question. there is a need for this to expose scheduled jobs to operators who don't have rdp access. i m not sure why this question has negative votes.
    – Esen
    Jun 12 '19 at 10:43
4

You can run the scheduled task trough powershell, and you can execute powershell from php.

see https://stackoverflow.com/questions/5317315/executing-a-powershell-script-from-php for an example

Note that there's a native powershell web access in windows server 2012 (and powershell can connect to a remote workstation) :

Windows PowerShell® Web Access, first introduced in Windows Server® 2012, acts as a Windows PowerShell gateway, providing a web-based Windows PowerShell console that is targeted at a remote computer. It enables IT Pros to run Windows PowerShell commands and scripts from a Windows PowerShell console in a web browser, with no Windows PowerShell, remote management software, or browser plug-in installation necessary on the client device. All that is required to run the web-based Windows PowerShell console is a properly-configured Windows PowerShell Web Access gateway, and a client device browser that supports JavaScript® and accepts cookies.

source : https://technet.microsoft.com/en-us/library/Hh831611.aspx

0

Not the answer you're looking for? Browse other questions tagged or ask your own question.