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