Windows 10: Creating a task that triggers after a certain amount of idle time.

Discus and support Creating a task that triggers after a certain amount of idle time. in Windows 10 Customization to solve the problem; I need Task Scheduler to run a script if my computer has been idle for 20 minutes. However, for some reason, when my computer idles for like 3 to 5... Discussion in 'Windows 10 Customization' started by nickylego14, Feb 13, 2022.

  1. Creating a task that triggers after a certain amount of idle time.


    I need Task Scheduler to run a script if my computer has been idle for 20 minutes. However, for some reason, when my computer idles for like 3 to 5 minutes, the task executes. Here are my settings:Am I missing something? I read this https://superuser.com/questions/777488/task-scheduler-what-is-wait-for-idle-for, but I am still a little confused.

    :)
     
    nickylego14, Feb 13, 2022
    #1
  2. Fcis_M Win User

    Task scheduler On Idle task not triggered Windows 7

    Windows 10: I've just tested on windows 10 and set the task idle time to be 5 mins, but it
    still triggered after 4 mins only, I've manually timed it 3 times and always triggers after 4 mins not 5 mins, any idea why?

    Windows 7: Isn't the task triggered because Windows 7 does not admire the 4 minute idle timer as
    according to Microsoft Windows 7 checks if the system is idle every 15 minutes? if so then shouldn't it work if the task idle time is set to 20 mins for example?

    UPDATE : I just tested it and manually timed it twice on my Windows 7 machine and it always triggers after 15 mins of Idle time even if I am setting the Idle task to 20 mins. Also my
    application doesn't start although the task is triggered but instead of my application running a screensaver starts running although I am setting screensaver to off on my machine. Any explanations or advice please?

    WMI suggestion: Could you advise with the steps step by step to follow to do you WMI suggestion
    please?
     
    Fcis_M, Feb 13, 2022
    #2
  3. Fcis_M Win User
    Task scheduler On Idle task not triggered Windows 7

    • PC2 is windows 10 machine
    • PC1 is windows 7 machine
    Now this is what I found regarding my task:

    • On win10 machine: But on my windows 10 machine, I've checked and manually timed the trigger to happens and I found that it always triggers after 4 mins when no keyboard or mouse actions, not 1 min. I've
      manually timed it more than 5 times and it always runs after 4 mins not 1 min. Any explanation? and how I can run it after 1 min of idle time not 4 mins?
    • On win7 machine: My same task posted in my question don't run at all on my windows 7 machine and doesn't trigger at all on windows 7 .
    I've noticed on the Microsoft docs https://docs.microsoft.com/en-us/windows/win32/taskschd/task-idle-conditions that
    it says something about 4 minutes but I didn't understand and I don't know if it's related or not? and why it doesn't work at all on my windows 7 machine.

    I've now tried your script this is what I found regarding your task:

    • On win10 machine: Your task will also run after 4 mins on my win10 machine and log the time in the log file, but if I try to run my winform application instead of the cmd then after 4 mins it runs in the background
      as a process only but no form opened and nothing shown or visible. So I've been checking to know the reason and found that what is causing this problem is using the SYSTEM user instead of my current user. If I used my current user it will run and the form
      will open and be visible
    • On win7 machine: Your task doesn't run at all on my win7 machine and nothing logged in the file.

      Any advice please as I'm really stuck? Thank you for your help.
     
    Fcis_M, Feb 13, 2022
    #3
  4. Creating a task that triggers after a certain amount of idle time.

    Task Scheduler runs at time, not on idle.

    I've set up a task to run an Exe file at 23 o'clock at night. I've also set up a trigger on this task to run it when the computer is idle.

    The task starts at 23 o'clock just fine. (With the start on schedule trigger.) Also, when I start the computer manually, then move the mouse a little to simulate a user when started up and then leave it, it starts when the computer turns idle. All fine here....

    The problem is, the task won't run when I turn on the computer remotely with WOL. It boots up, logs in automatically. (No password set) Then, it just sits there and the task isn't started.

    Any ideas on what can go wrong? Thanks for your help!

    Additional info:

    - Trigger is: On Idle.

    - The task is run as SYSTEM and Hidden, configured for windows 10.

    - Checked for processes preventing computer ot go idle with Powercfg /requests.

    - Run with highest privileges is off.

    - Start only if idle for: 1 minute.

    - Wait for idle for: Do not wait:

    - Stop if the computer ceases to be idle: On

    - Restart if the idle state resumes: On

    - Start the task only if the power is on: Off
     
    Jadministrator, Feb 13, 2022
    #4
Thema:

Creating a task that triggers after a certain amount of idle time.

Loading...
  1. Creating a task that triggers after a certain amount of idle time. - Similar Threads - Creating task triggers

  2. How to turn on lock screen after a certain amount of idle time.

    in Windows 10 Gaming
    How to turn on lock screen after a certain amount of idle time.: Hello, how do I set the lock screen to activate after 1 minute? I don`t want to use a screen saver, and I don´t want the screen to turn off. I only want the lock screen to appear after 1 minute. Thank you. Windows 11 Home, Version 23H2, Build 22631.3155...
  3. How to turn on lock screen after a certain amount of idle time.

    in Windows 10 Software and Apps
    How to turn on lock screen after a certain amount of idle time.: Hello, how do I set the lock screen to activate after 1 minute? I don`t want to use a screen saver, and I don´t want the screen to turn off. I only want the lock screen to appear after 1 minute. Thank you. Windows 11 Home, Version 23H2, Build 22631.3155...
  4. Creating a task that triggers after a certain amount of idle time.

    in Windows 10 Gaming
    Creating a task that triggers after a certain amount of idle time.: I need Task Scheduler to run a script if my computer has been idle for 20 minutes. However, for some reason, when my computer idles for like 3 to 5 minutes, the task executes. Here are my settings:Am I missing something? I read this...
  5. Creating a task that triggers after a certain amount of idle time.

    in Windows 10 Software and Apps
    Creating a task that triggers after a certain amount of idle time.: I need Task Scheduler to run a script if my computer has been idle for 20 minutes. However, for some reason, when my computer idles for like 3 to 5 minutes, the task executes. Here are my settings:Am I missing something? I read this...
  6. Task Scheduler Not Working, Task With One Time Trigger Not Triggering At Specified Time

    in Windows 10 BSOD Crashes and Debugging
    Task Scheduler Not Working, Task With One Time Trigger Not Triggering At Specified Time: hey everyone. any reason why a task i create does not run or trigger at the specified time? im running windows 10 20h2 with sleep settings set to never.i have made a test task that runs a batch file one liner: shutdown -h have tried just shutdown as well on a one time...
  7. After a certain amount of time, applications stop opening.

    in Windows 10 BSOD Crashes and Debugging
    After a certain amount of time, applications stop opening.: For the past 2 days I've been having this issue where after a certain amount of time after startup, I am unable to open any application. I've so far had no issue with system applications and this issue is persistent on all drives. I've done a scan on boot to check for any...
  8. Applications keep crashing after certain amount of time

    in Windows 10 Ask Insider
    Applications keep crashing after certain amount of time: [ATTACH] This has been going on for about a month or so. After running my computer for an hour or so, most the applications will either shut down, or freeze entirely. Even if I'm not using my pc, and I leave chrome running in the background then it will still crash Chrome...
  9. Possible 1909 issue: Computer Freezing Up After Being Idle For A Certain Amount Of Time

    in Windows 10 BSOD Crashes and Debugging
    Possible 1909 issue: Computer Freezing Up After Being Idle For A Certain Amount Of Time: READ ALL THE WAY! Disclaimer: I'm not technically sure if this is due to 1909 or a program that installed. When i first upgraded to to 1909 last month, it was working perfectly fine and had no problem, however in recent days I've been dealing with a very annoying problem...
  10. Possible 1909 issue: Computer Freezing Up After Being Idle For A Certain Amount Of Time

    in Windows 10 BSOD Crashes and Debugging
    Possible 1909 issue: Computer Freezing Up After Being Idle For A Certain Amount Of Time: Disclaimer: I'm not technically sure if this is due to 1909 or a program that installed. When i first upgraded to to 1909 last month, it was working perfectly fine and had no problem, however in recent days i've been deeling with a very annoying problem that that the...