Windows 10: Run a task in Task Scheduler only when the computer is on battery power.

Discus and support Run a task in Task Scheduler only when the computer is on battery power. in Windows 10 Customization to solve the problem; I want Task Scheduler to run a task when on battery because my antivirus consumes a lot of battery, and if possible it would be nice it could do the... Discussion in 'Windows 10 Customization' started by randomnewskills, Jul 20, 2020.

  1. Run a task in Task Scheduler only when the computer is on battery power.


    I want Task Scheduler to run a task when on battery because my antivirus consumes a lot of battery, and if possible it would be nice it could do the opposite. It would reopen the antivirus with Task Scheduler when connected to AC.

    :)
     
    randomnewskills, Jul 20, 2020
    #1

  2. Window's Task Scheduler Not Running

    Hi,

    To assist you better, kindly provide us more details by answering the following questions:

    • Have you tried recreating the task? If so, are you getting the same issue?
    • Have you tried creating a new task?
    Meanwhile, we suggest that you ensure that the Task Scheduler is running. You can verify if the service is running by following these steps:

    • Press Windows key + R on your keyboard.
    • Type services.msc and hit Enter.
    • Under Services (Local), make sure that the Task Scheduler service's status is
      Started or Enabled.
    Should you need further assistance, feel free to get back to us.
     
    Monica Cam, Jul 20, 2020
    #2
  3. App Runs Properly but Win10Pro Task Scheduler Cannot Run It

    We have a requirement for extremely accurate computer clock time and use a small app that that, when launched, checks with a pool of time servers and syncs our computer clock. We want to schedule this app to run every couple of hours.

    The app runs properly when I launch it manually. I created a task in Task Scheduler to do this automatically every two hours and, when I manually run the task within Task Scheduler, it also runs properly. However, it will not run on on its own on a schedule.
    Task Scheduler fails to launch it.

    On a different computer, another app is able to launch it when that app is launched but, again, Task Scheduler fails to launch it on a schedule.

    The task is configured in Task Scheduler as follows:

    GENERAL

    • When running the task, use the following user account: it's my own account, and I am an Administrator on the computer
    • Run only when user is logged on
    • Run with highest privileges
    • Configure for Windows 10
    TRIGGERS

    • Trigger: At task creation/modification
    • Repeat every 2 hours for a duration of indefinitely
    • Enabled
    ACTIONS

    • Start a program "path...\SysTimeUpdate.exe" min ('min' being an argument)
    CONDITIONS

    • none - no conditions
    SETTINGS

    • Allow task to be run on demand
    • Run task as soon as possible after a schedules start is missed
    • Stop the task if it runs longer than 1 hour
    • If the running task does not end when requested, force it to stop
    • If the task is already running, then the following rule applies - Stop the existing instance

    Someone suggested that my Administrator account may not have full privileges, and it may be a permissions issue but, if so, why can I launch it manually and why can another app launch it when that app is launched but Task Scheduler cannot? This very very
    baffling, and any assistance would be very much appreciated. Thank you.
     
    Samurai7388, Jul 20, 2020
    #3
  4. Run a task in Task Scheduler only when the computer is on battery power.

    Display All running Tasks Dialog Box in the Tasks Scheduler do not show all the running tasks

    Hi Francesco,

    If a scheduled task does not run when you expect it to run, ensure that the task is enabled, and also check the triggers on the task to ensure that they are set correctly.
    In order for us to efficiently assist you, we just have few questions for you:

    • Were there any changes made to your computer prior to the issue?
    • Were you able to check if the task is enabled?
    • What troubleshooting steps have you already performed?

    Regards.
     
    Darian Tab, Jul 20, 2020
    #4
Thema:

Run a task in Task Scheduler only when the computer is on battery power.

Loading...
  1. Run a task in Task Scheduler only when the computer is on battery power. - Similar Threads - Run task Task

  2. Task Scheduler stops responding when deleting a task and tasks not run!

    in Windows 10 Gaming
    Task Scheduler stops responding when deleting a task and tasks not run!: There is a task I created on Task Scheduler Task Library/ Microsoft and I tried deleting it but for some reason I cannot delete it as Task Scheduler just stops responding. I know there is a way to delete the task from command prompt, but this one I do not know how as it is...
  3. Task Scheduler stops responding when deleting a task and tasks not run!

    in Windows 10 Software and Apps
    Task Scheduler stops responding when deleting a task and tasks not run!: There is a task I created on Task Scheduler Task Library/ Microsoft and I tried deleting it but for some reason I cannot delete it as Task Scheduler just stops responding. I know there is a way to delete the task from command prompt, but this one I do not know how as it is...
  4. Task Scheduler stops responding when deleting a task and tasks not run!

    in Windows 10 BSOD Crashes and Debugging
    Task Scheduler stops responding when deleting a task and tasks not run!: There is a task I created on Task Scheduler Task Library/ Microsoft and I tried deleting it but for some reason I cannot delete it as Task Scheduler just stops responding. I know there is a way to delete the task from command prompt, but this one I do not know how as it is...
  5. Run Task Scheduler

    in Windows 10 Gaming
    Run Task Scheduler: I am trying to run a Powershell script in Windows 10 21H2 version using Task bar and the PS window pops up. Later found out that this is happening because the task is run as "Run only when user is logged on".I tried to set this to "Run whether user is logged on or not" and...
  6. Run Task Scheduler

    in Windows 10 Software and Apps
    Run Task Scheduler: I am trying to run a Powershell script in Windows 10 21H2 version using Task bar and the PS window pops up. Later found out that this is happening because the task is run as "Run only when user is logged on".I tried to set this to "Run whether user is logged on or not" and...
  7. Issues with task scheduler running on battery

    in Windows 10 Ask Insider
    Issues with task scheduler running on battery: Hi all, I've been having trouble getting task scheduler to run a program (throttlestop for CPU undervolt) reliably on boot. It runs on AC but never on battery. My trigger is log on of any user. I've also tried on startup. As for config; its set up to run whether the user is...
  8. Sleep when the laptop is on battery power via Task Scheduler

    in Windows 10 Performance & Maintenance
    Sleep when the laptop is on battery power via Task Scheduler: I have a problem with my laptop's battery, so I need help to create a task in Task Scheduler tosleep when the laptop is switched/running on battery powerAND the battery is below 96%. I also want this task to run every time the system starts. Using the advanced power setting...
  9. Task Scheduler Not Running

    in Windows 10 BSOD Crashes and Debugging
    Task Scheduler Not Running: I've already tried and a lot of solutions for this but sadly I still don't have a solution. I've also tried these steps in this link (https://computerstepbystep.com/task_scheduler_service.html), still no luck What happened is I'm trying to update my GeForce Experience but I...
  10. Task Scheduler run task when logged in Remotely

    in Windows 10 Support
    Task Scheduler run task when logged in Remotely: Hey everyone I tried using this guide (How To Easily Send Emails From The Windows Task Scheduler) to create a task that will send me an email whenever someone connects with RDP.The task works and sends the email if i run it, but i am unsure how to set it so that it activates...