Replies6 suggested answers Show · 4 replies Add heading textAdd bold text, <Ctrl+b>Add italic text, <Ctrl+i> Add a quote, <Ctrl+Shift+.> Add code, <Ctrl+e> Insert LinkAdd a link, <Ctrl+k>Add a bulleted list, <Ctrl+Shift+8>Add a numbered list, <Ctrl+Shift+7>Add a task list, <Ctrl+Shift+l> Directly mention a user or teamReference an issue or pull request Add heading textAdd bold text, <Ctrl+b>Add italic text, <Ctrl+i>Add a bulleted list, <Ctrl+Shift+8>Add a numbered list, <Ctrl+Shift+7>Add a task list, <Ctrl+Shift+l> reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emojiFails to start any WSL distro with the error: Logon failure: the user has not been granted the requested logon type at this computer EnvironmentWindows 10 x64 10.0.19041.264 Steps to reproduce
Expected behaviorDistro runs under wsl2 Actual behaviorCan't run any distro under wsl2 The question is what Group Policy, account privileges are required in order for wsl2 to run successfully? Chuli2k, bobchaos, psprogis, JanRK, KineticTheory, DrakezulsMinimalism, jamestharpe, bruno-brant, FauxPrada, rosti-il, and 5 more reacted with thumbs up emojiristo-mononen reacted with eyes emoji nd368park changed the title The user has not been granted the requested logon type at the computer The user has not been granted the requested logon type at this computer Jun 13, 2020etl 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? I got same issue
here.
Did you contact your IT admin or someone in your corp. about this issue?
I tried but IT has no idea.
Sorry company policy prevents that but here are the events as viewed in WPA lxcore_service Microsoft.Windows.LxssManager
lxcore_kernel = empty lxcore_user Microsoft.Windows.Subsystem.Lxss
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. I started to get the
same issue after upgrading to Win10 2004. That immediately solved the problem for me. JonoGWhite, Mikecom32, AadamZ5, swebs, sergeyfrontier, ard0gg, jasonpugsley, elicutler, Hans-Seek, nickosh, and 33 more reacted with thumbs up emojiAadamZ5, darrenmonahan, curd0, Aqirito, bigtyre-isaac, and bsaavedrabo reacted with hooray emojiKarloZKvasin, fennovj, Aqirito, thomazmoura, JavierOlazaran, mberz, and bsaavedrabo reacted with heart emojistephen-miller-noaa, bevanj, and bsaavedrabo reacted with rocket emoji 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. @ksalm I also installed "Platform for hypervisor" and "Platform for virtual computers" if that made any difference. @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, I do "hibernate" the computer every evenings instead of doing a complete shutdown. This issue does appear sometimes after a computer wake up.
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. alaincao, pengzh9666, vdsbenoit, karoldeland, kayu1, cbrwflo, EvilCat108, DrMagPie, AlexandreHetu, FahadHussain, and 56 more reacted with thumbs up emoji Hey, the restarting Hyper-V trick works for me, many thanks! andrewspencer, danielmcmillan, lectricas, savbace, enhsaihan-d, BOCbMOU, orrishu, badjr, Catfoodman, zodiake, and 21 more reacted with thumbs up emoji Same issue, AD joined machine, restarting "Hyper-V Host Compute Service (vmcompute)" resolved. GutierrezDev, Aebian, JanRK, lectricas, enhsaihan-d, BOCbMOU, orrishu, Catfoodman, colawebrunner, durakk1, and 8 more reacted with thumbs up emojidurakk1 reacted with hooray emojidurakk1 reacted with rocket emoji
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. I also have this problem on 1909 (18363.1082) with WSL Update 4.19.104 on an AD joined machine with u18.04 using WSL2. I'm not seeing anything in the GPReport that would trigger, and as far as I know our IT team haven't changed anything that would impact this. gpupdate /force without reboot has resolved for now. powershell restart-service vmms works for us as a temporary fix. When will this be fixed properly? We're relying on WSL to build our production services, so having it potentially break with each update is not ideal. I have the same issue here, however I don't have Hyper-V installed I have the same issue. restarting vmms works for me. Ubuntu 20.04 LTS. WSL2. Windows 10 19041.508. AD joined computer. Did not have this issue with WSL. started after upgrading Windows 10 and installing wsl2 I can also confirm that restarting vmms works for me too. No need to pull group policies then. I can also confirm that restarting vmms works for me too. No need to pull group policies then. Windows 20H2 and Ubuntu 2.04.1 Restarting VMMS service via Powershell worked for me. *remember to run as administrator if you are not a local admin already I don't need to be an administrator to restart vmms... though I may be in the hyper-v administrators group...
How about when you don't have Hyper-V installed and still gets Logon failure: the user has not been granted the requested logon type at this computer.? As I don't have Hyper-V installed, I can't restart vmms. UPDATE Just found that in my case I have to run Restart-Service vmcompute, then it works again. byrontuckett, MavAlpha, tlofgren, djadeja, emilhe, baskeville, ksy101, pattarika, jessiewestlake, durakk1, and 25 more reacted with thumbs up emojidurakk1, AbdullahGheith, antonioestival, harbutler, feamelo, luiseduardosc, mannharleen, and GHMeyer0 reacted with hooray emojifeamelo, luiseduardosc, and mannharleen reacted with heart emojidurakk1, gregbown, AbdullahGheith, antonioestival, feamelo, luiseduardosc, mrcomoraes, mannharleen, and CoDen256 reacted with rocket emoji
This was the silver bullet for me. Thank you to all of ya. I'm seeing the same issue The user has not been granted the requested logon type at this computer. VMWare guest, running Windows 10 Pro 21H1 (19043.1151). AD-joined. Restarting the Hyper-V Computer Service got it back up and running. The bug is now 14 months old. Is there a permanent fix yet? I just wanted to add that restarting the host computer resolved the issue for me, and I assume that it is related to the fact that I changed the Windows password recently on my host computer, without restarting afterwards. Restarting vmcompute worked for me as well but the issue recurs frequently. Has anyone reported this directly to Microsoft? Same issue here. Restarting vmcompute does the trick, but it's bothersome to do this all the time. Same issue. Stopping the vmcompute service works around this annoying bug. Docker Desktop starts this service again if stopped, so no need to restart, just stop it. Looks like this long-standing and serious issue has not been assigned. Does anyone know how to get this onto Microsoft's radar? Really interferes with things like scheduled tasks that are expected to run wsl actions. Just recently got a different error launching wsl: insufficient quota to complete the requested service. Restarting vmcompute fixed this as well. Maybe a new variation on this bug with Windows 10 release 21H2? Same here - fixed by restarting vmms (no need to log off) or gpupdate /force (have to log off). Coming up on 2 years with this one Microsoft! The problem is a lot broader than WSL. If you ever have had the misfortune of using Hyper-V (desktop) in a domain environment you will have found that all sorts of permissions errors randomly occur.
I got this >> Updating policy... Computer Policy update has completed successfully. User Policy could not be updated successfully. The following errors were encountered: The processing of Group Policy failed because of lack of network connectivity to a domain controller. This may be a transient condition. A success message would be generated once the machine gets connected to the domain controller and Group Policy has successfully processed. If you do not see a success message for several hours, then contact your administrator. To diagnose the failure, review the event log or run GPRESULT /H GPReport.html from the command line to access information about Group Policy results.
after 10 minutes i executed it again and it was successful Updating policy... Computer Policy update has completed successfully. User Policy update has completed successfully. but it didnt work
This worked for me and my windows version
Restart-Service vmcompute this worked on windows Windows 10 Enterprise I had set up
a scheduled task to run the following on every suspend/resume: Starting a few weeks ago, this was causing a BSOD in dxgkrnl.sys on every resume. It took me a long while to figure out the cause of the BSOD, but once I disabled this scheduled task on resume, I stopped getting BSOD. It appears I need to wait some time after the resume to restart vmcompute to prevent BSOD. This really needs to be fixed!
what a terrible operating system windows is. Pathetic they cannot invest to make things just work like in other more worthy OSes Summarizing for the sake of wrapping this up (I hope).
These are only temporary solutions. Many people, myself included, have to setup jobs to run these on a schedule to keep things working. I'm experiencing the same issue and I seem to have found the cause of it: We have setup the security setting "Log on as a service". If I set this setting to "Not Defined" the above issue seems to be resolved. I can do gpupdate /force and wsl will work without restarting the vmcompute service. I'm still looking into what we need to set in the Policy for it to work with the policy enabled. edit: This policy restricts all users to log on as a service, except the set whitelist in this policy. I think if we manage to find what user needs to be put on the whitelist there would be no need to disable it completely.
powershell restart-service vmcompute Same here on corporate computer with group policies. powershell restart-service vmcompute as admin helps out. Having the same issue on corporate computer. Had the same problem. Restarting vmms service resolved the issue, but after reboot same problem. Changing service logon setting to "Allow service to interact with desktop" resolved my issue permanently.
I cannot confirm this. For both services vmcompute and vmms Allow service to interact with desktop was activated but after some days
occured again.
I did the setting on vmcompute only. Before I had the error multiple times a day, so far I haven't seen it anymore. So for me it seems to be at least a big improvement. Unfortunately, I'm back at multiple occurrences of this problem per day even with "Allow service to interact with desktop". I really can't recommend WSL2 to my colleagues with this issue. Here is an article that describes the same symptoms. But the cure is not available to me as I'm not the Domain Administrator. In my case, I solved the problem by simply registering a shortcut to wsl2 in the startup folder. Another solution is to install Docker Desktop, which will always start wsl2 on the backend, so the problem will not occur anymore.
I can confirm that Changing service logon setting to "Allow service to interact with desktop" is not the solution to the problem. It seems this is quit a difficult problem for Microsoft to solve. The workaround I use now is a scheduled restart every morning at 6:00AM. No manual intervention anymore. For test environment good enough. Keeps you wondering though why the entire world is using these cr... features and pay for it "Allow service to interact with desktop" did not fix it consistently for me either. The only reliable solution seems to be sc stop vmcompute && sc start vmcompute. I've reverted to WSL 1 for now since this is so bothersome.
Does work for me quite often. Normally, I see this error when the time comes to change the password and it seems the old credentials being cached somewhere deep in the system. What has not been granted the requested logon type?To solve “The user has not been granted the requested logon type at this computer” error, you should make sure that the login user and all groups that belong to are allowed to log on locally to this computer.
How do I grant allow log on locally permissions to domain user accounts?The “Allow log on locally” setting specifies the users or groups that are allowed to log into the local computer. This policy can be found in Computer Configuration > Policies > Security Settings > Local Policies > User Rights Assignment > Allow log on locally.
What is a logon Type 10?Logon type 10: RemoteInteractive. A user logged on to this computer remotely using Terminal Services or Remote Desktop. This logon type is similar to 2 (Interactive) but a user connects the computer from a remote machine via RDP (using Remote Desktop, Terminal Services or Remote Assistance).
What is logon failure?A user sees the error “Logon failure: the user has not been granted the requested logon type at this computer” when attempting to log in through Duo Authentication for Windows Logon (RDP). Alternatively, a user may see the error "To sign in remotely, you need the right to sign in through Remote Desktop Services.
|