Would you like to learn how to install the Windows Subsystem for Linux using Powershell? In this tutorial, we are going to show you how to install a Linux subsystem on a computer running Windows.

• Windows 10

Equipment list

The following section presents the list of equipment used to create this tutorial.

As an Amazon Associate, I earn from qualifying purchases.

Related tutorial - PowerShell

On this page, we offer quick access to a list of tutorials related to PowerShell.

Tutorial Powershell - Installing the Windows Subsystem for Linux

As an Administrator, start an elevated Powershell command-line.

Windows 10 - powershell elevated

Install Hyper-V.

Copy to Clipboard

Restart the computer.

Copy to Clipboard

Install the feature named Microsoft-Windows-Subsystem-Linux.

Copy to Clipboard

Restart the computer.

Copy to Clipboard

Install the feature named VirtualMachinePlatform.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Download and install the WSL2 kernel package.

Windows Subsystem for Linux

Configure the default WSL version.

Copy to Clipboard

Download and install Ubuntu Linux for WSL from the Microsoft Store.

WIndows - Ubuntu WSL

In our example, we installed the Ubuntu Linux for WSL.

Start the Ubuntu application.

Windows - WSL Ubuntu

Create a user account on the Linux terminal.

Copy to Clipboard

From a command line, use the UBUNTU command to access the Linux shell.

Copy to Clipboard

Congratulations! You have finished the installation of the Windows Subsystem for Linux using Powershell.

Tutorial WSL - Management

As an Administrator, start an elevated Powershell command-line.

Windows 10 - powershell elevated

List all WSL distros installed.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

List the status of all WSL distros.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Stop all WSL distros.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Start the WSL distro named Ubuntu.

Copy to Clipboard

Congratulations! You are able to manage a WSL distribution.