LKBEN11738: How to check the version of wsl on windows from the powershell?


Symptom

You need to know if you have the windows subsystem for linux in version 1 or 2.

Cause

Your developers need to know.

Solution

To check the windows subsystem for linux you open a powershell and enter the following command:

PS H:\> wsl --status
Standardversion: 2

Automatische Updates sind aktiviert.

Die WSL 2-Kerneldatei wird nicht gefunden. Wenn Sie den Kernel aktualisieren oder wiederherstellen möchten, führen Sie bitte „wsl --update“ aus.

On the first line you can read the version, in this case we have version 2.

Hope this helps.

Disclaimer:

The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!

About the Author

Author: Wim Peeters - Keskon GmbH & Co. KG

Wim Peeters is electronics engineer with an additional master in IT and over 30 years of experience, including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform.

Latest update: 25-07-2024