DEV Community

0 seconds of 0 secondsVolume 90%
Press shift question mark to access a list of keyboard shortcuts
00:00
00:00
00:00
 
Vigneshwaran Vijayakumar for Winsides

Posted on

3 1 1 1

Video: Enable WSL 2 using CMD and PowerShell

Enable Via Command Prompt:

  • Open Command Prompt as Administrator.
  • Click Yes on the User Account Control.
  • In the CMD, type the following command and click enter.
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Enter fullscreen mode Exit fullscreen mode
  • WSL 2 requires Virtual Machine Platform; hence, we will enable Windows Virtual Machine Platform using the following command in the CMD.
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Enter fullscreen mode Exit fullscreen mode
  • Restart your System. That is it. WSL 2 is a go!

Enable via PowerShell

  • Open Windows PowerShell as Administrator.
  • Click Yes on the User Account Control.
  • In the PowerShell, type the following command and click enter.
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux -All -NoRestart
Enter fullscreen mode Exit fullscreen mode
  • Also, enable Virtual Machine Platform using the following command.
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -All -NoRestart
Enter fullscreen mode Exit fullscreen mode

That is it. Restart your PC. WSL 2 is good to go!

Visit our detailed guide on winsides.com. You can also refer to our YouTube Tutorial

Image of Stellar post

How a Hackathon Win Led to My Startup Getting Funded

In this episode, you'll see:

  • The hackathon wins that sparked the journey.
  • The moment José and Joseph decided to go all-in.
  • Building a working prototype on Stellar.
  • Using the PassKeys feature of Soroban.
  • Getting funded via the Stellar Community Fund.

Watch the video

Top comments (0)

Image of PulumiUP 2025

Let's talk about the current state of cloud and IaC, platform engineering, and security.

Dive into the stories and experiences of innovators and experts, from Startup Founders to Industry Leaders at PulumiUP 2025.

Register Now

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay