Windows Server Installation Guide
Applies to Windows Server 2019 and later
At //Build2017, Microsoft announced that Windows Subsystem for Linux will be available on Windows Server. These instructions walk through running the Windows Subsystem for Linux on Windows Server 1709 and later.
Enable the Windows Subsystem for Linux (WSL)
Before you can run Linux distros on Windows, you must enable the "Windows Subsystem for Linux" optional feature and reboot.
Open PowerShell as Administrator and run:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Restart your computer when prompted. This reboot is required in order to ensure that WSL can initiate a trusted execution environment.
Download a Linux distro
Follow these instructions to download your favorite Linux distribution.
Extract and install a Linux distro
Now that you've downloaded a distro, extract its contents and manually install the distro:
<distro>.appxpackage's contents, e.g. using PowerShell:
Rename-Item ~/Ubuntu.appx ~/Ubuntu.zip Expand-Archive ~/Ubuntu.zip ~/Ubuntu
Make sure your target directory (
~/Ubuntuin this example) is on your system drive. Usually this is your
C:drive. For example:
Run the distro launcher To complete installation, run the distro launcher application in the target folder, named
<distro>.exe. For example:
Now that your Linux distro is installed, you must initialize your new distro instance before using your distro.