A simple utility to restart the Windows Subsystem for Linux (WSL) service without requiring a full system restart.
If you use WSL regularly, you've likely encountered situations where it stops working properly. Instead of restarting your entire computer (losing your work and waiting through a full reboot), this utility lets you:
- Fix WSL issues in seconds
- Avoid a full system restart
- Click here to download the latest release
- Extract the ZIP file to any location on your computer
- No installation needed - the tool is ready to use!
- When WSL isn't working properly, simply double-click the
run_restart.batfile - Enter your local administrator password when prompted (this is required to restart the service)
- Wait a few seconds while the tool restarts the WSL service
- When you see "WSL service restarted successfully", press Enter to close
- Your WSL should now work properly again!
run_restart.bat: The main file you'll run when neededrestart_vm_computer.ps1: A PowerShell script that handles the actual service restart
The utility safely restarts the Windows vmcompute service, which is the underlying service that powers WSL. It:
- Automatically requests administrator rights (required to restart services)
- Properly stops the service if running
- Starts it again with proper error handling
- Creates logs if any issues occur (in the
logsfolder)
- Windows 10 or 11 with WSL installed
- Administrator access on your computer
If WSL still doesn't work after running the utility:
- Good luck! It fixes my issue ( :
MIT License - See LICENSE file for details.