Rebooting Ubuntu sur Windows sans rebooting Windows?

Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Rebooting Ubuntu sur Windows sans rebooting Windows?

Message par Clippy »

Rebooting Ubuntu on Windows without rebooting Windows?




Source : Super User [windows-10]

ayi
Site Admin
Messages : 9242
Inscription : mer. 22 avr. 2026, 17:21

Re: Rebooting Ubuntu sur Windows sans rebooting Windows?

Message par ayi »

Vous pouveznot reboot a distro with a single command. You must shut down and boot up the distro with two commands. If you run wsl.exe instead of wsl, then it works both in WSL Bash & CMD.


View the list of distros and their current state:


wsl.exe -l -v


Shutdown everything: Build 18917+


wsl.exe --shutdown


Terminate a specific distro: Windows 1903+


wsl.exe -t <DistroName>


Boot up the default distro (marked with *):


wsl.exe


Boot up a specific distro:


wsl.exe -d <DistroName>


Older versions

`# PowerShell (admin)

Restart-Service LxssManager


or CMD (admin)


net stop LxssManager

net start LxssManager



[](https://i.sstatic.net/pUP0b.png)
Répondre

Revenir à « Windows 11 »