WslRegisterDistribution failed with 0x80070422
Windows 10 Enterprise version 1803
I am on a corp network which has several group polices enforced. I was blocked from accessing the full MS-Store but was able to download via the following instructions: https://docs.microsoft.com/en-us/windows/wsl/install-manual
I enabled wsl, rebooted and launched the CanonicalGroupLimitedUbuntu18.04onWindowsxxxx.Appx
it appeared to install but then got: Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x80070422 Error: 0x80070422 The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
Press any key to continue...
Any idea what could be causing this? Could it be due to some corp. group policy?
I do have local admin rights on my PC.
C:\WINDOWS\system32>sc start LxssManager [SC] StartService FAILED 1058:
The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
C:\WINDOWS\system32>
I think you found the issue. If I look under "Services" I see the LxssManager service is "disabled". If I try to set it to manual I get an "Access Denied". My guess corp. disabled this as part of a group policy.
Yeah 0x80070422 is E_SERVICE_DISABLED. Not sure how it got into that state, but that's not a supported configuration.
I'm on my Windows 10 Home installation and with no group policies edited or anything like that and I get the same "Access denied" error when I try to enable it.
Same problem. I managed to fix it by going into safe mode and using:
Press win + r;
Write "cmd"
Give the command: sc config LxssManager start=auto
It seems that Kaspersky had blocked the service, so it is good to reinstall it if you have one, and when it asks about executing Linux commands you leave it unlocked.
I had the same issue. I just disabled & enabled "Windows Subsystem for Linux". reboot windows after each step as requested and everything worked as usual.
Same problem. I managed to fix it by going into safe mode and using:
Press win + r; Write "cmd" Give the command:
sc config LxssManager start=autoIt seems that Kaspersky had blocked the service, so it is good to reinstall it if you have one, and when it asks about executing Linux commands you leave it unlocked.
Exactly! Remember to use CMD as Administrator
"sc config LxssManager start=auto" is my hero. Much thanks for the tip!
I had the same issue. I just disabled & enabled "Windows Subsystem for Linux". reboot windows after each step as requested and everything worked as usual.
On Windows 10 Home, no sc.exe so cannot run the magic command, so the above worked for me.
- I typed windows features into the start search, selected turn windows features on or off
- I disabled WSL, rebooted.
- Went back in there again, enabled WSL, rebooted.
- Then I was able to re-enable the LxssManager service in the services list, though only in manual, still not allowed to set it to automatic for some reason.
Noting that I am running Kaspersky cloud, since I had another non-circumventable permission denied problem with windows defender. Having not used Windows for serious work since Windows 2000, this kind of mad stuff where I as administrator and sole user of my computer can't turn things on that I want to turn on is totally infuriating and bonkers. I'm gonna dig out my windows 98SE disk. That was the last good one :) Oh hang on, not CD drive.
Karsperski Free Antivirus block the service.
"sc config LxssManager start=auto" Works
Karsperski Free Antivirus block the service.
"sc config LxssManager start=auto" Works
Thank @ezero0 , I choose to remove KFA.
Same problem. I managed to fix it by going into safe mode and using:
Press win + r; Write "cmd" Give the command:
sc config LxssManager start=autoIt seems that Kaspersky had blocked the service, so it is good to reinstall it if you have one, and when it asks about executing Linux commands you leave it unlocked.
Thank you so much.
sc config LxssManager start=auto
I was running with Powershell ... with cmd it worked !
Same problem. I managed to fix it by going into safe mode and using:
Press win + r; Write "cmd" Give the command:
sc config LxssManager start=autoIt seems that Kaspersky had blocked the service, so it is good to reinstall it if you have one, and when it asks about executing Linux commands you leave it unlocked.
Thanks, it worked for me, then just ignore kaspersky in the popup
Same problem. I managed to fix it by going into safe mode and using:
Press win + r; Write "cmd" Give the command:
sc config LxssManager start=autoIt seems that Kaspersky had blocked the service, so it is good to reinstall it if you have one, and when it asks about executing Linux commands you leave it unlocked.
Hey So I am learning hacking but I created a discord server so that others can learn too. If you have discord please join my server you seem to have knowledge in these stuff Link: https://discord.gg/MJmeaG92fS
sc config LxssManager start=auto tnaks, é só executar como adm o cmd e executar esse comando. Em seguida basta inicializar o Ubunto WSL
El mismo problema. Logré arreglarlo entrando en modo seguro y usando: Presione win + r; Escribe "cmd" Da el comando:
sc config LxssManager start=autoParece que Kaspersky había bloqueado el servicio, por lo que es bueno volver a instalarlo si tienes uno, y cuando te pregunte sobre la ejecución de comandos de Linux lo dejas desbloqueado.¡Exactamente! Recuerde usar CMD como administrador
gracias, me funcionó a la perfección, el problema lo genera Karspersky free.
Same problem. I managed to fix it by going into safe mode and using:
Press win + r; Write "cmd" Give the command:
sc config LxssManager start=autoIt seems that Kaspersky had blocked the service, so it is good to reinstall it if you have one, and when it asks about executing Linux commands you leave it unlocked.
Welll! Great works for me!
Remember execute cmd with Administrator Level! GREAT JOB!
Same problem. I managed to fix it by going into safe mode and using:
Press win + r; Write "cmd" Give the command:
sc config LxssManager start=autoIt seems that Kaspersky had blocked the service, so it is good to reinstall it if you have one, and when it asks about executing Linux commands you leave it unlocked.
finally it works. thanks.
Thanks for the tip from CMD as administrator the command sc config LxssManager start=auto works !