Table of Contents
This article will show you how to Fix ‘Windows installation encountered an unexpected error’ issue. The world is changing very quickly, and so are the tasks that need to be done on a computer. Microsoft keeps improving its Windows operating system in order to meet these needs. Since the first version of Windows OS, the company has made several more versions, and Windows 11/10 is another great operating system from the company.
Even so, Microsoft, the tech giant, keeps everything in mind and tries to make the operating system as easy as possible for customers. Still, there are some errors or problems that can happen when Windows OS is being installed or when it is being used. During a clean installation of Windows, an upgrade to a new version of Windows 11, the installation of a new build of Windows 10, or the creation of a reference OS image with Sysprep, you might get the error “The computer restarted unexpectedly or encountered an unexpected error. ” If you want to know more information about this Visit Official Microsoft Support site.
Windows installation can’t go any further.” When you click OK, the computer restarts and the error window pops up again. This keeps happening over and over… What can you do to keep installing Windows in this case? If you see the error message If you were installing Windows 11/10 on your computer and an error came up that you didn’t expect, you can try the solutions we’ll talk about in this post to Fix ‘Windows installation encountered an unexpected error’ issue.
Temporarily Disable Your Antivirus and Firewall

Sometimes, your security program can mistake a good program for malware and stop it from working or connecting to the internet. To see if your security software is giving false alarms, turn off your antivirus and firewall for a short time and then run the installer.
If you are using a third-party antivirus, the steps to disable the tool may vary. For example, if you use Avast antivirus, click on the system tray icon, and right-click on the Avast icon. Then, go to Avast shields control > Disable until computer is restarted.
For any other antivirus, check the developer’s website for the knowledge base to find out how to turn it off. Once it has been turned off, run the installer to see if it works without any problems. When the job is done, don’t forget to turn on your antivirus. Follow these steps to turn off Real-Time Threat Protection and the Windows Defender Firewall if you use Windows security.
- To open Settings, press Win + I.
- Open the Privacy and Security tab in the left pane.
- In the right pane, click on Windows Security.
- Click on Virus and threat protection next.
- Scroll down to Virus & threat protection in the Windows Security window. Then click the “Manage Settings” button.
- To turn off Real-time protection, you can flip the switch. If UAC asks you, click Yes.
- Next, click on the Firewall and network protection tab (left pane) in the Windows Security window.
- Select the Public Network link. Then, turn off Microsoft Defender Firewall by toggling its switch.
Disconnect All Your USB Devices
- Connect many different USB devices on your computer.
- Disconnect all your USB devices on your computer.
- Fix “the computer restarted unexpectedly or encountered an unexpected error Windows 10”.
- Sometimes, your USB devices’ drivers are not compatible with your operating system.
- The error appears.
- When you meet the error, you should disconnect your USB devices such as printers.
- Even your USB mouse and keyboard.
Take Ownership of the Temp Folder
- Open File Explorer and go to the location below:
C:\Users\Username\AppData\Local - Change the Username in the above path to the name of your user account.
- Select Properties by right-clicking on the Temp folder.
- Open the Security tab in the Temp Properties window.
- Under “Permissions for System,” click the button that says “Advanced.”
- Click the Change link for Owner in the Advanced Security Settings for Temp window. If UAC asks you, click Yes.
- Next, in the “Enter the object names to select” box, type “Everyone,” and then click “Check Names.”
- If there is a line through Everyone, click OK. Then, click the Apply button to save the changes.
- Click the Edit button in the Temp Properties window.
- Click the Add button in the Permission for Temp window.
- Next, type Everyone in the box that says “Enter the object names to select,” and then click the Check Names button.
- To save the changes, click OK.
- Next, check the box for Full Control under Permissions for Everyone.
- To save the changes, click Apply and OK. When the UAC asks you to confirm the action, click “Yes” to do it.
- Press the Windows key and the letter R to open Run.
- Type services.msc and hit the OK button.
- Right-click on Windows Installer and choose “Start” from the menu.
Check Your Hard Drive Cables
- Meet the “the computer restarted unexpectedly loop Windows 10” error when there is something wrong with your hard drive cables.
- Check whether the cables that connect your motherboard and the hard drive are slacked, if it is, then you should change it.
- Pay attention: once you open your computer case, then you void your warranty.
- Take your computer to the official repair center if your computer is still under warranty.
- After you have made sure that there is no problem with your hard drive cables, then you should have fixed the issue.
Run the Installer as Administrator
Some programs need explicit permission to run the installer or programs that can change system files. So, try running the installer as an administrator to give it the permission it needs. This should work most of the time and let you finish the installation. To run the installer as the admin:
- Find the installer you want to run and right-click on it.
- Click on the option that says “Run as administrator” in the menu that pops up.
- Click Yes when UAC (User Account Control) asks you to.
FAQs
0xc0000005 as an error when installing Windows. This error can be caused by a problem with either your RAM or your hard drive. You can fix the error and delete all partitions on the hard drive by using the chkdsk utility.
This incompatibility between TLS versions could be why your computer can’t connect to a Microsoft server and gives you the error code 0x80072F8F 0x20000 every time it tries. You must turn on TLS 1.1 and TLS 1.2 to fix this error.