FIX: LogonUI.exe Error on BOOT/Start-up

LogonUI.exe crashes at the Windows login screen, often showing errors like “memory could not be read” or “stack-based buffer overrun.” This can cause the computer to keep restarting or show a black screen, and you may not be able to get into Safe Mode.

This error means the login screen process stopped working because of problems with memory or instructions during startup. The most common cause is a damaged display (graphics) driver. Other possible causes are hard drive problems, damaged system files, viruses, or failed Windows updates.

Our guide below will help you address both possible causes, along with other potential reasons for this error.

1. Run DISM Repair

Sometimes, this error appears because the LogonUI program is damaged. We’re going to walk you through using a Windows repair tool called DISM. To use it, you’ll need to boot into Safe Mode with Command Prompt.

  1. Power on your computer, then forcefully shut down your PC as soon as you see the Windows logo.
  2. Repeat this step 4 or 5 times. Eventually, you’ll see a screen that says Preparing Automatic Repair. When you see this, let it run.
  3. On the Automatic Repair screen, click on Advanced Options > Troubleshoot > Advanced Options > Command Prompt.
  4. When the black Command Prompt window opens, type:
    Dism /Online /Cleanup-Image /RestoreHealth

    and press Enter.

Windows will check and repair any system files that are corrupted.

Once this process finishes, see if the issue is resolved. If you still have the error, you might need to repair your system files using Windows installation media.

To do this, create an installation media by following Method 5 in our guide here. Once you get to Advanced Options, select Safe Mode with Command Prompt.

Now your PC will boot into safe mode with a command prompt window.

First, find the drive letter of your installation media by typing:
D: and pressing Enter. If you see folders like boot, efi, sources, you’ve found it. If not, try E:, F:, etc. and note the correct drive letter. For this example, let’s assume it’s D:.

Next, type:

Dism /Image:C:\ /Cleanup-Image /RestoreHealth /Source:wim:D:\Sources\Install.wim:1 /limitaccess

(Replace D: with the letter for your installation media, if needed.)

Once the process is complete, restart your computer. The problem should be fixed. If not, move on to the next solution.

2. Uninstall FastAccess or Other Security Programs

Some facial recognition programs, like FastAccess, or other security software, can sometimes conflict with Windows and cause this error.

  1. Power on your computer, then forcefully shut down when you see the Windows logo.
  2. Repeat this step 4–5 times until you see Preparing Automatic Repair under the Windows logo, then let it run.
  3. On the Automatic Repair screen, select Advanced Options > Troubleshoot > Advanced Options > Startup Settings.
  4. Click Restart.
  5. When you reach the Startup Settings screen, press F4 to enter Safe Mode.
  6. Once in Safe Mode, hold down the Windows key and press R. Type appwiz.cpl and press Enter.
  7. Look for FastAccess or any similar security program. Right-click it and select Uninstall.

If the LogonUI error appears even in Safe Mode (making you unable to log in), follow the instructions from Solution 1 to access Command Prompt. Then:

  1. Type:
    ren "C:\Program Files" "Program Files-old"

    and press Enter.

  2. Next, type:
    ren "C:\Program Files (x86)" "Program Files (x86)-old"

    and press Enter.
    If you get an error, don’t worry—just continue.

  3. Restart your computer and try to log in normally.
  4. Once you’re in, go to your C: drive and rename the folders back to Program Files and Program Files (x86) by removing the -old.
  5. Again, press Windows key + R, type appwiz.cpl, and uninstall any security software that looks suspicious.
  6. Restart your system and check if the issue is resolved.

3. Disable Graphics Card Adapter

A temporary issue with your graphics adapter can also cause LogonUI to fail. To fix this, disable the graphics adapter in Safe Mode, then update and enable it in normal mode.

  1. Boot into Safe Mode following our guide here.
  2. Once you’re in Safe Mode, press Windows key + R. Type devmgmt.msc and press Enter to open Device Manager.
  3. Expand Display Adapters, right-click your graphics device, and choose Disable.
  4. Restart your computer. You should now be able to log in normally.
  5. To re-enable, open Device Manager again, right-click your graphics device, and select Enable.
  6. Next, right-click and choose Update Driver Software.
  7. Click Search automatically for updated driver software.
ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.

Comments

21
    JA
    jay Jul 24, 2016

    Thanks a lot, I was able to get troubleshoot option by forceful shutdown of computer

    SC
    ScytheNoire Oct 27, 2016

    Not useful when you cannot even get into Windows.

      KA
      K. Arrows Author Nov 1, 2016

      Reboot the PC, and interrupt it when it shows the Windows logo, Repeat this 3 times, and it will start into repair mode. Once done, go to the troubleshoot menu, and reset the PC.

      Reply
        JA
        Jarmo May 26, 2017

        Yeah, but it doesnt even let me boot into safe-mode , just black screen cant type the user and pw, before i could until i used some stupid login background changer trying to default it… not to mention it doesnt even let me use cmd or do a recover, claims there’s no admin users on the pc, eventho there is…

        How can this even be, been using win10 a long time already with no problems, and suddenly wake up and my login doesnt work.. i havent installed or updated anything on my pc for few weeks atleast…

        My problem literally is that i can’t use the recovery promt, claims that there’s no admin users present (before i could boot myself into safe-mode, i checked and i have admin privileges..)

        Also there’s no .bak file in SystemResources/Windows.Ui.Login .. there’s .pri

        and there’s another pri folder wich has also windows.ui.login.pri .. wich might be a little suspicious…

        im dual booting.. got linux on other drive.. could GRUB Boot loader having any conflicts? (I mean ive been using it for ages without problems..)

        Basicly my question is, could i get .bak file from somewhere.. put in on a usb stick… get to cmd somehow and copy the file to the right location… would that work.. ?

    AD
    Andreas Denig Nov 3, 2016

    What if

    – Solution 1 does not work
    – the LogonUI error appears in the Safe Mode too
    – Solution 2 does not work either?
    Solution 3 is not possible as I cannot even reach the Device Manager, because I cannot even see the Logon Screen.

      KA
      K. Arrows Author Nov 4, 2016

      Create a bootable iso, boot the system from it, and do a repair.

    TO
    ToasterVan Feb 5, 2017

    Dear Mr Arrows, None of the options you’ve mentioned will work on a system that is attempting to install Win 10 Annivercy. 18 times I’ve attempt to install win10anni and ever time I get a “unknown hard Error” LogonUI.exe and I’ve been unable to locate anyone to help me with this issue. At one point even a Microsoft tech login to my computer and attempted to correct the issue, But it never was and in the process of allowing him access to my system.. I’ve subsequently lost near 1000 of my photographs.. Thus I’m not please with the so called repair team as offered by Microsoft. Now they want me to create a micorsoft account in order to get help from them and I’m not willing to do this. So I’m seeking support elsewhere.

      KA
      K. Arrows Author Mar 3, 2017

      Are you still facing this issue?

        TO
        ToasterVan Apr 2, 2017

        Yes sorry for the late reply.. this makes the 21st time I’ve tried to install the windows 10 anniversary update and every time I keep getting an unknown hard error but within that error window it says “logonui.exe” or something.. it’s getting to the point where I’ve disabled windows updates all together. I have been using the wushowhide.diagcab to scan for and remove the win10 anniversary update. But this last time win10 snuck on me again. I’m at my wits end. There’s nothing online (that I can understand) in how to correct this. Even a Microsoft tech rep had access to my computer and attempted to correct the error and again it failed. The issues, is IF I wanted to revert back to win7 I can’t because viewing my files and when win10 installed on my system there’s not reference to anything win& so I can’t revert. One thing I miss is actually having a back up CD of the opsys. No one includes these back/boot CD’s anymore and I’m not even sure this would help correct any issues.. I just need a freash boot or a have Microsoft leave me alone i’m perfectly fine with my current version.

    RA
    Rajbir May 25, 2017

    Thanku so much I was able to resolve this error

    PG
    Pokemon go May 28, 2017

    i had this error once so i got command prompt and ran “sfc /scannow”, works just fine now so if anyone cant fix it try this!

    Reply
    DE
    debraparker63 Nov 3, 2017

    LogonUI.exe system error:

    I was having the same issue however, I could never get anything but a
    black screen after entering my pin as it requested. It would even start
    my screen saver but never give me anything but a black screen.

    Fortunately I have two computers with Win10. I installed the hard
    drive from the corrupt one into the good computer as a second drive in
    order to copy the files over to a safe place. After I had rebooted it a
    second time the computer automatically REPAIRED
    the drive that was corrupt! Talking about excited!

    I did not have to reinstall Win10 nor did I lose any files. Once the
    repair was complete I shutdown and put the drive back into the original
    computer and it worked like a charm!

    Reply
      KA
      K. Arrows Author Nov 7, 2017

      I am glad it worked for you. Thank you for your very valuable feedback.

        DE
        debraparker63 Nov 7, 2017

        Sure no prob. Anything to save someone from losing everything or having to do a reinstallation.

    @D
    @Deo2131 Nov 16, 2017

    After following step or method till 5 I am unable clear the black screen kindly help

      KA
      K. Arrows Author Nov 17, 2017

      I would suggest you do a repair install.

        GG
        Graham Guse Mar 11, 2018

        how does one do a repair install?

    ER
    Ericathompson Jan 25, 2018

    With mine it pops up with a blinking screen. It wont let me login at all. with i press ctrl+alt+del the run time error pops up. HELP!!!

    SR
    Sunitha Raj Aug 17, 2018

    what if im unable to do anything???
    i cant type or press anything…..if i do loginui.exe system error box appears.i cant shut down my laptop too.

    SW
    Shane Warren Author Sep 25, 2019

    Do a fresh reinstall of the Windows.

    SW
    Shane Warren Author Sep 30, 2019

    Create a bootable USB of Windows iso and choose the repair option while booting from the USB