ChrisTitusTech / winutil

Chris Titus Tech's Windows Utility - Install Programs, Tweaks, Fixes, and Updates
MIT License
23.63k stars 1.44k forks source link

WSL2 service can't start after applying "Set Services to Manual" tweak #2568

Open FrankEBailey opened 2 months ago

FrankEBailey commented 2 months ago

After applying the "Set Services to Manual" tweak, none of my software that relies on WSL2 like Docker Desktop is running, and I'm unable to start the WSL service at all. I've removed the features using DISM, rebooted, uninstalled everything, reinstalled again, all the reboots inbetween, but the service still refuses to start.

image

I have uninstalled Ubuntu and the other distros I had installed, reinstalled them from the Windows store, and still the service refuses to start.

I ran the "Undo selected tweaks" option in the hope of reversing the effects of the "Set Services to Manual" tweak, however the issue persists. I am still prevented from setting the startup of the LxssManager service to Automatic (get an "access denied") error.

If anyone can offer any assistance beyond "reinstall Windows" that would be big help.

github-actions[bot] commented 2 months ago

This issue was marked as stale because it has been inactive for 7 days

4yman-0 commented 1 month ago

Try running services.msc and sort services by type (Automatic, Manual, Disabled)

Edit: Press (Windows+S) to open the Windows Search, then type services.msc and click on "Run as Administator" UAC. A long list of services should show up. Click the text above service type (manual,automatic,disabled) to sort services. Finally, set manual services related to WSL from 'Manual' to 'Automatic'.

Edit: Run services.msc as admin.

WOW

4yman-0 commented 1 month ago

I didn't find LxssManager in the code.

Documentation: winutil/docs/dev/tweaks/Essential-Tweaks/Services.md