Windows 10
I created onidle task using this command:
schtasks /create /tn "My App" /tr c:\idle.cmd /sc onidle /i 30
The task successfully been created.
For some reason the option "start the task only if the computer is idle for" is unchecked, but the value (which is grayed out) says 30 minutes [/i...