restart wsl ubuntu code example Example 1: restart wsl2 wsl --shutdown wsl Example 2: restart wsl Get-Service LxssManager | Restart-Service