Solved Task scheduler - on idle problems

collifu

New Member
Messages
3
Hi all,

I am trying to set up a (theoretically) easy task in Windows 8.1 using Task Scheduler. The goal is to shut down (full shut down, not sleep, etc..) the computer after 3 hours of being in idle mode. I created a new task as follows:

- Trigger: 'on idle' (I make sure that in advance settings 'Enable' is marked).
- Action: 'shutdown.exe' (with /s /f /t 0 to shut it down no matter what and without waiting)
- Condition: 'Start the task only if the computer is idle for: 3 hours' and 'Wait for idle for: Do not wait'

I hoped that this would shut down my computer after 3 hours but it is shutting it down after 5 minutes!!! Why?

Thanks!
 

My Computer

System One

  • OS
    Windows 8.1
Did you make sure to tell the task to ignore any requests from network adapters, display, etc.?
 

My Computer

System One

  • OS
    Linux Mint 17.2
    Computer type
    Laptop
    System Manufacturer/Model
    Toshiba Satellite C850D-st3nx1
    CPU
    AMD E1-1200 APU with Radeon (tm) HD Graphics 1.40 GHZ
    Memory
    12GB
    Graphics Card(s)
    AMD Radeon™ HD 7310 Graphics
    Sound Card
    Realtek HD
    Monitor(s) Displays
    LCD
    Screen Resolution
    1366 x 768
    Hard Drives
    Crucial M500 240GB SSD
    Mouse
    Logitech M525
    Internet Speed
    45/6 - ATT U-Verse
    Browser
    Google Chrome
    Antivirus
    None needed. It is Linux.
    Other Info
    Arris NVG589 Gateway; Router - Cisco RV320; Switch - Netgear GS108 8-Port Switch & Trendnet TEG-S50g 5-Port Switch; Access Points - Engenius ECB350, Trendnet TEW-638APB; NAS - Lenovo ix2-4; Printer - Brother HL-2280DW; Air Print Server - Lantronix XPrintServer

    A/V UPS - Tripp-Lite Smart 1500LCD 1500 Va/900 W.
Thank you for replying. Regarding your question: Yes! I checked that and I actually assigned the highest priority to the task.

As I mentioned, the problem is that the task shuts down the computer too early, it does not wait 3 hours.

I also checked the history of the task and the computer is being shut down by the task!
 

My Computer

System One

  • OS
    Windows 8.1
The user hydranix has provided the solution although I cannot see in the forum so… I leave here the explanation that I received in my e-mail just in case another user is interested:

"If a task is triggered by an idle trigger, then the *WaitTimeout* property of the *IIdleSettings* interface (*IdleSettings* for scripting) is ignored.

I fixed the problem of my task by triggering it on log on.

Thanks!
R.
 

My Computer

System One

  • OS
    Windows 8.1
Yes, I looked into your problem a bit. When I tested the theory on my machine it seemed to solve the problem.

I posted the reply, then read a bit more about the Scheduled Tasks and the IdleTimeout.

When I looked into the exact meaning of the different keywords, (found here MSDN: Task Idle Conditions), I was worried I may have been mistaken and that my solution was found in error, so I deleted the post.

I'm glad to see that everything worked out though.
 

My Computer

System One

  • OS
    Kernel 4.x
    Computer type
    PC/Desktop
    CPU
    i5 3570K
    Motherboard
    P8Z77-V LK
    Memory
    G.skill Ripjaw Z 2133MHz 9-11-10-28
    Graphics Card(s)
    GTX770 4GB Dual BIOS
    Sound Card
    Audigy 4 Pro
    Monitor(s) Displays
    32" SAMSUNG HDTV
    Screen Resolution
    1920x1080 progressive
    Hard Drives
    10TB total
    3 RAID arrays
    3 single disks
    PSU
    Corsair HX750
    Case
    Corsair R400
    Cooling
    Corsair H100
    Keyboard
    Logitech G510
    Mouse
    Logitech G5
    Internet Speed
    ~900mbps (~115MB/s) down, ~10mbps(~1.5MB/s) up
    Browser
    Firefox & Chromium
    Antivirus
    Common Sense
Back
Top