wsl shutdown code example Example 1: restart wsl Get-Service LxssManager | Restart-Service Example 2: wsl shutdown reboot wsl.exe --shutdown