I understand that I can create a scheduled task with command line using SCHTASKS.exe. I need to create a scheduled task that run even when windows goes in a sleep mode and I found how to do it with task scheduler GUI using task properties as follows: Task > Properties > Conditions > [Tick] Wake the computer to run this task Task > Properties > Settings > [Tick] Run task as soon as possible after a scheduled start is missed.
My command like:
SCHTASKS /CREATE /SC DAILY /TN "ITTTasks\autoRestart" /TR "shutdown.exe -r -t 1" /ST 00:00 /ru "System"
My question: How to do these two options using command line?