Share via

I keep getting "%1 is not a valid Win32 application" when installing WSL. I tried a few online guides but nothing is working.

Reported
Anonymous
2024-11-04T10:13:27+00:00

I am trying to install WSL on my device for some schoolwork but I keep getting error code "%1 is not a valid Win32 application".

I even tried installing it through the Microsoft Store, but when activating after installing I get error code '0x8007019e'.

I even tried turning it on through the "Turn Windows features on or off" app, but even after the recommended reboot I get error code '0x800700c1'.

I have Windows 11 Pro

Windows for home | Windows 11 | Install and upgrade

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2024-11-05T18:39:35+00:00

    As for the first solution, I had downloaded it from the Microsoft Store, so it is not an issue with compatibility.

    As for the second solution, running the first command gives the following message:

    Deployment Image Servicing and Management tool
    
    Version: 10.0.22621.1
    
    Image Version: 10.0.22621.1702
    
    Enabling feature(s)
    
    [==========================100.0%==========================]
    
    Error: 193
    
    %1 is not a valid Win32 application.
    
    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
    

    As for the third solution, I don't seem to have LxssManager in neither services.msc nor in regedit

    I did some research and it seems all of these problems (including problems with updating windows I discovered later) stem from the fact I probably have a corrupt file somewhere.

    Unless you have a way to restore the corrupt files without reinstalling windows, I don't think you will be able to help me.

    thank you for the help.

    0 comments No comments
  2. Anonymous
    2024-11-05T10:35:48+00:00

    Hello Yotam,

    Welcome to the Microsoft Community.

    It sounds like you're encountering multiple issues while trying to install and activate WSL on your Windows 11 Pro device. Let's tackle these one by one.

    Error: "%1 is not a valid Win32 application"

    This error often indicates a compatibility issue or a corrupted installation file. Here are a few steps to resolve it:

    1. Check Compatibility: Ensure that you're downloading the correct version of WSL for your system (64-bit for most modern systems).
    2. Re-download the Installer: Sometimes, the download might be incomplete or corrupted. Try downloading the installer again from the official source.
    3. Run as Administrator: Right-click on the installer and select "Run as administrator" to ensure it has the necessary permissions.

    Error: '0x8007019e'

    This error typically means that the Windows Subsystem for Linux optional component is not enabled. Here’s how to enable it:

    1. Enable WSL and Virtual Machine Platform:
      • Open PowerShell as Administrator and run the following commands:
          dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
          dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
        
      • Restart your computer after running these commands.

    Error: '0x800700c1'

    This error can occur due to issues with the WSL service or a corrupted installation. Here are some steps to try:

    1. Restart the LxssManager Service:
      • Open Run (Win + R), type services.msc, and press Enter.
      • Find LxssManager, right-click it, and select Restart.
    2. Reinstall WSL:
      • Open PowerShell as Administrator and run:
          wsl --unregister <distro_name>
          wsl --install
        
      • Replace <distro_name> with the name of your installed Linux distribution (e.g., Ubuntu).

    Furthermore, we recommend you check for Windows Updates and BIOS settings, to ensure your system is up to date as some issues might be resolved with the latest updates. **** Make sure virtualization is enabled in your BIOS settings.

    Best Regards,

    William.Y | Microsoft Community Support Specialist

    0 comments No comments