🚀 How to Enable WSL 2 on Windows 11 using Command Prompt & PowerShell | Windows Subsystem for Linux

Опубликовано: 13 Февраль 2026
на канале: WinsidesCom
566
8

In this video, we’ll guide you step-by-step through the process of enabling WSL 2 (Windows Subsystem for Linux version 2) on your Windows 11 machine. Whether you're a developer 🖥️ or a system administrator ⚙️, learning how to enable WSL 2 will help you run Linux distributions natively in Windows! 🐧

Here's what we'll cover in this tutorial:
Enabling WSL 2 using CMD 📝
Enabling WSL 2 using PowerShell 💻
Setting WSL 2 as the default version 🔄
Why Virtual Machine Platform is required 🏗️
Restarting your machine and final setup 🔁

🔑 Key Commands Mentioned in the Video:
CMD Commands:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

PowerShell Commands:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux -All -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -All -NoRestart
wsl --set-default-version 2

Find our detailed article on: https://winsides.com/how-to-enable-ws...

👍 Don't forget to like, subscribe to Winsides.com, and hit the bell icon 🔔 for more tech tutorials!

Let us know in the comments if you have any questions or need further assistance. We're here to help! 👇

#Windows11 #WSL2 #LinuxOnWindows #PowerShell #CMD #TechTutorial #Developers #Linux #Windows #TechTips #Virtualization #SysAdmin #DeveloperTools #WindowsSubsystemForLinux #LinuxDevelopment #LinuxInWindows #TechExplained #Programming #WindowsTips #TechHowTo #WindowsTech #LinuxCommandLine #PowerShellCommands #WindowsFeatures #DeveloperLife #LinuxTerminal #TechCommunity #WebDev #TechSupport #ITPro #winsides #winsidescom