WSL cron job triggering a PowerShell script on Windows
WSL

WSL Cron to PowerShell: Copy Files, Restart Services

How to run PowerShell from a WSL cron job to copy files between Windows and WSL, run Windows scripts, restart WSL services such as Hugo, and restart Windows services such as IIS.

June 30, 2026 · 9 min · Mimi