how to enable windows linux subsystem on windows 10 pro code example
Example 1: wsl2 ubuntu
wsl.exe --set-version Ubuntu 2
Example 2: The Windows Subsystem for Linux optional component is not enabled.
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart