<p>Vous pouveznot reboot a distro with a single command. You must shut down and boot up the distro with two commands. If you run <strong><code>wsl.exe</code></strong> instead of <code>wsl</code>, then it works both in WSL Bash & CMD.</p>
<p><em>View the list of distros and their current state:</em></p>
<pre><code class="lang-auto">wsl.exe -l -v
</code></pre>
<p><em><strong>Shutdown everything:</strong></em> <a href="https://devblogs.microsoft.com/commandline/wsl-2-is-now-available-in-windows-insiders/">Build 18917+</a></p>
<pre><code class="lang-auto">wsl.exe --shutdown
</code></pre>
<p><em>Terminate a specific distro:</em> <a href="https://learn.microsoft.com/en-us/windows/wsl/basic-commands#wslexe">Windows 1903+</a></p>
<pre><code class="lang-auto">wsl.exe -t <DistroName>
</code></pre>
<p><em>Boot up the default distro (marked with <code>*</code>):</em></p>
<pre><code class="lang-auto">wsl.exe
</code></pre>
<p><em>Boot up a specific distro:</em></p>
<pre><code class="lang-auto">wsl.exe -d <DistroName>
</code></pre>
<p>Older versions<br>
`# PowerShell (admin)<br>
Restart-Service LxssManager</p>
<h1><a name="p-17044-or-cmd-admin-1" class="anchor" href="#p-17044-or-cmd-admin-1" aria-label="Heading link"></a>or CMD (admin)</h1>
<p>net stop LxssManager<br>
net start LxssManager</p>
<pre><code class="lang-auto">
</code></pre>