This setup guide outlines the steps required to set up the Windows Subsystem for Linux (WSL) feature on a Windows 10 workstation.
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestar
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Invoke-WebRequest –Uri https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
.\wsl_update_x64.msi
Restart-Computer -Force
curl.exe -L –o ubuntu-2004.appx https://aka.ms/wslubuntu2004
Rename-Item .\ubuntu-2004.appx .\ubuntu-2004.zip
Expand-Archive .\ubuntu-2004.zip
cd .\ubuntu-2004\
.\ubuntu2004.exe
sudo apt-get update && sudo apt-get upgrade -y