<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	 xmlns:media="http://search.yahoo.com/mrss/" >

<channel>
	<title>WSL 2 &#8211; Winsides.com</title>
	<atom:link href="https://winsides.com/tag/wsl-2/feed/" rel="self" type="application/rss+xml" />
	<link>https://winsides.com</link>
	<description>Windows Insides</description>
	<lastBuildDate>Tue, 14 Apr 2026 05:58:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://winsides.com/wp-content/uploads/2024/05/cropped-android-chrome-512x512-1-150x150.png</url>
	<title>WSL 2 &#8211; Winsides.com</title>
	<link>https://winsides.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Enable Windows Subsystem for Linux (WSL 2) using Command Prompt &#038; PowerShell</title>
		<link>https://winsides.com/how-to-enable-wsl-2-windows-11-cmd-windows-powershell/</link>
					<comments>https://winsides.com/how-to-enable-wsl-2-windows-11-cmd-windows-powershell/#respond</comments>
		
		<dc:creator><![CDATA[Vigneshwaran Vijayakumar]]></dc:creator>
		<pubDate>Sun, 12 Apr 2026 14:04:00 +0000</pubDate>
				<category><![CDATA[CMD & PowerShell]]></category>
		<category><![CDATA[Command Prompt]]></category>
		<category><![CDATA[Enable WSL 2]]></category>
		<category><![CDATA[How to Enable in Windows 11]]></category>
		<category><![CDATA[windows 11]]></category>
		<category><![CDATA[Windows Features]]></category>
		<category><![CDATA[WSL 2]]></category>
		<guid isPermaLink="false">https://winsides.com/?p=3531</guid>

					<description><![CDATA[Enable WSL 2 using CMD &#38; PowerShell: If you are running Windows 11, to run a different environment like a Linux Distro, one usually has to depend on third-party applications like VirtualBox, etc. However, Windows offers Native applications, such as the Hypervisor Platform, which support virtual environments. Additionally, Windows provides Windows Subsystem for Linux, a feature that allows users [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong>Enable WSL 2 using CMD &amp; PowerShell</strong>: If you are running Windows 11, to run a different environment like a Linux Distro, one usually has to depend on third-party applications like VirtualBox, etc. However, Windows offers Native applications, such as the Hypervisor Platform, which support virtual environments. Additionally, Windows provides Windows Subsystem for Linux, a feature that allows users to download and install Linux Distributions like Ubuntu hassle-free on the Windows OS itself. This latest article will guide you through the steps on How to Enable WSL 2 (Windows Subsystem for Linux) on Windows 11 using the Command Prompt and Windows PowerShell (CLI Method). We have also covered an article that explains <a href="https://winsides.com/how-to-enable-windows-subsystem-for-linux-in-windows/" data-type="post" data-id="167">How to enable WSL 2 using Windows Features (GUI Method)</a>. Let&#8217;s get started.</p>



<div class="wp-block-rank-math-toc-block" id="rank-math-toc"><h2>Table of Contents</h2><nav><ul><li><a href="#active-directory-lightweight-services-available-on-various-windows-editions">Windows Subsystem for Linux (WSL 2) availability on various Windows Editions</a></li><li><a href="#e">Easy way to Enable WSL 2 via the Command Prompt (CMD)</a><ul><li><a href="#d">Decoding WSL 2 CMD Command</a></li></ul></li><li><a href="#quick-way-to-enable-wsl-2-windows-subsystem-for-linux-2-using-windows-power-shell">Quick Way to Enable WSL 2 (Windows Subsystem for Linux 2) using Windows PowerShell</a><ul><li><a href="#l">Let&#8217;s Decode WSL2 Enable PowerShell Command</a></li></ul></li><li><a href="#v">Video Walkthrough to Enable WSL 2 on Windows 11 using Command Prompt and Windows PowerShell</a></li><li><a href="#t">Take away</a></li><li><a href="#f">Frequently Asked Questions</a><ul><li><a href="#faq-question-1776146083348">Why do I need to enable &#8220;Microsoft Windows Subsystem for Linux&#8221;?</a></li><li><a href="#faq-question-1776146163513">How can I verify if I am using WSL 1 or WSL 2?</a></li><li><a href="#faq-question-1776146181589">How do I set WSL 2 as the default for all future installations?</a></li><li><a href="#faq-question-1776146210187">How do I convert an existing WSL 1 distribution to WSL 2?</a></li><li><a href="#faq-question-1776146229727">What should I do if I get an &#8220;Error: 0x80370102&#8221; during setup?</a></li></ul></li><li><a href="#h">Have Queries?</a></li></ul></nav></div>



<h2 class="wp-block-heading" id="active-directory-lightweight-services-available-on-various-windows-editions">Windows Subsystem for Linux (WSL 2) availability on various Windows Editions</h2>



<figure class="wp-block-table"><table class="has-fixed-layout"><tbody><tr><td>Windows Editions</td><td>Availability</td></tr><tr><td>Windows Servers</td><td>Yes</td></tr><tr><td>Windows 11 Home</td><td>Yes</td></tr><tr><td>Windows 11 Professional</td><td>Yes</td></tr><tr><td>Windows 11 Education</td><td>Yes</td></tr><tr><td>Windows 11 Enterprise</td><td>Yes</td></tr><tr><td>Windows 11 Pro Education</td><td>Yes</td></tr><tr><td><a href="https://learn.microsoft.com/en-us/education/windows/windows-11-se-overview" target="_blank" rel="noreferrer noopener nofollow">Windows 11 SE</a></td><td>No</td></tr><tr><td><a href="https://www.microsoft.com/en-us/evalcenter/evaluate-windows-11-iot-enterprise-ltsc" target="_blank" rel="noreferrer noopener nofollow">Windows 11 IoT Enterprise</a></td><td>No</td></tr></tbody></table></figure>



<h2 class="wp-block-heading" id="e">Easy way to Enable WSL 2 via the Command Prompt (CMD)</h2>



<p>This section will provide <span style="box-sizing: border-box; margin: 0px; padding: 0px;">a <strong>step-by-step</strong></span> explanation on how to enable this feature using the CMD.</p>



<ul class="wp-block-list">
<li>Go to the <strong>Start menu</strong>, <span style="box-sizing: border-box; margin: 0px; padding: 0px;">or use the shortcut <strong>Win Key + S, then</strong> search</span> for Command Prompt. Make sure to <strong>run the Command Prompt as Administrator</strong>. User Account Control will prompt for your confirmation. Click <strong>Yes</strong> to continue.</li>
</ul>



<figure class="wp-block-image aligncenter size-full is-resized"><img fetchpriority="high" decoding="async" width="752" height="400" src="https://winsides.com/wp-content/uploads/2024/11/Run-Command-Prompt-as-Administrator.webp" alt="Run Command Prompt as Administrator" class="wp-image-3297" style="width:768px" title="Run Command Prompt as Administrator" srcset="https://winsides.com/wp-content/uploads/2024/11/Run-Command-Prompt-as-Administrator.webp 752w, https://winsides.com/wp-content/uploads/2024/11/Run-Command-Prompt-as-Administrator-300x160.webp 300w" sizes="(max-width: 752px) 100vw, 752px" /><figcaption class="wp-element-caption">Run Command Prompt as Administrator</figcaption></figure>



<ul class="wp-block-list">
<li>You can now paste the following command in the CMD and then click Enter. <code><strong>dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart</strong></code></li>
</ul>



<figure class="wp-block-image aligncenter size-full is-resized"><img decoding="async" width="1203" height="480" src="https://winsides.com/wp-content/uploads/2024/12/WSL-2-Enable-Command-via-CMD.webp" alt="WSL 2 Enable Command via CMD" class="wp-image-3534" style="width:768px" title="WSL 2 Enable Command via CMD" srcset="https://winsides.com/wp-content/uploads/2024/12/WSL-2-Enable-Command-via-CMD.webp 1203w, https://winsides.com/wp-content/uploads/2024/12/WSL-2-Enable-Command-via-CMD-300x120.webp 300w, https://winsides.com/wp-content/uploads/2024/12/WSL-2-Enable-Command-via-CMD-1024x409.webp 1024w, https://winsides.com/wp-content/uploads/2024/12/WSL-2-Enable-Command-via-CMD-768x306.webp 768w" sizes="(max-width: 1203px) 100vw, 1203px" /><figcaption class="wp-element-caption">WSL 2 Enable Command via CMD</figcaption></figure>



<ul class="wp-block-list">
<li>The above command will enable Windows Subsystem for Linux 2 and also ensure that the System does not restart on its own during the process.</li>
</ul>



<figure class="wp-block-image aligncenter size-full is-resized"><img decoding="async" width="1203" height="480" src="https://winsides.com/wp-content/uploads/2024/12/The-System-is-enabling-WSL-2.webp" alt="The System is enabling WSL 2" class="wp-image-3535" style="width:768px" title="The System is enabling WSL 2" srcset="https://winsides.com/wp-content/uploads/2024/12/The-System-is-enabling-WSL-2.webp 1203w, https://winsides.com/wp-content/uploads/2024/12/The-System-is-enabling-WSL-2-300x120.webp 300w, https://winsides.com/wp-content/uploads/2024/12/The-System-is-enabling-WSL-2-1024x409.webp 1024w, https://winsides.com/wp-content/uploads/2024/12/The-System-is-enabling-WSL-2-768x306.webp 768w" sizes="(max-width: 1203px) 100vw, 1203px" /><figcaption class="wp-element-caption">The System is enabling WSL 2</figcaption></figure>



<ul class="wp-block-list">
<li>When you get the message &#8220;<strong>The Operation Completed Successfully</strong>&#8220;, then WSL 2 is now enabled. </li>
</ul>



<figure class="wp-block-image aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="1203" height="480" src="https://winsides.com/wp-content/uploads/2024/12/Operation-Completed-Successfully.webp" alt="Operation Completed Successfully" class="wp-image-3537" style="width:768px" title="Operation Completed Successfully" srcset="https://winsides.com/wp-content/uploads/2024/12/Operation-Completed-Successfully.webp 1203w, https://winsides.com/wp-content/uploads/2024/12/Operation-Completed-Successfully-300x120.webp 300w, https://winsides.com/wp-content/uploads/2024/12/Operation-Completed-Successfully-1024x409.webp 1024w, https://winsides.com/wp-content/uploads/2024/12/Operation-Completed-Successfully-768x306.webp 768w" sizes="auto, (max-width: 1203px) 100vw, 1203px" /><figcaption class="wp-element-caption">Operation Completed Successfully</figcaption></figure>



<ul class="wp-block-list">
<li>The <strong>Virtual Machine Platform</strong> is a crucial component required for running <strong>WSL 2 </strong>on Windows 11. It provides the <strong>underlying virtualization layer</strong> needed to run Linux distributions in a more <strong>efficient</strong> and <strong>isolated environment</strong>.</li>



<li>To enable the Virtual Machine Platform via the Command Prompt, kindly execute the following command in the CMD. <code><strong>dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart</strong></code></li>
</ul>



<figure class="wp-block-image aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="1203" height="480" src="https://winsides.com/wp-content/uploads/2024/12/Command-to-Enable-Virtual-Machine-Platform-using-Command-Prompt.webp" alt="Command to Enable Virtual Machine Platform using Command Prompt" class="wp-image-3539" style="width:766px" title="Command to Enable Virtual Machine Platform using Command Prompt" srcset="https://winsides.com/wp-content/uploads/2024/12/Command-to-Enable-Virtual-Machine-Platform-using-Command-Prompt.webp 1203w, https://winsides.com/wp-content/uploads/2024/12/Command-to-Enable-Virtual-Machine-Platform-using-Command-Prompt-300x120.webp 300w, https://winsides.com/wp-content/uploads/2024/12/Command-to-Enable-Virtual-Machine-Platform-using-Command-Prompt-1024x409.webp 1024w, https://winsides.com/wp-content/uploads/2024/12/Command-to-Enable-Virtual-Machine-Platform-using-Command-Prompt-768x306.webp 768w" sizes="auto, (max-width: 1203px) 100vw, 1203px" /><figcaption class="wp-element-caption">Command to Enable Virtual Machine Platform using Command Prompt</figcaption></figure>



<ul class="wp-block-list">
<li>The system will now enable this feature on Windows 11. Kindly wait for the &#8220;<strong>The operation completed successfully</strong>&#8221; message. </li>
</ul>



<figure class="wp-block-image aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="1203" height="480" src="https://winsides.com/wp-content/uploads/2024/12/Virtal-Machine-Platform-Enabled-Successfully.webp" alt="Virtual Machine Platform Enabled Successfully" class="wp-image-3540" style="width:768px" title="Virtual Machine Platform Enabled Successfully" srcset="https://winsides.com/wp-content/uploads/2024/12/Virtal-Machine-Platform-Enabled-Successfully.webp 1203w, https://winsides.com/wp-content/uploads/2024/12/Virtal-Machine-Platform-Enabled-Successfully-300x120.webp 300w, https://winsides.com/wp-content/uploads/2024/12/Virtal-Machine-Platform-Enabled-Successfully-1024x409.webp 1024w, https://winsides.com/wp-content/uploads/2024/12/Virtal-Machine-Platform-Enabled-Successfully-768x306.webp 768w" sizes="auto, (max-width: 1203px) 100vw, 1203px" /><figcaption class="wp-element-caption">Virtual Machine Platform Enabled Successfully</figcaption></figure>



<ul class="wp-block-list">
<li>It is highly recommended to do a <strong>restart</strong> after this process. You can then install your desired Linux Distribution from the Microsoft Store as a WSL App. </li>
</ul>



<figure class="wp-block-image aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="1920" height="1020" src="https://winsides.com/wp-content/uploads/2024/12/Install-your-desired-Linux-Distribution-as-a-WSL-App-1.webp" alt="Install your desired Linux Distribution as a WSL App" class="wp-image-3545" style="width:768px" title="Install your desired Linux Distribution as a WSL App" srcset="https://winsides.com/wp-content/uploads/2024/12/Install-your-desired-Linux-Distribution-as-a-WSL-App-1.webp 1920w, https://winsides.com/wp-content/uploads/2024/12/Install-your-desired-Linux-Distribution-as-a-WSL-App-1-300x159.webp 300w, https://winsides.com/wp-content/uploads/2024/12/Install-your-desired-Linux-Distribution-as-a-WSL-App-1-1024x544.webp 1024w, https://winsides.com/wp-content/uploads/2024/12/Install-your-desired-Linux-Distribution-as-a-WSL-App-1-768x408.webp 768w, https://winsides.com/wp-content/uploads/2024/12/Install-your-desired-Linux-Distribution-as-a-WSL-App-1-1536x816.webp 1536w" sizes="auto, (max-width: 1920px) 100vw, 1920px" /><figcaption class="wp-element-caption">Install your desired Linux Distribution as a WSL App</figcaption></figure>



<h3 class="wp-block-heading" id="d">Decoding WSL 2 CMD Command</h3>



<figure class="wp-block-image aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="1920" height="1080" src="https://winsides.com/wp-content/uploads/2024/12/Decoding-WSL-2-Enable-CMD-Command.png" alt="Decoding WSL 2 Enable CMD Command" class="wp-image-3533" style="width:768px" title="Decoding WSL 2 Enable CMD Command" srcset="https://winsides.com/wp-content/uploads/2024/12/Decoding-WSL-2-Enable-CMD-Command.png 1920w, https://winsides.com/wp-content/uploads/2024/12/Decoding-WSL-2-Enable-CMD-Command-300x169.png 300w, https://winsides.com/wp-content/uploads/2024/12/Decoding-WSL-2-Enable-CMD-Command-1024x576.png 1024w, https://winsides.com/wp-content/uploads/2024/12/Decoding-WSL-2-Enable-CMD-Command-768x432.png 768w, https://winsides.com/wp-content/uploads/2024/12/Decoding-WSL-2-Enable-CMD-Command-1536x864.png 1536w, https://winsides.com/wp-content/uploads/2024/12/Decoding-WSL-2-Enable-CMD-Command-390x220.png 390w" sizes="auto, (max-width: 1920px) 100vw, 1920px" /><figcaption class="wp-element-caption">Decoding WSL 2 Enable CMD Command</figcaption></figure>



<h2 class="wp-block-heading" id="quick-way-to-enable-wsl-2-windows-subsystem-for-linux-2-using-windows-power-shell">Quick Way to Enable WSL 2 (Windows Subsystem for Linux 2) using Windows PowerShell</h2>



<p>In this section, we will check out <strong>How to Enable Windows Subsystem for Linux 2 via Windows PowerShell</strong>.</p>



<ul class="wp-block-list">
<li>Open <strong>Windows PowerShell</strong> using the <strong>Start menu</strong>, and <strong>Run Windows PowerShell as Administrator</strong>.</li>
</ul>



<figure class="wp-block-image aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="750" height="376" src="https://winsides.com/wp-content/uploads/2024/11/Run-PowerShell-as-Administrator.webp" alt="Run PowerShell as Administrator" class="wp-image-3340" style="width:768px" title="Run PowerShell as Administrator" srcset="https://winsides.com/wp-content/uploads/2024/11/Run-PowerShell-as-Administrator.webp 750w, https://winsides.com/wp-content/uploads/2024/11/Run-PowerShell-as-Administrator-300x150.webp 300w" sizes="auto, (max-width: 750px) 100vw, 750px" /><figcaption class="wp-element-caption">Run PowerShell as Administrator</figcaption></figure>



<ul class="wp-block-list">
<li>In PowerShell, enter the following command. <code><strong>Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux -All -NoRestart</strong></code></li>
</ul>



<figure class="wp-block-image aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="1238" height="515" src="https://winsides.com/wp-content/uploads/2024/12/Command-to-enable-WSL-2-using-Windows-PowerShell.webp" alt="Command to enable WSL 2 using Windows PowerShell" class="wp-image-3547" style="width:768px" title="Command to enable WSL 2 using Windows PowerShell" srcset="https://winsides.com/wp-content/uploads/2024/12/Command-to-enable-WSL-2-using-Windows-PowerShell.webp 1238w, https://winsides.com/wp-content/uploads/2024/12/Command-to-enable-WSL-2-using-Windows-PowerShell-300x125.webp 300w, https://winsides.com/wp-content/uploads/2024/12/Command-to-enable-WSL-2-using-Windows-PowerShell-1024x426.webp 1024w, https://winsides.com/wp-content/uploads/2024/12/Command-to-enable-WSL-2-using-Windows-PowerShell-768x319.webp 768w" sizes="auto, (max-width: 1238px) 100vw, 1238px" /><figcaption class="wp-element-caption">Command to enable WSL 2 using Windows PowerShell</figcaption></figure>



<ul class="wp-block-list">
<li>The system will now enable Windows Subsystem for Linux. The <strong>Online status</strong> &#8220;<strong>True</strong>&#8221; indicates that WSL 2 is now enabled. As we are using the <strong>NoRestart tag</strong>, the system will not restart automatically.</li>
</ul>



<figure class="wp-block-image aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="1238" height="515" src="https://winsides.com/wp-content/uploads/2024/12/WSL-2-Enabled-via-PowerShell.webp" alt="WSL 2 Enabled via PowerShell" class="wp-image-3548" style="width:768px" title="WSL 2 Enabled via PowerShell" srcset="https://winsides.com/wp-content/uploads/2024/12/WSL-2-Enabled-via-PowerShell.webp 1238w, https://winsides.com/wp-content/uploads/2024/12/WSL-2-Enabled-via-PowerShell-300x125.webp 300w, https://winsides.com/wp-content/uploads/2024/12/WSL-2-Enabled-via-PowerShell-1024x426.webp 1024w, https://winsides.com/wp-content/uploads/2024/12/WSL-2-Enabled-via-PowerShell-768x319.webp 768w" sizes="auto, (max-width: 1238px) 100vw, 1238px" /><figcaption class="wp-element-caption">WSL 2 Enabled via PowerShell</figcaption></figure>



<ul class="wp-block-list">
<li>Next, enter the command to enable Virtual Machine Platform. <strong><code>Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -All -NoRestart</code></strong></li>
</ul>



<figure class="wp-block-image aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="1238" height="515" src="https://winsides.com/wp-content/uploads/2024/12/PowerShell-command-to-enable-Windows-Virtual-Machine-Platform.webp" alt="PowerShell command to enable Windows Virtual Machine Platform" class="wp-image-3549" style="width:768px" title="PowerShell command to enable Windows Virtual Machine Platform" srcset="https://winsides.com/wp-content/uploads/2024/12/PowerShell-command-to-enable-Windows-Virtual-Machine-Platform.webp 1238w, https://winsides.com/wp-content/uploads/2024/12/PowerShell-command-to-enable-Windows-Virtual-Machine-Platform-300x125.webp 300w, https://winsides.com/wp-content/uploads/2024/12/PowerShell-command-to-enable-Windows-Virtual-Machine-Platform-1024x426.webp 1024w, https://winsides.com/wp-content/uploads/2024/12/PowerShell-command-to-enable-Windows-Virtual-Machine-Platform-768x319.webp 768w" sizes="auto, (max-width: 1238px) 100vw, 1238px" /><figcaption class="wp-element-caption">PowerShell command to enable Windows Virtual Machine Platform</figcaption></figure>



<ul class="wp-block-list">
<li>The system will enable Virtual Machine Platform now. </li>
</ul>



<figure class="wp-block-image aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="1238" height="515" src="https://winsides.com/wp-content/uploads/2024/12/Virtual-Machine-Platform-Enabled-via-Windows-PowerShell.webp" alt="Virtual Machine Platform Enabled via Windows PowerShell" class="wp-image-3551" style="width:768px" title="Virtual Machine Platform Enabled via Windows PowerShell" srcset="https://winsides.com/wp-content/uploads/2024/12/Virtual-Machine-Platform-Enabled-via-Windows-PowerShell.webp 1238w, https://winsides.com/wp-content/uploads/2024/12/Virtual-Machine-Platform-Enabled-via-Windows-PowerShell-300x125.webp 300w, https://winsides.com/wp-content/uploads/2024/12/Virtual-Machine-Platform-Enabled-via-Windows-PowerShell-1024x426.webp 1024w, https://winsides.com/wp-content/uploads/2024/12/Virtual-Machine-Platform-Enabled-via-Windows-PowerShell-768x319.webp 768w" sizes="auto, (max-width: 1238px) 100vw, 1238px" /><figcaption class="wp-element-caption">Virtual Machine Platform Enabled via Windows PowerShell</figcaption></figure>



<ul class="wp-block-list">
<li>Kindly <strong>Restart</strong> your System. You can now install your favorite Linux Distro using the WSL App.</li>
</ul>



<pre class="wp-block-verse"><strong>Information on the Go!</strong> If you want to use WSL 2, which offers a <strong>full Linux kernel and better performance</strong>, you can use the following command in PowerShell. <code><strong>wsl --set-default-version 2</strong></code></pre>



<h3 class="wp-block-heading" id="l">Let&#8217;s Decode WSL2 Enable PowerShell Command</h3>



<figure class="wp-block-image aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="1920" height="1080" src="https://winsides.com/wp-content/uploads/2024/12/Decoding-WSL-2-Enable-Windows-PowerShell-Command.png" alt="Decoding WSL 2 Enable Windows PowerShell Command" class="wp-image-3553" style="width:768px" title="Decoding WSL 2 Enable Windows PowerShell Command" srcset="https://winsides.com/wp-content/uploads/2024/12/Decoding-WSL-2-Enable-Windows-PowerShell-Command.png 1920w, https://winsides.com/wp-content/uploads/2024/12/Decoding-WSL-2-Enable-Windows-PowerShell-Command-300x169.png 300w, https://winsides.com/wp-content/uploads/2024/12/Decoding-WSL-2-Enable-Windows-PowerShell-Command-1024x576.png 1024w, https://winsides.com/wp-content/uploads/2024/12/Decoding-WSL-2-Enable-Windows-PowerShell-Command-768x432.png 768w, https://winsides.com/wp-content/uploads/2024/12/Decoding-WSL-2-Enable-Windows-PowerShell-Command-1536x864.png 1536w, https://winsides.com/wp-content/uploads/2024/12/Decoding-WSL-2-Enable-Windows-PowerShell-Command-390x220.png 390w" sizes="auto, (max-width: 1920px) 100vw, 1920px" /><figcaption class="wp-element-caption">Decoding WSL 2 Enable Windows PowerShell Command</figcaption></figure>



<h2 class="wp-block-heading" id="v">Video Walkthrough to Enable WSL 2 on Windows 11 using Command Prompt and Windows PowerShell</h2>



<figure class="wp-block-embed aligncenter is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy" title="&#x1f680; How to Enable WSL 2 on Windows 11 using Command Prompt &amp; PowerShell | Windows Subsystem for Linux" width="860" height="484" src="https://www.youtube.com/embed/PE9oO4qrkbs?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<h2 class="wp-block-heading" id="t">Take away</h2>



<p>With <strong>WSL 2</strong> <strong>enabled on Windows 11</strong>, you can execute <strong>Linux commands</strong>, use the package managers like <strong>APT</strong> and YUM, and even run Linux applications directly in Windows without the need for virtualization software like VirtualBox or <a href="https://www.vmware.com/" target="_blank" rel="noreferrer noopener">VMware</a>. Additionally, setting WSL 2 as the default version ensures that you get the most optimized performance from your Linux distributions in a Windows environment. </p>



<h2 class="wp-block-heading" id="f">Frequently Asked Questions</h2>


<div id="rank-math-faq" class="rank-math-block">
<div class="rank-math-list ">
<div id="faq-question-1776146083348" class="rank-math-list-item">
<h3 class="rank-math-question ">Why do I need to enable &#8220;Microsoft Windows Subsystem for Linux&#8221;?</h3>
<div class="rank-math-answer ">

<p>This is the core optional feature that allows Windows to recognize Linux binary formats.</p>

</div>
</div>
<div id="faq-question-1776146163513" class="rank-math-list-item">
<h3 class="rank-math-question ">How can I verify if I am using WSL 1 or WSL 2?</h3>
<div class="rank-math-answer ">

<p>It is common for older installations to stay on version 1. To check the version of your installed distributions, run: <code>wsl --list --verbose</code> (or <code>wsl -l -v</code>) Look at the &#8220;Version&#8221; column. If it shows &#8220;1,&#8221; you should upgrade it to take advantage of full system call compatibility and increased file I/O performance.</p>

</div>
</div>
<div id="faq-question-1776146181589" class="rank-math-list-item">
<h3 class="rank-math-question ">How do I set WSL 2 as the default for all future installations?</h3>
<div class="rank-math-answer ">

<p>If you plan on installing multiple distributions (like Kali, Debian, or Alpine), you should ensure they always default to version 2. Execute: <code>wsl --set-default-version 2</code> This ensures that any new distro downloaded from the Microsoft Store will automatically use the WSL 2 architecture.</p>

</div>
</div>
<div id="faq-question-1776146210187" class="rank-math-list-item">
<h3 class="rank-math-question ">How do I convert an existing WSL 1 distribution to WSL 2?</h3>
<div class="rank-math-answer ">

<p>If you already have a Linux environment set up and don&#8217;t want to lose your files, you can convert it in-place. Use the following syntax: <code>wsl --set-version &lt;distro name&gt; 2</code></p>

</div>
</div>
<div id="faq-question-1776146229727" class="rank-math-list-item">
<h3 class="rank-math-question ">What should I do if I get an &#8220;Error: 0x80370102&#8221; during setup?</h3>
<div class="rank-math-answer ">

<p>This error typically means that <strong>Hardware Virtualization</strong> is disabled in your computer&#8217;s BIOS/UEFI settings. Even if you enable the features in Windows, the CPU must have &#8220;Intel VT-x&#8221; or &#8220;AMD-V&#8221; turned on at the firmware level. You can check this in the <strong>Performance</strong> tab of <strong>Task Manager</strong> under &#8220;Virtualization: Enabled.&#8221;</p>

</div>
</div>
</div>
</div>


<h2 class="wp-block-heading" id="h">Have Queries?</h2>



<p>If you have any <strong>queries</strong>, kindly let us know in the <strong>comments</strong>. For more interesting articles, stay tuned to <strong><a href="https://winsides.com">Winsides.com</a></strong>. <strong>Happy Computing! Peace out!</strong></p>
]]></content:encoded>
					
					<wfw:commentRss>https://winsides.com/how-to-enable-wsl-2-windows-11-cmd-windows-powershell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://www.youtube.com/embed/PE9oO4qrkbs" medium="video">
			<media:player url="https://www.youtube.com/embed/PE9oO4qrkbs" />
			<media:title type="plain">WSL 2 - Winsides.com</media:title>
			<media:description type="html"><![CDATA[Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.]]></media:description>
			<media:thumbnail url="https://winsides.com/wp-content/uploads/2024/12/WINDOWS-SUBSYSTEM-FOR-LINUX-2-ON-WINDOWS-11-USING-CMD-POWERSHELL.jpg" />
			<media:rating scheme="urn:simple">nonadult</media:rating>
		</media:content>
	</item>
	</channel>
</rss>
