WSL 2 distros are now supported on Windows Server

Craig Loewen

WSL 2 distros are now supported on Windows Server

You can now use Windows Subsystem for Linux (WSL) 2 type distros on Windows Server 2022! We’re excited to make this change so that now you can have the same modern WSL experience whether you use a Windows with Server or Desktop SKU.

WSL on Windows Server

How to start using it

We first talked about this change on Github when this update was made available to folks who wanted to use it early, and now this is part of our latest update to Windows Server. To get it, all you need to do is click “Check for Updates” on your Windows Server machine to update to the latest version and you’ll get support for WSL 2 distros. To make sure you have the right update, please check that you have KB 5014678 installed.

Installing WSL

If you want to get started using WSL for the first time and you’re using a Windows Server SKU, we’ve updated our docs to have the latest guidance which you can find here! All you need to do is run wsl --install from a PowerShell window with administrator privileges. If you want to learn more about WSL check out the rest of our docs here.

Giving us your feedback

Please file any technical issues at the WSL repository. You can also follow up with me on Twitter @craigaloewen and all WSL team members that are on Twitter using this list. Stay tuned for more exciting WSL announcements in the future! Thank you, and happy coding.

2 comments

Discussion is closed. Login to edit/delete existing comments.

  • Roger Gong 0

    How to change the WSLENV for run command from command prompt? For example, currently when I ran this
    C:\Users\gwz>wsl echo $PATH
    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files (x86)/dotnet/:/mnt/c/Strawberry/c/bin:/mnt/c/Strawberry/perl/site/bin:/mnt/c/Strawberry/perl/bin:/mnt/c/Program Files (x86)/gsudo/:/mnt/c/Program Files/PowerShell/7/:/mnt/c/Program Files (x86)/GnuPG/bin:/mnt/c/Users/gwz/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/gwz/AppData/Local/GnuPG/bin

    C:\Users\gwz>
    What I want is how to change PATH values from Windows cmd?

  • Roger Gong 0

    Also, if the WSL design can allow Linux root account to search and read files from all Windows dirs, so that we can use Linux software to check if some critical files got changed. And also, if from Windows cmd or powershell can directly run Linux commands without need to run it using the wsl, it will be much better and keep the Linux can directly run windows command. Also try to make Windows command able to be moved to any place to function properly, cmd and dlls can be separated so cmd can just need to remember where to look for the dlls or using env variable to tell where to look for the dlls, so the cmd can be moved to any place to run.

Feedback usabilla icon