The user has not been granted the requested logon type at this computer
Fails to start any WSL distro with the error:
Logon failure: the user has not been granted the requested logon type at this computer
Environment
Windows 10 x64 10.0.19041.264 wsl2 Ubuntu 18.04 Windows Terminal 1.0 AD joined machine
Steps to reproduce
- Follow the standard instructions to install WSL2 and distro
- Run WSL2 distro - everything works
- Close terminal Window
- wsl --shutdown
- gpupdate /force
- Try and run distro again = error
Expected behavior
Distro runs under wsl2
Actual behavior
Can't run any distro under wsl2
The question is what Group Policy, account privileges are required in order for wsl2 to run successfully?
etl trace indicates an exception was thrown from
onecore\wsl\lxss\wsl\main.cpp(380) = 0x80070569
Could you give us a link to the traces that you took? Thank you! :)
I got same issue here. Windows version 2004
wsl --shutdown wsl Logon failure: the user has not been granted the requested logon type at this computer.
Did you contact your IT admin or someone in your corp. about this issue?
Did you contact your IT admin or someone in your corp. about this issue?
I tried but IT has no idea.
Could you give us a link to the traces that you took? Thank you! :)
Sorry company policy prevents that but here are the events as viewed in WPA
lxcore_service
Microsoft.Windows.LxssManager
- CreateInstanceBegin
- CreateInstanceEnd
- CreateVmBegin
- Error -VerboseLog
lxcore_kernel = empty
lxcore_user
Microsoft.Windows.Subsystem.Lxss
- LxssException
There is no additional information in any other column displayed in WPA (apart from threadid, processid) even when all are turned on.
Started to get the same error. Also an AD connected machine.
Tried to reintall Ubuntu and now i get this error:
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070569
Error: 0x80070569 Logon failure: the user has not been granted the requested logon type at this computer.
I started to get the same issue after upgrading to Win10 2004. Since my workstation is also connected to AD and I am certain that my user rights have not been changed I tried to reload our group policy
gpupdate /force
That immediately solved the problem for me.
I can reproduce the issue with WSL2 on Windows 10 Version 2004 with Ubuntu 20.04.
It appears when a background group policy refresh runs you're unable to launch WSL2 again, if you leave it running everything works until a relaunch.
Have tried granting the special user "VIRTUAL MACHINE\Virtual Machines" logon as a service role via a Group Policy and it hasn't made any difference.
Same as @piobrien. I work for Microsoft on the gaming side so happy to provide any debug info if it's helpful.
Same as @piobrien. The Solution from @ksalm doesnt work for me.
The solution from @ksalm also did not work for me. But I installed HyperV and now it seems to be working...
@Chuli2k I already had HyperV installed but the problem still occured. I also noticed that when I reboot my system I am no longer able to run WSL2 distros as before. My proposed "gpupdate" still solves the issue for me though - until the next reboot that is.
@ksalm I also installed "Platform for hypervisor" and "Platform for virtual computers" if that made any difference. Note: I translated the names to english, so the names can be a bit different.
@Chuli2k I think its "Hyper-V Platform" and "Virtual Machine Platform" and I also have them both activated. Though the issue is still not entirely resolved for me. My workaround doesn't take to much time, so I keep forcing a group policy update for the time beeing. It's kind of annoying but I can live with it.
Heylow all, this note just say that I have the same error from time to time.
I do "hibernate" the computer every evenings instead of doing a complete shutdown. This issue does appear sometimes after a computer wake up.
The gpupdate /force does not fix. OTOH, a complete reboot does.
If this error occurs
Logon failure: the user has not been granted the requested logon type at this computer.
Press any key to continue...
I restart Hyper-V Virtual Machine Management (vmms) service. Then it works again until next hibernate.
powershell restart-service vmms
Hey, the restarting Hyper-V trick works for me, many thanks!
Except the name of the service to restart for me is "Hyper-V Host Compute Service (vmcompute)"
Same issue, AD joined machine, restarting "Hyper-V Host Compute Service (vmcompute)" resolved.
Same issue, AD joined machine, restarting "Hyper-V Host Compute Service (vmcompute)" resolved.
This also worked for me too. I have this issue since Windows 10 2004 update. This is the first command that worked that didnt required me to reboot my system. Thanks guys. Hope this issue is fixed soon.