Install Windows Linux Subsystem 2 (easy)

With just one command you can run a Linux under current versions of Windows 10 & Windows 11.

Introduction to WSL

Are you using Windows 10 or 11 at the latest feature and patch level? Microsoft recommends version 19041 for Windows 10 or Windows 11. Then you can really use the Windows Linux Subsystem 2 with a command line.

If you follow the Microsoft documentation and execute the command “wsl -install” without parameters, Ubuntu will also be installed.

But let’s first see which distributions are available to us. To do this, execute the following command.

wsl -l --online
Windows Linux Subsysteme – Distributionen that can be installed
Windows Linux Subsysteme – Distributionen that can be installed

Install Ubuntu 24.04

We decide to use Ubuntu 24.04 and therefore use this command.

wsl --install -d Ubuntu-24.04

The installation should now take two to twenty minutes, depending on the hardware.

With Screen to Gif I also have a little video for you.

WSL Installer
WSL Installer

If you now receive an error message, you should check whether virtualization is switched on in the bios. For example, I received the following error message:

image 9
WslRegisterDistribution failed with error: 0x80370102

When you fixed your issues, start Ubuntu again via the Windows 11 start menu and choose an account and password. These are different from your Windows Passwords, so document them carefully.

Test Windows Linux Subsystem in Terminal

Now we have a fully functional Linux Ubuntu Client presenting us with a Bash connected to the network. This is handy for secure SSH connections, testing with Linux or just to use your favorite troubleshooting environment.

Open the terminal and you can now choose a Ubuntu 24.04 option and i.e. use the ping command the Ubuntu 24.04 style.

WSL - Linux Ubuntu Bash in Terminal
WSL – Linux Ubuntu Bash in Terminal

Conclusion

I am a huge fan of running Azure Cloud Shell, Ubuntu Bash, PowerShell and CMD in one screen. Each OS has advantages and features to use, that can be easier used or provide more information.

My orginal version was posted here and check here how to start using Winget. My dev script to setup my dev workstation includes the necessary components already.

Spread the knowledge
Avatar for Andreas Hartig
Andreas Hartig - MVP - Cloud and Datacenter Management, Microsoft Azure

Related Posts

Winget and IaC SystemEngineerDragon

WinGet and IaC – Take Winget to the next level

WinGet and IaC are maybe your next step to automate your environment. In the past, managing third-party applications on Windows meant 3rd party tools or gathering MSI installers on network…

Spread the knowledge
Read more
Dragon IT Operations logfile tailing using Klogg

Tail for log files with Windows – 2026 Edition

I view a lot of log files—probably more than I’d like to admit. Whether it’s troubleshooting a hybrid infrastructure issue or debugging a cloud deployment, I always look for the…

Spread the knowledge
Read more
dragon it system engineer grc benchmark

Windows DNS Performance Testing

DNS issues don’t always show up as clear outages. Often they show up as annoying browser behaviour like “random delays on first page load”, “sometimes it works, sometimes it spins”,…

Spread the knowledge
Read more
IT Security Dragon reading Windows Event Logs

Windows Server Event Log and Event Log Policies

Windows Server Event Log for most teams are only used when something already smells like incident:💥 DC misbehaving,💥 file server “mysteriously slow”,💥 SOC asking for “all the logs you have…

Spread the knowledge
Read more
notepad addons 2025 hero

Notepad++ – Most important AddOns 2025

Notepad++ is my favourite notebook and editor is actually perfect, but it can always be better. For this reason, there are a few “quality of life” improvements that I use…

Spread the knowledge
Read more
Technitium DNS Server on Windows

Homelab – Build a robust DNS foundation – Part 2 using Technitium DNS Server on Windows

Let’s create an improved version of the Technitium DNS server for Windows. Some time ago, I wrote a DNS guide to help you get started with your home laboratory. This…

Spread the knowledge
Read more