WSL icon indicating copy to clipboard operation
WSL copied to clipboard

WslRegisterDistribution failed with 0x80070422

Open dvescovi1 opened this issue 7 years ago • 34 comments

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.

dvescovi1 avatar Jan 31 '19 15:01 dvescovi1

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>

dvescovi1 avatar Feb 01 '19 15:02 dvescovi1

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.

dvescovi1 avatar Feb 01 '19 15:02 dvescovi1

Yeah 0x80070422 is E_SERVICE_DISABLED. Not sure how it got into that state, but that's not a supported configuration.

benhillis avatar Feb 01 '19 22:02 benhillis

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.

ghost avatar Jan 02 '20 23:01 ghost

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.

leonardovilarinho avatar Jan 18 '20 18:01 leonardovilarinho

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.

Salman-EF avatar Feb 24 '20 08:02 Salman-EF

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.

Exactly! Remember to use CMD as Administrator

josemalcher avatar Apr 16 '20 22:04 josemalcher

"sc config LxssManager start=auto" is my hero. Much thanks for the tip!

leephung avatar May 14 '20 17:05 leephung

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.

yeeking avatar Jun 12 '20 14:06 yeeking

Karsperski Free Antivirus block the service.

"sc config LxssManager start=auto" Works

ezero0 avatar Jun 16 '20 01:06 ezero0

Karsperski Free Antivirus block the service.

"sc config LxssManager start=auto" Works

Thank @ezero0 , I choose to remove KFA.

ghost avatar Oct 09 '20 02:10 ghost

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.

Thank you so much.

Groberts93 avatar Dec 08 '20 12:12 Groberts93

sc config LxssManager start=auto

I was running with Powershell ... with cmd it worked !

Kirandp6 avatar Dec 24 '20 21:12 Kirandp6

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.

Thanks, it worked for me, then just ignore kaspersky in the popup

victordev13 avatar Dec 31 '20 11:12 victordev13

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.

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

iBOY2020 avatar Dec 31 '20 15:12 iBOY2020

sc config LxssManager start=auto tnaks, é só executar como adm o cmd e executar esse comando. Em seguida basta inicializar o Ubunto WSL

gbyteinfo avatar Feb 03 '21 00:02 gbyteinfo

El mismo problema. Logré arreglarlo entrando en modo seguro y usando: Presione win + r; Escribe "cmd" Da el comando:sc config LxssManager start=auto Parece 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.

tangosoftsrl avatar Feb 20 '21 15:02 tangosoftsrl

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.

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=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.

finally it works. thanks.

mufidu avatar Mar 13 '21 00:03 mufidu

Thanks for the tip from CMD as administrator the command sc config LxssManager start=auto works !

fbenrejdal avatar Apr 29 '21 10:04 fbenrejdal