FacebookTwitterLinkedIn

Fix Windows Update Error 0xc19001e2

7 Ways to Fix Windows Update Error 0xC19001e2 in Windows 10

If you're getting error 0xC19001e2 when trying to update Windows 10, it may be because a pre-install script failed to execute. Luckily, you can fix this error using one or several of our proposed fixes.

Error 0xC19001e2

What is Windows Update Error 0xC19001e2?

Error 0xC19001e2 is also known as error MOSETUP_E_PREINSTALL_SCRIPT_FAILED, and it's an error code that occurs when a pre-install script fails to execute or returns an error. The pre-install script may not run due to a Windows Update glitch or corrupted system files.

Many users got this error when trying to update Windows 10 to version 1903 and later version 1909. So many got messages saying "Feature Update to Windows 10, Version 1903 – Error 0xC19001e2" and "There was a problem running pre-install.cmd scripts."

Users often get this error when installing Windows 10 Insider Preview updates. Sometimes the update installation can reach 100%, then stall and result in error 0xC19001e2.

Windows users recently started getting error 0xC19001e2 when updating Windows 10 from version 2004 to version 20H2 (October 2020 update.) So, many people got a message saying, "Feature Update to Windows 10, Version 20H2 – Error 0xc19001e2."

Video Guide on How to Fix Windows Update Error 0xc19001e2

Table of Contents:

Solution 1. Run Windows Update Troubleshooter

Right-click Start and click Settings

1. Right-click the Start Menu button and click Settings.

Click Update & Security

2. Go to Update & Security.

Select Troubleshoot

3. Select Troubleshoot in the left pane.

Click Additional troubleshooters

4. Then, click Additional troubleshooters.

Select Windows Update and click Run the troubleshooter

5. Choose Windows Update and then click Run the troubleshooter.

6. The troubleshooter will identify the issues and apply fixes automatically.

[Back to Table of Contents]

Solution 2. Perform Disk Cleanup

1. Hold down Windows+R keys to open Run.

Type in cleanmgr in Run and click OK

2. In the Run dialog box, type in cleanmgr and click OK.

Click Clean up system files

3. Click Clean Up System Files.

Select the locatios of files to be deleted and click OK

4. Mark the checkboxes of the locations you want to be cleaned and click OK.

Click Delete files

5. Click Delete Files.

6. Wait for the unnecessary files to be deleted.

[Back to Table of Contents]

Solution 3. Clear Windows Update Cache Folder

1. Hold down Windows+R keys to open Run.

Type in CMD in Run and hold down Ctrl+Shift+Enter keys to open elevated Command Prompt

2. In the Run dialog box, type in CMD and hold down Ctrl+Shift+Enter keys to open the elevated Command Prompt.

Run the command to clear the SoftwareDistribution folder

3. In the Command Prompt window, type in net stop wuauserv and press the Enter key.

4. Then, type in rd /s /q %systemroot%\SoftwareDistribution and press Enter.

5. Type in net start wuauserv and press Enter.

6. Close the Command Prompt.

[Back to Table of Contents]

Solution 4. Run the Deployment Imaging and Servicing Management (DISM) Scan

1. Hold down Windows+R keys to open Run.

Type in CMD in Run and hold down Ctrl+Shift+Enter keys to open elevated Command Prompt

2. In the Run dialog box, type in CMD and hold down Ctrl+Shift+Enter keys to open the elevated Command Prompt.

Run DISM ScanHealth and RestoreHealth commands

3. In the Command Prompt window, type in DISM /Online /Cleanup-Image /ScanHealth and press the Enter key.

4. Then, type in DISM /Online /Cleanup-Image /RestoreHealth and press Enter.

5. Close the Command Prompt and restart your PC.

[Back to Table of Contents]

Solution 5. Run the System File Checker (SFC) Scan

1. Hold down Windows+R keys to open Run.

Type in CMD in Run and hold down Ctrl+Shift+Enter keys to open elevated Command Prompt

2. In the Run dialog box, type in CMD and hold down Ctrl+Shift+Enter keys to open the elevated Command Prompt.

Run the SFC /ScanNow command

3. In the Command Prompt window, type in SFC /ScanNow and press the Enter key.

4. Then, close the Command Prompt and restart your PC.

[Back to Table of Contents]

Solution 6. Reset Windows Update Components

1. Hold down Windows+R keys to open Run.

Type in CMD in Run and hold down Ctrl+Shift+Enter keys to open elevated Command Prompt

2. In the Run dialog box, type in CMD and hold down Ctrl+Shift+Enter keys to open the elevated Command Prompt.

Stop Windows Update services and rename SoftwareDistribution and CatRoot2 folders

3. In the Command Prompt window, type in the commands below, and press the Enter key after entering each one:

  • net stop wuauserv
  • net stop cryptSvc
  • net stop bits
  • net stop msiserver

4. Then, type in ren C:\Windows\SoftwareDistribution SoftwareDistribution.old and press Enter.

5. Type in ren C:\Windows\System32\catroot2 Catroot2.old and press Enter.

Restart Windows Update services

6. Type in the commands listed below, and press Enter after entering each one:

  • net start wuauserv
  • net start cryptSvc
  • net start bits
  • net start msiserver

7. Close the Command Prompt

[Back to Table of Contents]

Solution 7. Update Windows 10 Using Media Creation Tool

Go to the Media Creation Tool download page

1. Open your web browser and go to the Media Creation Tool download page.

Click Download tool now

2. Click the Download tool now button to get the Media Creation Tool.

3. Once downloaded, run the Media Creation Tool (MediaCreationTool21H1.exe) executable file.

Accept the Media Creation Tool license agreement

4. Accept the license agreement.

Click Upgrade this PC now

5. Select Upgrade this PC now and click Next.

Accpet the Windows 10 license agreement

6. Then, Accept the Windows 10 license agreement.

Click Change what to keep

7. You may keep your personal files and apps, but if you want a clean Windows 10 installation, click the Change what to keep button to customize the installation settings.

Customize the instalaltion settings and click Next

8. Click Next.

Click Install

9. Click Install, and the setup will begin upgrading Windows 10.

[Back to Top]

▼ Show Discussion

About the author:

Rimvydas Iliavicius

Rimvydas is a researcher with over four years of experience in the cybersecurity industry. He attended Kaunas University of Technology and graduated with a Master's degree in Translation and Localization of Technical texts. His interests in computers and technology led him to become a versatile author in the IT industry. At PCrisk, he's responsible for writing in-depth how-to articles for Microsoft Windows. Contact Rimvydas Iliavicius.

Our guides are free. However, if you want to support us you can send us a donation.

About PCrisk

PCrisk is a cyber security portal, informing Internet users about the latest digital threats. Our content is provided by security experts and professional malware researchers. Read more about us.

Malware activity

Global malware activity level today:

Medium threat activity

Increased attack rate of infections detected within the last 24 hours.