Windows Subsystem for Linux Optional Component Is Not Enabled

Easily enable the Windows Subsystem for Linux

Reading time icon 3 min. read


Readers help support Windows Report. When you make a purchase using links on our site, we may earn an affiliate commission. Tooltip Icon

Read the affiliate disclosure page to find out how can you help Windows Report effortlessly and without spending any money. Read more

Key notes

  • When you try to launch something that requires Windows Subsystem for Linux, you may get an error indicating that this optional feature is not enabled.
  • Enabling this feature can be necessary and will not slow down your PC's performance.
  • To turn on this feature on Windows, you can use PowerShell and another method described in this article.
fix the windows subsystem for linux optional component is not enabled

Usually, when you try to run any software, service, or app that requires the Linux environment, you may get an error.

In most cases, if you install the Ubuntu app from the Microsoft Store and open it, this problem will appear. When it occurs, you get the following message: The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again.

It also may show an error code 0x8007019e. But don’t worry, you can easily fix this problem if you take the proper steps.

Does the Windows Subsystem for Linux slow down a PC?

To make your development work much more pleasant, you may enable WSL. It does not hurt Windows performance.

Any services in the background take a few computing resources. The WSL is not different. However, according to the users, it doesn’t slow down the PC.

We have tested it by ourselves. Our research also has found that modern computers can easily handle Windows Subsystem for Linux without negatively affecting performance.

Moreover, it can be an essential feature for some users. So, you may need to turn it on, particularly when you face the error mentioned in this article.

How do I enable Windows Subsystem for Linux on Windows?

If you want to enable WSL on your PC, you can easily do it. But, before that, we suggest you do the following things:

  • Update Windows to the latest version.
  • Ensure you are using Windows 11 or 10, as other versions don’t support this feature.

Now, you can follow the methods mentioned below to enable Windows Subsystem for Linux.

1. Install the optional feature

  1. Press Win + I on the keyboard to open Windows Settings.
  2. Go to Apps and click on Optional features.going optional features windows 11 settings
  3. Click on More Windows features to open the Windows Features window.going more windows features windows 11 settings
  4. Tick Windows Subsystem for Linux and click on OK.enabling windows subsystem for linux
  5. It will install the required components.
  6. Restart your PC after completing the process.

Alternatively, you also can search for the optionalfeatures on the Start Menu to find and open the Windows Features window. It can be necessary if you don’t find the exact options shown in the above steps.

After enabling the WSL, you can try to open the Ubuntu terminal or any other app or service that was showing the error. Hopefully, you will not see the same again.

2. Use the PowerShell command

  1. Open the Start Menu, type PowerShell, and hit Enter.
  2. Now, type the following command and press Enter to execute it: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linuxenable windows subsystem for linux using powershell command
  3. Wait for a while.
  4. Restart your PC after PowerShell installs the required features.

Now, verify if it has solved the problem or not. If PowerShell can successfully enable this optional feature, you can use the Ubuntu terminal or any other app that requires WSL without any error.

3. Enable Developer Mode

Note icon NOTE
If you are using the latest builds, enabling Developer Mode is no longer necessary. In case you are running an older build, perform the steps below to enable it.
  1. Open Windows Settings.
  2. Go to Privacy & security and click on For developers.going for developers windows 11 settings
  3. Turn the Developer Mode by tweaking the appropriate switch.turning on developer mode windows 11 settings
  4. Click on Yes on the popup window.
  5. Restart your PC.

For more detailed steps, learn how to enable Windows 11 Developer Mode. If the Developer Mode is a requirement, try to enable the latest WSL again and see if it works.

This article has explained how to fix Windows Subsystem for Linux is not enabled. If you have any opinions or suggestions, feel free to let us know in the comments box.

More about the topics: WSL