Restore the WSL optional component when error 0x8007019e appears

What to do first

Restore the WSL optional component when error 0x8007019e appears. The Windows Subsystem for Linux feature may be disabled, or Windows may still need the restart requested after enabling it. Record the current state before changing it, use only the supported Windows path described below, and verify the same operation again after any required restart.

This is a general troubleshooting guide, not an announcement of a current outage.

Affected products and symptoms

Product
Windows Subsystem for Linux
Versions and conditions
Windows 11 (confirm the edition and hardware requirements for the feature)
Error codes and identifiers
0x8007019e

Symptoms

  • Restore the WSL optional component when error 0x8007019e appears.
  • The same condition can persist after a retry or restart.

Causes and conditions

The Windows Subsystem for Linux feature may be disabled, or Windows may still need the restart requested after enabling it.

Before you start

  • Save open documents and allow time for a Windows restart if required.
  • Run administrative actions only on a personally managed PC or with administrator approval.
  • Save the diagnostic command output so the before and after states can be compared.

Precautions

  • Do not bulk-delete registry entries, system folders, credentials, or storage metadata.
  • Do not run unofficial scripts or unknown drivers with administrator rights.
Windows Subsystem for Linux troubleshooting sequence: Confirm the optional-component error; Check the state with Get-WindowsOptionalFeature; Repair through the supported path; Confirm Enabled after restarting; Verify under the same conditions
Procedure overview created by FaultNote. Read the precautions and full instructions before changing settings. Read the full steps

Step-by-step instructions

  1. 01

    Confirm the optional-component error

    #

    Record the Linux distribution name and the full 0x8007019e message. Resetting the distribution in Windows app settings can remove Linux data, so check the Windows optional component first.

  2. 02

    Check the state with Get-WindowsOptionalFeature

    #

    Check whether State is Enabled; if it is Disabled, enable the component from an elevated session.

    Command or path
    Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  3. 03

    Repair through the supported path

    #

    Enable the Windows Subsystem for Linux feature, save pending work, and restart Windows.

    Command or path
    dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
  4. 04

    Confirm Enabled after restarting

    #

    Use Start > Power > Restart, then repeat the step 2 command in an elevated PowerShell window. Confirm that State is Enabled before opening the same distribution.

  5. 05

    Verify under the same conditions

    #

    Run wsl --list --verbose and repeat the original operation once under the same conditions. If it succeeds, verify again after a restart and record the setting that changed.

    Check that no new critical event with the same timestamp and component appears in Event Viewer.

    Command or path
    wsl --list --verbose

Check the result

  • The feature starts, connects, or completes without the original error.
  • The verification command reports the expected enabled, healthy, or connected state.
  • The result remains correct after a Windows restart and no new matching critical event appears.

If the problem continues

  • If the same code persists, provide the full message, Windows build, command output, and occurrence time to the PC administrator or Microsoft Support.
  • If hardware requirements, organization policy, or server settings are responsible, ask the owner to make the change instead of bypassing it on the client.

Scope of this guide

Troubleshooting guide — Restore the feature so it starts, connects, or completes normally and passes the same verification after a Windows restart.

Frequently asked questions

Why is the feature not active immediately after enabling it?

Optional feature changes can remain pending until restart. Restart Windows, then check State and `wsl --list --verbose`.

Must I delete the Linux distribution?

Usually no. Unregistering can delete Linux data, so enable the feature and restart first.

Official sources and dates

Source publication or resolution date: Not specified. Sources checked: 2026-09-05. The check date is not the date the problem first occurred. Interface labels can vary between versions and display languages.

Related troubleshooting guides

← Search English guides