The Installation Failed In The Second Boot Phase



Failed

Last updated on June 24th, 2020

If the Windows 10 version 2004 update, failed to install, then continue reading this tutorial. As you may know Microsoft released on May 2020, the last major update for Windows 10, known as 'Windows 10 May 2020 Update' or 'Feature Update to Windows 10, version 2004'.

To check if your Windows 10 device is compatible to install the update 2004, navigate to Settings -> Update & security -> Windows Update and click Check for updates. After checking for new updates and if your device is compatible, you'll be informed that the 'Feature Update to Windows 10, version 2004' update is available. If you want to install update immediately, save your work, close all programs, and click Download and install. *

* Note: The update may take 1 or 2 hours to install. So, I suggest to install the update in non-working hours.

0xC1900101-0x40017 The Installation failed in the SECONDBOOT phase is commonly caused by incorrectly configured system settings or irregular entries in the Windows registry. This error can be fixed with special software that repairs the registry and tunes up system settings to restore stability. Run a Clean Boot Last, but not least, try to run a Clean Boot and then launch the installer/update. This can be done by performing the following steps: Click on Win key +. How to Add Boot to UEFI Firmware Settings Desktop Context Menu How to Change Text Cursor Thickness, Indicator, and Color How to Clear Recent Accent Color History in Windows 10 7 Ways to Restart or Shut Down Windows 10 How to Turn Visual Feedback on or Off The Application Failed to Initialize Properly (0xc0000135) What is a Troll or Trolling?

Normally, the Windows 10 Update 2004, will be installed without problems. But, as sometimes happens with many Windows updates, the Feature update to Windows 10 v2004 update, may fail when downloading or installing for several reasons. At this case, follow the detailed instructions in this tutorial, to solve the download, or the installation problems, of the Windows 10 Update v2004.

Common Windows 10 Update v2004 problems that fixed with this guide:

  • Windows 10 v2004 update failed to install with error code 0x80d02002
  • Windows 10 Update v2004 fails on install or download.
  • Windows 10 v2004 freezes while installing or downloading.
  • The Windows 10 v2004 installation failed at the SECOND_BOOT phase with an error during BOOT operation with error 0xC1900101.
  • Windows 10 v2004 update failed to install with error 0x80242016.

How to fix: Windows 10 v2004 May 2020 Update Fail to Download or Install.

PhaseThe installation failed in the second boot phase during migrate data

Important: Before proceeding to the methods below, to troubleshoot the Windows 10 Update v2004 installation issues, perform the following actions and try to install the update again:

1. Make Sure that you have enough free disk space (at least 32GB) before installing the update. How to Free Up Disk Space with Disk Cleanup.
2.Download and install the latest Servicing stack update for Windows 10 version 1909.
3.Remove all external storage media, such as USB drives and SD cards. Also remove any USB connected devices that you don't need. (e.g. USB Printer, USB Wireless Mouse or Keyboard Receiver, USB Wireless Network Card, etc.).
4. Temporarily disable or completely uninstall any 3rd party antivirus or security program from your system.
5.Disconnect from VPN or uninstall any VPN service that you may using (e.g. AirVPN, CyberGhost, NordVPN, etc.)
6. If you have enabled the Developer Mode on your system, then proceed to disable and uninstall the Windows Developer Mode, until you install the update. To do that:

    1. Go to Settings -> Update and Security -> For developers -> Select Sideload apps and then click Yes to confirm.
    2. Navigate to Settings –> Apps -> Manage optional features -> Windows Developer Mode –> click Uninstall and Yes to confirm.
    3. Restart your PC and try to update.
The Installation Failed In The Second Boot Phase

7.Disable Drive Encryption: If you have enabled the device encryption on your system (BitLocker, VeraCrypt), then proceed and decrypt the drive C: before installing the update.
8. Try to fix the Windows Updates problems by running the Windows Update Troubleshooter. To do that, proceed as follows:

  • Go to Start > Settings > Update & Security > Troubleshoot > Windows Update, or (alternatively), download and run the Windows Update Troubleshooter.

Method 1. Force Windows to Download again the Windows 10 Update v2004.
Method 2. Manually Upgrade Windows 10 to version 2004.
Method 3. FIX Windows corruption errors with DISM & SFC tools.
Method 4. Install Windows 10 v2004 Update with an IN-Place Upgrade.
General troubleshooting guide for Windows 10 updates.


Method 1. Force Windows Re-Download the Feature Update to Windows 10 v2004 from Scratch.

Step 1. Delete the Windows Update folders.

The most common cause in Windows update problems, is the incomplete download of the update. At this case you have to delete the Windows Update Storage folders, in order to force Windows to re download the update.

To delete the Windows Update Storage folder:

1. Simultaneously press the Win + R keys to open the run command box.
2. Type the following command and press OK.

  • services.msc


3.
At the right pane, right click at the following services and click Stop. *

The Installation Failed In The Second Boot Phase With An Error During Migrate_data Operation

    1. Cryptographic Services
    2. Windows Update

4.Close 'Services' window.

* Note: If you cannot stop the services:

a. Double click on the service to open its Properties.
b. Set the Startup type to Disabled and click OK.
c. Restart your computer.
d. After restart, continue below.


6.
Open Windows Explorer and navigate to C:Windows folder.
7. Locate and then Delete the SoftwareDistribution & catroot2 folders from the following locations: *

    1. C:WindowsSoftwareDistribution
    2. C:WindowsSystem32catroot2

* Notes:
1. If you cannot delete the folder with error 'Folder in use – try again', then restart Windows 10 in Safe Mode and repeat the procedure.
2. If you have disabled the Windows Update service (Startup type = Disabled), then go to services and set the Startup type to Automatic.

8.Restart your computer.

Step 2. Download again and try to install the Windows 10 Update v2004.

1. After the restart, go to Start > Settings > Update & Security.
2. Click Check for updates.
3.
Finally let Windows to download and install the update again.


Method 2. Install the Windows 10 May 2020 Update with the Upgrade Assistant.

The second method, to resolve the issues while downloading or installing the Windows 10 May 2020 update v2004, is to download and install the update by using the 'Windows Update Assistant': To do that:

1. Follow the instructions at Step-1 from Method-1 above and delete the 'SoftwareDistribution' folder.

2. Navigate to Windows 10 download site and click the Update now button.

3. When asked, click to Run the 'Windows10Upgrade9252.exe' file to start the installation immediately, or click the Save button to run the installer later.

4. Finally click the Update Now button and follow the on screen prompts to update your system to the latest release of Windows 10, version 2004.


Method 3. FIX Windows corruption errors with DISM & SFC tools.

The next, method to resolve the Windows 10 Update 2004 installation problems, is to repair the Windows 10 system files, by following the procedure below:

1. Open command prompt as administrator. To do that:

1. In the Search box type: cmd or command prompt
2. Right click on the command prompt (result) and select Run as Administrator.

2. At the command prompt window, type the following command & press Enter:

  • Dism.exe /Online /Cleanup-Image /Restorehealth

3. Be patient until DISM repairs component store. When the operation is completed, (you should be informed that the component store corruption was repaired), give this command and press Enter:

  • SFC /SCANNOW

4. When SFC scan is completed, restart your computer.
5. Try to update your system again.


Method 4. Install Windows 10 v2004 Update with an in-place Upgrade.

If you still can't update Windows 10 to v2004, by following the above instructions, then proceed and perform a Windows 10 Repair-Upgrade, by installing the update from a Windows 10 ISO file, or from a Windows 10 USB installation media. *

* Note: The detailed instructions to perform that task, can be found on this article: How to repair Windows 10.

To Update Windows 10 from a Windows 10 ISO File:
1. Download and run Microsoft's Media Creation tool to download Windows 10 in a .ISO File.
2. When the download is completed, disconnect from Internet.
3. Double-click at 'Windows.iso' file and run the 'Setup.exe' from the mounted drive.

To update Windows 10 from USB.
1. Download and run the Media Creation tool to create a USB Windows 10 installation media.
2. Disconnect from Internet.
3. Plug the USB media on your PC and run the 'Setup.exe' from the USB, to update your system.

That's it! Which method worked for you?
Let me know if this guide has helped you by leaving your comment about your experience. Please like and share this guide to help others.

If this article was useful for you, please consider supporting us by making a donation. Even $1 can a make a huge difference for us in our effort to continue to help others while keeping this site free:
If you want to stay constantly protected from malware threats, existing and future ones, we recommend that you install Malwarebytes Anti-Malware PRO by clicking below (we do earn a commision from sales generated from this link, but at no additional cost to you. We have experience with this software and we recommend it because it is helpful and useful):

Full household PC Protection - Protect up to 3 PCs with NEW Malwarebytes Anti-Malware Premium!

-->Second

Applies to

  • Windows 10

Note

This is a 300 level topic (moderately advanced).
See Resolve Windows 10 upgrade errors for a full list of topics in this article.

If a Windows 10 upgrade is not successful, it can be very helpful to understand when an error occurred in the upgrade process.

The Installation Failed In The Second Boot Phase With An Error During Sysprep_specialize

Briefly, the upgrade process consists of four phases that are controlled by Windows Setup: Downlevel, SafeOS, First boot, and Second boot. The computer will reboot once between each phase. Note: Progress is tracked in the registry during the upgrade process using the following key: HKLMSystemSetupmosetupvolatileSetupProgress. This key is volatile and only present during the upgrade process; it contains a binary value in the range 0-100.

These phases are explained in greater detail below. First, let's summarize the actions performed during each phase because this affects the type of errors that can be encountered.

  1. Downlevel phase: Because this phase runs on the source OS, upgrade errors are not typically seen. If you do encounter an error, ensure the source OS is stable. Also ensure the Windows setup source and the destination drive are accessible.

  2. SafeOS phase: Errors most commonly occur during this phase due to hardware issues, firmware issues, or non-microsoft disk encryption software.

    Since the computer is booted into Windows PE during the SafeOS phase, a useful troubleshooting technique is to boot into Windows PE using installation media. You can use the media creation tool to create bootable media, or you can use tools such as the Windows ADK, and then boot your device from this media to test for hardware and firmware compatibility issues.

    Tip

    If you attempt to use the media creation tool with a USB drive and this fails with error 0x80004005 - 0xa001a, this is because the USB drive is using GPT partition style. The tool requires that you use MBR partition style. You can use the DISKPART command to convert the USB drive from GPT to MBR. For more information, see Change a GUID Partition Table Disk into a Master Boot Record Disk.

    Do not proceed with the Windows 10 installation after booting from this media. This method can only be used to perform a clean install which will not migrate any of your apps and settings, and you will be required re-enter your Windows 10 license information.

    If the computer does not successfully boot into Windows PE using the media that you created, this is likely due to a hardware or firmware issue. Check with your hardware manufacturer and apply any recommended BIOS and firmware updates. If you are still unable to boot to installation media after applying updates, disconnect or replace legacy hardware.

    If the computer successfully boots into Windows PE, but you are not able to browse the system drive on the computer, it is possible that non-Microsoft disk encryption software is blocking your ability to perform a Windows 10 upgrade. Update or temporarily remove the disk encryption.

  3. First boot phase: Boot failures in this phase are relatively rare, and almost exclusively caused by device drivers. Disconnect all peripheral devices except for the mouse, keyboard, and display. Obtain and install updated device drivers, then retry the upgrade.

  4. Second boot phase: In this phase, the system is running under the target OS with new drivers. Boot failures are most commonly due to anti-virus software or filter drivers. Disconnect all peripheral devices except for the mouse, keyboard, and display. Obtain and install updated device drivers, temporarily uninstall anti-virus software, then retry the upgrade.

If the general troubleshooting techniques described above or the quick fixes detailed below do not resolve your issue, you can attempt to analyze log files and interpret upgrade error codes. You can also Submit Windows 10 upgrade errors using Feedback Hub so that Microsoft can diagnose your issue.

The Windows 10 upgrade process

The Windows Setup application is used to upgrade a computer to Windows 10, or to perform a clean installation. Windows Setup starts and restarts the computer, gathers information, copies files, and creates or adjusts configuration settings.

The Installation Failed In The Second Boot Phase With An Error During Migrate

When performing an operating system upgrade, Windows Setup uses phases described below. A reboot occurs between each of the phases. After the first reboot, the user interface will remain the same until the upgrade is completed. Percent progress is displayed and will advance as you move through each phase, reaching 100% at the end of the second boot phase.

  1. Downlevel phase: The downlevel phase is run within the previous operating system. Windows files are copied and installation components are gathered.

  2. Safe OS phase: A recovery partition is configured, Windows files are expanded, and updates are installed. An OS rollback is prepared if needed. Example error codes: 0x2000C, 0x20017.

  3. First boot phase: Initial settings are applied. Example error codes: 0x30018, 0x3000D.

  4. Second boot phase: Final settings are applied. This is also called the OOBE boot phase. Example error codes: 0x4000D, 0x40017.

    At the end of the second boot phase, the Welcome to Windows 10 screen is displayed, preferences are configured, and the Windows 10 sign-in prompt is displayed.

  5. Uninstall phase: This phase occurs if upgrade is unsuccessful (image not shown). Example error codes: 0x50000, 0x50015.

Figure 1: Phases of a successful Windows 10 upgrade (uninstall is not shown):

DU = Driver/device updates.
OOBE = Out of box experience.
WIM = Windows image (Microsoft)

Related topics

Installation Failed In Second Boot Phase

Windows 10 FAQ for IT professionals
Windows 10 Enterprise system requirements
Windows 10 Specifications
Windows 10 IT pro forums
Fix Windows Update errors by using the DISM or System Update Readiness tool