F o r i n f o r m a t i o n o n k e y d i f f e r e n c e s w i t h W S L 2 p l e a s e v i s i t h t t p s : / / a k a . m s / w s l 2 code example
Example 1: update to wsl2
#enable wsl
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
#make sure windows version is >=2004
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
#restart
wsl --set-default-version 2
#if kernal error https://docs.microsoft.com/en-us/windows/wsl/wsl2-kernel
Example 2: windows features windows subsystem for linux not
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux