Sub topic 15
Troubleshooting Failed Installs and Recovery Options
This chapter assumes you know the earlier material: editions, system requirements, UEFI and Secure Boot, GPT and MBR, installation methods, and the difference between a clean install and an in-place upgrade. Here you will learn a method for diagnosing a failed Windows 10 or 11 installation, the common failure causes, and the recovery tools you can pick from when a system will not start or an upgrade goes wrong.
A troubleshooting method for installs
Installation failures look different, but the diagnosis follows the same order. Work from the cheapest, most common cause to the most expensive one.
- Identify when it failed: before Setup loads, during disk selection, during file copy, or after a restart.
- Read the exact message or error code. Write it down.
- Check the usual suspects: media, firmware settings, disk layout, hardware, and drivers.
- Change one thing at a time, then retry.
- Document what fixed it.
The stage at which the failure occurs narrows the cause quickly.
| Stage of failure | Typical causes |
|---|---|
| Will not boot from the installer | Wrong boot order, Secure Boot or legacy mode mismatch, bad USB media |
| "This PC can't run Windows 11" | TPM, Secure Boot, CPU, or RAM requirement not met |
| "Windows cannot be installed to this disk" | GPT/MBR mismatch with firmware mode |
| No drives listed | Missing storage driver, RAID or Intel VMD mode |
| Fails or freezes during file copy | Corrupt media, bad RAM, failing disk |
| Reboot loop after the first restart | Driver conflict, wrong boot entry, incomplete install |
| Upgrade rolls back | Incompatible app or driver, low disk space, damaged system files |
Failures before Setup starts
If the PC never reaches the Windows Setup screen, the problem is in the boot path.
- Open the one-time boot menu (often F12, F10, or Esc) and confirm the USB or optical device is listed.
- A USB drive created for UEFI uses FAT32. If the firmware is in legacy BIOS mode, the drive may not be listed. If the firmware is in UEFI mode and the drive was prepared for BIOS only, it may also be missing. Recreate the media with a tool that matches the firmware mode.
- Try a different USB port, preferably one directly on the motherboard. Some systems do not boot reliably from front-panel or hub ports.
- Re-download the ISO and recreate the media if the drive was made from a file with a bad checksum.
- On network boot (PXE), confirm that network boot is enabled in firmware and that the deployment server is reachable.
Hardware requirement failures
Windows 11 Setup checks the requirements and stops with a message if one is missing. Check each one in turn. Run these in an elevated PowerShell window on the existing system before you install.
Confirm-SecureBootUEFI
Get-Tpm | Select-Object TpmPresent, TpmReadyConfirm-SecureBootUEFI returns True or False. On a legacy BIOS system it returns an error, which tells you the machine is not in UEFI mode. TpmPresent set to False means the TPM is absent or disabled in firmware. Many boards ship with the TPM turned off. It may appear in firmware as "fTPM", "PTT", or "Security Device Support".
Common fixes:
- Enable the TPM in firmware.
- Enable Secure Boot. This usually requires UEFI mode and, on some boards, that the CSM (Compatibility Support Module) is turned off.
- Check CPU generation, 4 GB of RAM, and 64 GB of storage.
If the hardware really cannot meet the requirement, the supported answers are to stay on Windows 10 until its support ends or to replace the hardware. Registry workarounds that bypass the checks exist, but they leave the PC in an unsupported state. For the exam, remember that the requirements are enforced by Setup and that the supported fix is to meet them.
Disk and partition style errors
The message "Windows cannot be installed to this disk. The selected disk is of the GPT partition style" (or the MBR version) is among the most common installation errors. The firmware mode and the disk's partition style must match:
- UEFI mode requires a GPT disk.
- Legacy BIOS mode requires an MBR disk.
You have two ways out. Change the firmware mode to match the disk, or convert the disk to match the firmware. First look at the current layout.
Get-Disk | Select-Object Number, FriendlyName, PartitionStyle, SizeIf the disk holds nothing you need, convert it from the Setup command prompt. Press Shift+F10 on the Setup screen to open it.
diskpart
list disk
select disk 0
clean
convert gpt
exitOther disk-related causes:
- No drives shown. Setup lacks a driver for the storage controller. This happens with RAID mode or Intel VMD. Choose Load driver and point to a folder on a second USB drive, or switch the controller to AHCI in firmware if you do not need RAID. Change this only on a fresh install. Changing it on an installed system can stop Windows from booting.
- Not enough space. Setup needs room for the system partition and the recovery partition. Delete or resize partitions in Setup.
- Existing partitions from an old install. Deleting them in Setup gives a clean layout. Setup then creates the required partitions itself.
Failures during file copy and first boot
If Setup stops at a certain percentage, or the text "Windows installation encountered an unexpected error" appears, suspect the media or the hardware.
- Recreate the installation media on a different USB drive.
- Disconnect nonessential devices: extra drives, docks, printers, and card readers.
- Run the memory test built into Windows (Windows Memory Diagnostic) or a bootable memory tester. Bad RAM causes random file-copy failures.
- Check the drive health with the vendor's tool or the SMART status in firmware.
- Update the firmware if the vendor documents a fix for installation or storage issues.
You can also check that the installation image itself is intact. This command lists the editions in the image, and it fails if the image cannot be read. Here D: is the installation media. Some media use install.esd instead of install.wim.
dism /Get-WimInfo /WimFile:D:\sources\install.wimA reboot loop after the first restart often happens because the PC boots from the USB drive again and restarts Setup. Remove the USB drive, or move the internal disk above it in the boot order, once the first phase finishes.
Failed in-place upgrades
An in-place upgrade keeps files, apps, and settings. It can fail partway and roll back. Windows then returns to the earlier version and shows an error code, often with the text "We couldn't install Windows".
Check these items first:
- Free disk space. A feature update needs many gigabytes of working space.
- Incompatible apps or drivers. Uninstall security suites, old VPN clients, and disk utilities, then retry.
- Pending updates or a pending restart.
- Corrupt system files.
Repair system files from an elevated command prompt before you retry:
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealthsfc checks protected system files and replaces damaged ones. DISM repairs the component store that sfc draws from. Run DISM first if sfc reports that it cannot repair files.
Setup writes logs that name the cause. Look in C:\$WINDOWS.~BT\Sources\Panther for setupact.log and setuperr.log. If the upgrade rolled back, check C:\Windows\Panther.
Windows Recovery Environment
The Windows Recovery Environment (WinRE) is a small repair system stored on a recovery partition, on the installation media, or on a recovery drive. It starts automatically after repeated failed boots. You can also open it by holding Shift while you select Restart, or by choosing Repair your computer on the installation media.
The Troubleshoot menu offers several tools.
| Option | What it does | Data effect |
|---|---|---|
| Startup Repair | Fixes problems that block booting, such as damaged boot files | Keeps data |
| System Restore | Returns system files, drivers, and registry to a saved restore point | Keeps personal files |
| Uninstall Updates | Removes the latest quality or feature update | Keeps data |
| Startup Settings | Reaches Safe Mode and other boot options | Keeps data |
| Command Prompt | Gives access to `bootrec`, `diskpart`, `sfc`, and `chkdsk` | Depends on use |
| Reset this PC | Reinstalls Windows, with choices to keep or remove personal files | Keep files or remove everything |
| System Image Recovery | Restores a full backup image | Replaces the whole disk contents |
Safe Mode
Safe Mode starts Windows with a minimal set of drivers and services. If a PC boots in Safe Mode but not normally, a driver, service, or startup program is the likely cause. Uninstall the recent driver or app from there.
Repairing the boot configuration
If Windows does not start because the boot files are damaged, open the Command Prompt from WinRE and run the following commands.
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd/fixmbrwrites a new master boot record./fixbootwrites a new boot sector./scanosfinds Windows installations that are not in the boot menu./rebuildbcdrebuilds the Boot Configuration Data store.
On UEFI systems with GPT disks, the boot files live on the EFI system partition. bootrec /fixboot can return "Access is denied" on these systems. The usual repair is bootsect or bcdboot C:\Windows, which copies fresh boot files to the EFI partition. Run chkdsk C: /f as well if you suspect file-system damage.
Choosing a recovery option
Pick the least destructive option that solves the problem.
Before you pick any option that rewrites the disk, copy the user's files elsewhere. From WinRE's Command Prompt you can use Notepad's file dialog to browse the disk and copy files, or you can boot a live environment. A backup costs minutes, and a lost profile cannot be recovered.
After recovery
Confirm what you now have. Use winver for the version and build, and slmgr /dli and slmgr /xpr for license details and the activation state. A reset or reinstall on the same hardware normally reactivates by itself because the license is tied to the device. If activation fails after a large hardware change, such as a new motherboard, use the Activation settings page to run the troubleshooter and sign in with the Microsoft account linked to the license.
winver
slmgr /dli
slmgr /xprFinish by installing drivers and updates, as covered in the post-installation chapter, and record the cause and fix.
Exercise
A technician boots a new PC from a Windows 11 USB drive. Setup shows "Windows cannot be installed to this disk. The selected disk is of the GPT partition style" and the firmware is in legacy BIOS mode. The disk is empty. Name two ways to fix this, and say which one fits a Windows 11 install.
Show answer
Either change the firmware to UEFI mode so it matches the GPT disk, or convert the disk to MBR to match legacy BIOS mode. Windows 11 requires UEFI with Secure Boot and a TPM, so the correct fix is to switch the firmware to UEFI mode and keep the disk as GPT. Converting to MBR would not meet the Windows 11 requirements.
Exercise
A user's PC shows a black screen after a driver update. Safe Mode works. Which recovery step is the least destructive fix, and which option would you avoid first?
Show answer
Boot to Safe Mode and uninstall or roll back the new driver, or use System Restore to return to a point before the update. Avoid Reset this PC or a clean install at this stage, because they change far more than the problem requires and risk the user's data.
Exercise
A feature update downloads, restarts the PC several times, and then rolls back. List three checks you would make before you retry, and name the folder with the logs.
Show answer
Check free disk space, remove incompatible apps or drivers such as old security suites, and run sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth to repair system files. Setup logs are in C:\$WINDOWS.~BT\Sources\Panther, or C:\Windows\Panther after a rollback.