0

Is it possible to start\stop already set windows scheduled task from ASP.NET code? I have few tasks scheduled in windows server 2008 r2. They run as per their scheduled time. But I need to run few tasks manually from ASP.NET web page whenever user wants. So in addition to the tasks running at their scheduled time, I want to give user the facility to start\stop at any time from ASP.NET web application.

Ami
  • 397
  • 2
  • 4
  • 19

2 Answers2

1

it is possible -> "Task Scheduler Interfaces":

http://msdn.microsoft.com/en-us/library/windows/desktop/aa383606%28v=vs.85%29.aspx

Kr15
  • 595
  • 1
  • 6
  • 22
0

Yes, it is possible. Your backend process (IIS) will need sufficient rights. Start here: Task Scheduler 2.0 Interfaces

Alexander
  • 2,457
  • 1
  • 14
  • 17