0
I am trying to run a task on log on only if the computer is idle. I can also achieve what I want if I can run the task with one idle trigger and make sure it only runs once per system start up to stop it repeatedly starting the script every time the system is idle.
OS: windows 10 1903 task scheduler 1.0
run a task on log on only if the computer is idle... Huh? How would that condition ever be met? – I say Reinstate Monica – 2019-08-01T14:39:32.333
run on log on trigger is met then check for idle trigger if both = true run task – medic17 – 2019-08-01T14:41:27.770
I don't think the on idle trigger would ever be true during logon. – I say Reinstate Monica – 2019-08-01T17:18:30.773
That's the point. I want the script to run only once per log on and only if idle. – medic17 – 2019-08-01T19:21:49.627
So you never want it to run? Or only after logon, when the computer becomes idle? Because during the logon sequence, the computer will never reach an idle state to trigger an on idle scheduled task. You can configure the logon trigger to have a set delay of X minutes, but not a variable time based on interactions with the system. – R-D – 2019-08-01T19:48:06.413
only after logon, when the computer becomes idle and only once so it does not restart the program every time the computer is idle. – medic17 – 2019-08-01T19:59:32.830
What you actually want is a script that runs as soon as the computer becomes idle, but only once per logon session. Your question is suffering from the XY problem in that you're trying to accomplish this with two triggers and running into trouble accomplishing that. I recommend you edit your question to state your goal as I have defined it and let the answers provide a solution that meets your requirements, whether it involves multiple triggers or not.
– I say Reinstate Monica – 2019-08-01T20:15:18.757