1

According to Task Scheduler- Batch "Run whether user is logged on or not" not working and other articles, "Run whether user is logged on or not" requires pure batch processing without interactive and UI.

How to run a wsl2 program on system start? I have tried use wsl -e ... and wsl --shell-type none

1 Answers1

0

This problem is the subject of bug-report Unable to start WSL via Task Scheduler #8835 from Sep 19, 2022, and running up to almost today.

There are several listed workarounds for the problem that you could try. The one that worked for more than one user was to use a non-Store distribution - the Store versions seem unable to start with "Run whether user is logged on or not".

There are other solutions, some using PsExec, that you may find in this bug-report.

harrymc
  • 498,455