WSL: This user isn't allowed to sign in to this computer

1

My Windows computer crashed (blue screen), and when it came back up, none of the WSL VMs is working anymore. They're all in the "Stopped" state, and starting them gives the error

This user isn't allowed to sign in to this computer

I tried to disable WSL feature, restart, enable it, restart, but got the same error.

I also tried uninstalling and reinstalling a WSL distribution, but when launching the new distribution, I get this error

WslRegisterDistribution failed with error: 0x80070531                                                                   
Error: 0x80070531 This user isn't allowed to sign in to this computer.

I am not sure what else I could try at this point. Does anyone know what this problem might be, or how I could get around it?

windows-10
windows-subsystem-for-linux
asked on Super User Feb 1, 2021 by Tri Nguyen

1 Answer

2

It was reported that the following is a solution to this problem.

  1. Save and clear the security event log (Event Viewer> Windows Logs> Security).
  2. Start Registry Editor (Click on Start and type regedit).
  3. Locate the following key, and then set the value of this key to 1: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\CrashOnAuditFail
  4. Restart the computer. The registry changes do not take effect until you restart the computer.

Source: Cannot upgrade WSL1 to WSL2 distro #5678

answered on Super User Feb 1, 2021 by Ramhound

User contributions licensed under CC BY-SA 3.0