LogonUI.exe is the application that aids your computer to build up an interface using which you can log in to your system. But sometimes corruption in this application may interfere with your entry to the system, resulting in a fatal BSOD crash every time you try to log in to your device. Don’t worry. There are particular fixes available to solve this issue. The most prominent of these are rebuilding the LogonUI.exe, initializing an automatic startup repair, etc.
Before you try to fix the ‘LogonUI.exe’ issue, you will need a Windows 10 DVD. You don’t have one? Simply create a bootable installation media.
Once you have done so, insert the DVD or plug in the USB drive. Then continue to this fixes
In case if you can’t create a bootable installation media, follow this workaround~
1. You need to completely shut down your system.
2. Once it is switched off, switch it ‘ON’ by tapping on the power button once.
3. Once your device boots up press the power button once again. Your device will be turned off.
4. Switch ON your device again.
Now, continue this process for 2-3 times. For the 4th time, let it boot normally.
You will see that the Automatic Repair window has appeared.
5. Here, you need to click on the “Advanced options“.
Now, follow these fixes-
Fix 1 – Try using Startup Repair
1. When you see that the Windows RE mode has booted, click on “Next“.
2. On the bottom-left corner, you will notice that “Repair your computer” has appeared.
3. Click on it and you will reach the Windows RE mode.
4. Then, click on “Troubleshoot“.
5. You will see that the Troubleshoot window has appeared.
6. Then, click on “Advanced options“.
7. As the Advanced options window appears on your screen, click on “Startup Repair” to start the repair process.
Simply wait it out as Windows will search for issues and fix the issue itself.
Fix 2 – Rename the LogonUI.exe
There is a chance that existing LogonUI.exe is corrupt. Renaming it should fix the issue on your computer.
1. Boot your computer from the USB device again.
2. Set the language, date, and time and click on the “Repair your computer“.
3. Just the same as before, click on “Troubleshoot“.
4. Just click on the “Advanced options“.
5. In the list of available options, click on “Command Prompt” to access it.
6. You may need to choose your appropriate account and password.
7. Once you are in the terminal, copy-paste this below-mentioned command and hit Enter.
8. To rename the existing LogonUI.exe, execute this code in CMD.
ren LogonUI.exe LogonUI.old
9. Then, execute these sets of commands to navigate to the ‘Winsxs‘ folder.
cd.. cd Winsxs
10. While you are in the Winsxs folder, you need to dir search for the ‘LogonUI‘. To do so, type this code and hit Enter.
You will see that the location of that file has appeared in the search result.
Simply select the address by selecting it with your mouse and press ‘Ctrl+C‘ to copy the address.
(Example– We have copied the ‘amd64_microsoft-windows-authentication-logonui_31bf3856ad364e35_10.0.19041.1_none_1b8420121296312d‘ folder location.)
11. Now, copy-paste, modify this code and hit Enter.
cd paste the folder location
Simply, paste the location in the commad by pressing the ‘Ctrl+V‘ buttons together.
Example- In this computer, the command will look like this after pasting the location~
12. Finally, make a copy of the original LogonUI.exe to the main system32 directory. To do so, run this code in the terminal.
copy LogonUI.exe C:\Windows\System32
Close the terminal.
Restart your computer normally. Windows will use fresh LogonUI.exe to create the interface.
Your problem should be solved with this.
Fix 3 – Uninstall any security program from your PC
1. Following the same method we have discussed earlier, boot your computer.
2. Click on “Next” after setting the language, time format, and the keyboard input method.
2. Then, click on “Repair your computer” on the bottom left corner of the Recovery Environment window.
3. After that, click on “Advanced options“.
4. To modify the startup options, click on “Startup Settings“.
5. As the Startup Settings appears on your screen, click on “Restart“.
6. Choose the “Safe mode” option with a press of the ‘4‘ key.
7. Once your computer boots into Safe mode*, you need to press Windows key+R.
8. In the Run window, type “appwiz.cpl” and then click on “OK“.
9. As soon as the Programs and Features window surfaces, right-click on the problematic tool and then click on “Uninstall“.
Once the uninstallation process is complete, restart your system normally.
You may face the ‘LogonUI.exe‘ error while accessing your system in the safe mode. If you face the error, try these steps~
1. Access the CMD terminal following the method elaborated in Fix-2.
Repair your computer > Troubleshoot > Advanced options > Command Prompt
2. Once you have access to the terminal, execute these sets of commands.
ren “C:\Program Files” “Program Files-old” ren “C:\Program Files (x86)” “Program Files (x86)-old”
Once you are done, restart your computer normally as you do.
3. Log in to your account. Once you are in, open the “C:” drive on your computer.
4. Look for the ‘Program Files.old‘ and ‘Program Files(x86).old‘ folders.
5. Right-click on these folders one-by-one and click on “Rename“.
6. Rename both the folders by removing the ‘.old’ from the end of their name. Like, rename ‘Program Files.old‘ to “Program Files“.
Once you are done with this, you can easily uninstall the problematic application from your computer.
Fix 4 – Copy SHLWAPI.DLL to system32 folder
Some users have solved the issue by copying the original SHLWAPI.DLL file to the system32 directory.
1. Startup your computer again with the USB device plugged in.
2. Then click on “Repair your computer“.
3. Again you need to choose the “Troubleshoot” option.
4. To see advanced troubleshooting options, click on “Advanced options“.
5. Then click on “Command Prompt” to open up the terminal.
6. As the terminal appears on your screen, type this set of commands, and hit Enter after writing each of them.
cd\ cd windows cd system 32
7. All that is left to do is to copy the original SHLWAPI.DLL file and place it is the right location.
copy SHLWAPI.DLL C:\Windows\System32
[NOTE– If Windows is installed on any drive partition other than the C: drive, you need to place that drive letter in the above-mentioned code.
Like- If Windows in the D: drive then the code will look like this~
copy SHLWAPI.DLL D:\Windows\System32
Close the CMD terminal.
8. Once you are back in the Recovery Environment, click on “Continue“.
Now, all you have do is to wait. Wait for your computer to boot up normally. Try to log in again.
Fix 5 – Disable your graphics adapter
Disabling the graphics adapter on your device may solve this issue.
1. Boot your device into the safe mode following the Fix-3.
1. At first, press Windows key+X.
2. Then, click on the “Device Manager” to access it.
3. Once the Device Manager opens up, just click on the “Display adapters“.
4. Right-click on your graphics adapter, click on “Disable“.
Once the graphics adapter is disabled on your system, close the Device Manager window.
Reboot your computer.
You will be able to boot into the system normally as you can. Then follow this set of instructions-
1. Open the Device Manager utility again.
2. Once it opens up, expand the “Display adapters“.
3. Right-click on the disabled adapter, click on “Enable device“.
4. After enabling the driver, right-click on it again. This time, click on “Update driver“.
5. After that, choose the option ” Search Automatically for updated driver software“.
Windows will look for the latest driver and install it on your computer.
You can look for the latest update for your graphics driver from its manufacturer website.
This should fix your issue.
Sambit is a Mechanical Engineer By qualification who loves to write about Windows 10 and solutions to weirdest possible problems.