Skip to content

Instantly share code, notes, and snippets.

@tackme31
Created September 6, 2025 07:20
Show Gist options
  • Save tackme31/a6b0d9a4f8c7b030cbbbf97ae0ae9054 to your computer and use it in GitHub Desktop.
Save tackme31/a6b0d9a4f8c7b030cbbbf97ae0ae9054 to your computer and use it in GitHub Desktop.
Keep WSL running at Windows startup with session active.
  1. Create a shortcut
  2. 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
  3. Move the shortcut to AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment