Created
December 11, 2021 19:16
-
-
Save aronreisx/2de3d04e35003e2a167c28525013ff58 to your computer and use it in GitHub Desktop.
How to rename WSL Distro on Windows
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
To rename WSL Distros on Windows follow the steps: | |
1. Stop all instances of WSL | |
On PowerShell run the command: wsl --shutdown | |
2. Open Registry Editor and go to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss | |
Each subfolder on Lxss represents a distro | |
3. Locate and rename the distro you want | |
Inside each distro folder you have the DistributionName, change it and click ok | |
4. Restart WSL service | |
Open PowerShell as Admin and run the command: Get-Service LxssManager | Restart-Service | |
All setted up. Run wsl -l to see the changes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi had to use "Get-Service WslService" instead.
Found here