Include task in Windows task scheduler via batch

3

I set up various types of backups by batch, the codes are not pertinent to this question, however what is difficult is to configure them by the Windows Task Scheduler.

Is there a way to add these tasks by batch?

I would like to be able to configure in the batch:

  • Task name;
  • Different times of execution;
  • Whether it's monthly or daily;
  • Be executed only when the user is logged on or not.
  

In addition to being able to add this task, it would be interesting to know if it   exists first, because in this case you could do this check in the   first run the backup manually for example.

    
asked by anonymous 02.10.2017 / 17:08

1 answer

0

You can use the "at" command

Do not forget to authenticate on the pc with some user belonging to the group "domain admins" or any user who is local to run the command above, this will create a scheduled task to run at 00:00 every day. p>     

06.10.2017 / 22:14