I created a windows task and scheduled to run every 1 hour.
Every hour the task runs but am getting an warning Task Scheduler did not launch task "\Sample Task" because computer is running on batteries. User Action: If launching the task on batteries is required, change the respective flag in the task configuration.
and task exits pre-maturely.
I am using SCHTASKS.exe for creating task as I need to create task taking user input from a form.
Using the command I want to remove the power option.
Is this possible?