Windows 10: Using Task Scheduler to run a task on AC unplug

Discus and support Using Task Scheduler to run a task on AC unplug in Windows 10 Ask Insider to solve the problem; Hi all, I'm looking to improve the battery life on my laptop. It's usually docked and plugged in so I leave most of my programs running. However, I... Discussion in 'Windows 10 Ask Insider' started by /u/bensow, Apr 10, 2020.

  1. /u/bensow Win User

    Using Task Scheduler to run a task on AC unplug


    Hi all,

    I'm looking to improve the battery life on my laptop. It's usually docked and plugged in so I leave most of my programs running. However, I want to create a task that in the event of an AC unplug, terminates all non essential background processes (dictated by me). I tried looking around for an event which listens to the AC plugged in state but most are outdated and have broken links. Would anyone here be able to lend a hand? Thanks!

    submitted by /u/bensow
    [link] [comments]

    :)
     
    /u/bensow, Apr 10, 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, Apr 10, 2020
    #2
  3. Unable to run Task Scheduler

    Hello Varun,

    Let's determine the cause of the issue. To get started, I'd like to get the following information:

    • Is this your first time to encounter this issue? If so, did you make any changes to your computer's configuration prior to this?
    • Are you getting any error messages?
    • Can you also please confirm the current build of your Windows 10?

      (Type winver into the Cortana search box, then hit
      Enter
      .)

    Meanwhile, I suggest that you try starting the Task Scheduler through command line. To do so, please follow these steps:

    • Open Command Prompt (Admin).
    • Type this net start task scheduler and hit Enter.

    We're looking forward to your response.
     
    Antoneth Ber, Apr 10, 2020
    #3
  4. Using Task Scheduler to run a task on AC unplug

    Cannot schedule a task with Task Scheduler - error 2147942403

    Hi,

    I suggest you to check the below settings and check fi it helps.

    • In task scheduler, click on the scheduled job properties > then settings.
    • In the last listed option: "If the task is already running, the following rule applies:"
    • Select "Stop the existing instance" from the drop down list.
    • Save and Exit. Then check whether the task is running or not.

    Please get back to us with an update on this issue, we will be happy to assist you further.

    Thank you.
     
    Karthicka_R, Apr 10, 2020
    #4
Thema:

Using Task Scheduler to run a task on AC unplug

Loading...
  1. Using Task Scheduler to run a task on AC unplug - Similar Threads - Using Task Scheduler

  2. 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...
  3. 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...
  4. Run Task Scheduler

    in Windows 10 Customization
    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...
  5. Scheduled task not running

    in Windows 10 Customization
    Scheduled task not running: I use the "portable apps" platform to hold a lot of small programs I dont want installed - but even from my C: ssd its very slow to load. So I have set up a scheduled task to run it as soon as the pc becomes idle. [ATTACH] However it does not run. Even when I right-click...
  6. Unable to run Task using Task Scheduler

    in Windows 10 Customization
    Unable to run Task using Task Scheduler: Task scheduler using local non-admin account to run shutdown /s not working. Asks for password then gives error that account does not have privileges'. I change the user running the account to admin, run whether logged off or not, not storing password, same error after...
  7. Task scheduled in Task Scheduler won't run from shortcut

    in Windows 10 BSOD Crashes and Debugging
    Task scheduled in Task Scheduler won't run from shortcut: I have a task set up in Task Scheduler on Win 10 Pro 64-bit and it runs correctly when run from Task Scheduler. I cannot get the task to run from a shortcut. I do not know whether this is relevant, but in the Settings window of Task Scheduler it shows the checkbox next to...
  8. USING TASK SCHEDULER TO RUN SYNC TOY

    in Windows 10 Customization
    USING TASK SCHEDULER TO RUN SYNC TOY: After the Sync Toy process has been set up in Task Scheduler, does the Sync Toy app need to be open at the scheduled start time to allow it to run? https://answers.microsoft.com/en-us/windows/forum/all/using-task-scheduler-to-run-sync-toy/e185258a-cd9a-498b-acac-d4a1549371bc
  9. Unable to schedule tasks in Task scheduler with option run the task whether the user is...

    in Windows 10 BSOD Crashes and Debugging
    Unable to schedule tasks in Task scheduler with option run the task whether the user is...: I am able to schedule tasks with the first option that is - run when the user is logged on. But when I try with the other option - run whether the user is logged on or not, it doesn't work....
  10. 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...