Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save myself659/3d617becb07878deff90e3f9fcf44dfe to your computer and use it in GitHub Desktop.
Save myself659/3d617becb07878deff90e3f9fcf44dfe to your computer and use it in GitHub Desktop.
How to rename WSL Distro on Windows
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