New
#1
Command Line Task Scheduler Power Options
Hi everyone,
I was trying to create a scheduled task via command line (schtask.exe) and I want it to run regardless of whether the user is on battery power or on AC power. I created an event and it runs fine on AC power but when I try it on the battery power, it doesn't work. I checked the task in the task scheduler and saw in the condition for my event the following options checked:
- Start the task only if the computer is on AC power
- Stop if the computer switches to battery power
After I create the task via command line, I can't modify the settings. Either way, I MUST only use the command line to create/modify the tasks. Is there any way to modify this variable? Or am I stuck on only having the task run on AC power?
Any help would be appreciated. Thanks!