- Create a shortcut
- Open the property of the shortcut
- 'Target':
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -WindowStyle Hidden -Command "Start-Process -FilePath 'wsl.exe' -ArgumentList '--distribution ubuntu' -WindowStyle Hidden; exit" - 'Run': Minimize
- 'Target':
- Move the shortcut to
AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Created
September 6, 2025 07:20
-
-
Save tackme31/a6b0d9a4f8c7b030cbbbf97ae0ae9054 to your computer and use it in GitHub Desktop.
Keep WSL running at Windows startup with session active.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment