User Tools

Site Tools


windows:windows-subsystem-for-linux:keep-wsl-alive

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
windows:windows-subsystem-for-linux:keep-wsl-alive [2026/03/20 15:16] – created odeftawindows:windows-subsystem-for-linux:keep-wsl-alive [2026/03/20 15:18] (current) odefta
Line 1: Line 1:
 ====== How to keep wsl alive ====== ====== How to keep wsl alive ======
  
-After closing the terminal in which wsl was opened, it goes away.+After closing the terminal in which wsl was opened, it goes away. \\
 To keep it open, follow these steps: To keep it open, follow these steps:
- 
-===== Run wsl at windows startp ===== 
  
 Run taskschd.msc and define a new task: Run taskschd.msc and define a new task:
Line 10: Line 8:
 {{.:pasted:20260320-151020.png}} {{.:pasted:20260320-151020.png}}
  
-General -> Name -> Start WSL +General -> Name -> Start WSL \\ 
-General -> Security options -> Run only when user is logged on +General -> Security options -> Run only when user is logged on \\ 
-General -> Security options -> Run with highest privileges +General -> Security options -> Run with highest privileges \\ 
-General -> Hidden +General -> Hidden \\ 
-General -> Configure for: Windows 10 +General -> Configure for: Windows 10 \\ 
- + \\ 
-Triggers -> At log on +Triggers -> At log on \\ 
- + \\ 
-Action -> Start a program +Action -> Start a program \\ 
-Action -> Settings -> Program/script: wscript.exe +Action -> Settings -> Program/script: wscript.exe \\ 
-Action -> Settings -> Add arguments: "C:\wsl_keepalive.vbs" (you can change the path)+Action -> Settings -> Add arguments: "C:\wsl_keepalive.vbs" (you can change the path) \\
  
 <code vbs wsl_keepalive.vbs> <code vbs wsl_keepalive.vbs>
windows/windows-subsystem-for-linux/keep-wsl-alive.1774019794.txt.gz · Last modified: by odefta