WSL-related Registry: A small dive

date: Jul 19, 2020

Due to the lack of documentation, some of the information is possibly not complete or inaccurate. This is a updated version since WSLConf 2020.

Information of WSL distributions store here: HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss.


Overview of the key

Store Distribution Key

View of a sample store distribution key

Here are the details of the key values:

Imported Distribution Key

View of a sample imported distribution key

As you can see, by default imported distribution do not have DefaultEnvironment‌, KernelCommandLine and PackageFamilyName. Also by default, DefaultUid will be 0 which is root.


Creative Commons License
Unless specified, all the articles are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Free Software Fundation Member

The site is proudly powered by Hexo hosted on GitHub Pages.

The site is powered by the glorious CSS from bettermotherf** with some tweaks. Censored the f-word for good.

Main | Access | CDN | RSS | Sitemap
2008 - 2020 | Patrick WU Jinming