Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add a scheduled task at the setup?

I've a little c# application, and I have to create a scheduled task for this application.

I have a Setup which installs the application, and the best case will be that I can set this windows scheduled task at the installation.

Any idea if it's possible and/or how?

Thank you very much

like image 244
J4N Avatar asked Jul 13 '11 12:07

J4N


People also ask

How do you set up a Scheduled Task?

Open Start, Search for "Task Scheduler" and press enter to open "Task Scheduler". Right-click on the "Task Scheduler Library" and click on the "New Folder" option. Enter the name of the New folder and click on the "OK" button. Navigate the following: Task Scheduler Library > New Folder, then click on "Create Task".

How do I add a Scheduled Task to a GPO?

Adding the scheduled taskClick on User Configuration > Preferences > Control Panel Settings > Scheduled Tasks and create a new Scheduled Task. Select “Create” for the action, give the task a name, and specify NT AUTHORITY\System as the user account to run the task.


1 Answers

There is a Task Scheduler Managed Wrapper on codeplex - this can be used to create a small console application that will setup a task and can be run by your installer.

You can also run the schtasks command line utility for a similar result.

like image 123
Oded Avatar answered Oct 29 '22 12:10

Oded