Using Linux cron inside WSL to automate Windows tasks offers a simpler, plaintext alternative to Windows Task Scheduler. Since WSL doesn't start automatically, a one-time Task Scheduler entry is needed to launch WSL at boot. Once running, cron jobs can execute Bash scripts against the Windows filesystem, call Windows executables like winget.exe for silent app updates, and handle complex scheduling with chained dependencies more gracefully than Task Scheduler's GUI. PowerShell remains the better choice for Windows-native automation, but cron in WSL is a natural fit for developers already fluent in Bash.

3m read timeFrom xda-developers.com
Post cover image
Table of contents
There's a small initial setupCron gives Windows a new way to schedule tasksWSL isn't always the right call
186 Impressions