To enable Windows Subsystem for Linux in Windows 10 or Windows 2016 servers you may need to do these
Step1: Open Powershell as an Administrator
Step2: Then run the following command
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Step3 : Once you run the command, Windows Subsystem for Linux will get installed as shown