Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Update from WSL to WSL 2 in Windows 10

Learn how to update from WSL to WSL 2 in Windows 10 with clear steps, practical tips, and key considerations for completing the task safely and efficiently.

Table of Contents

How to update from WSL to WSL 2 in Windows 10

This guide explains how to update from WSL to WSL 2 in Windows 10, with clear steps, practical tips, and important checks before you begin.

Step 2. Copy and paste the below command into PowerShell, and then press Enter to enable the WSL optional feature.

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

How to update from WSL to WSL 2 in Windows 10 screenshot

Step 3. Copy and paste the below command into PowerShell, and then press Enter to enable the Virtual Machine Platform option .

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

How to update from WSL to WSL 2 in Windows 10 screenshot 2

Step 4. Restart the computer to apply the change.

Step 5. Open PowerShell as admin.

Step 6. Copy and paste the following command into PowerShell, and then press Enter to set WSL 2 as the default version used when installing new Linux distributions.

wsl --set-default-version 2

You can see this message after running the above command:

WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel.

(WSL 2 requires kernel component update. For information please visit link here).

If you want, click on the link here and install MSI from that page on the Microsoft documentation to install the Linux kernel on your machine and use WSL 2. After you have installed kernel, please run the command again: wsl --set-default-version 2 and it should complete successfully without displaying a message.

Updating from WSL 1 to WSL 2 may take several minutes to complete, depending on the size of the targeted distribution. If you are running an old WSL 1 installation from the Windows 10 Anniversary Update or the Creators Update, you may encounter an update error.

How to update from WSL to WSL 2 in Windows 10 screenshot 3

Step 7. Now you can install and set WSL distro apps from the Microsoft Store to use WSL 2 by default.

FAQ

What should I know about Update from WSL to WSL 2 in Windows 10?

Focus on the key features, requirements, limitations, and practical use cases explained in this guide.

How do I get the best results with Update from WSL to WSL 2 in Windows 10?

Follow the recommended steps, use current software or information, confirm compatibility, and review settings before major changes.

Are there any risks or limitations?

Potential limitations depend on compatibility, data quality, cost, privacy, support, and how the product or method is used.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.