Skip to content

Windows Features

Windows Features

  1. Enable Windows Subsystem for Linux and Virtual Machine Platform

    You can enable WSL using either PowerShell or the Windows Features dialog:

    • Using PowerShell:

      Open PowerShell as an administrator (right-click and select "Run as administrator").

      Run the following command to enable VMP:

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

      Then, enable WSL with:

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

      Restart your computer to apply these changes:

      PowerShell
      Restart-Computer
      

  2. Using Windows Features:

    Press + R and type:

    Run
    optionalfeatures
    

    Check the boxes for Windows Subsystem for Linux and Virtual Machine Platform, then click OK.

    Windows Features

    Restart your computer.