enable Windows Subsystem for Linux optional component code example
Example: The Windows Subsystem for Linux optional component is not enabled.
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart