Skip to content

Instantly share code, notes, and snippets.

@chaau
Created March 20, 2025 03:17
Show Gist options
  • Save chaau/fbcf490142d1f57c1c1a1dbbf9bd912b to your computer and use it in GitHub Desktop.
Save chaau/fbcf490142d1f57c1c1a1dbbf9bd912b to your computer and use it in GitHub Desktop.
Fix unresponsive WSL
taskkill /F /IM wslhost.exe
taskkill /F /IM wsl.exe
taskkill /F /IM wslservice.exe
net stop LxssManager
net start LxssManager
@chaau
Copy link
Author

chaau commented Mar 20, 2025

This windows batch file fixes the unresponsive WSL.
It restarts it without the need to restarting the whole system
A side feature of this fix: Docker Desktop also restarts

@Eboubaker
Copy link

Eboubaker commented Mar 24, 2025

I will download this put shortcut of it it in my desktop and, in the shortcut file properties I checked run as administrator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment