Created
April 16, 2022 19:40
-
-
Save DessertArbiter/bd0ce6b63f0785bd326764c31521caf4 to your computer and use it in GitHub Desktop.
PowerShell script to list the names of installed WSL distros and their corresponding GUIDs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Lxss | Get-ItemProperty -Name DistributionName | Select-Object @{Name='Distro';Expression={$PSItem.DistributionName}},@{Name='GUID';Expression={$PSItem.PSChildName}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment