Fix: Potential Windows Update Database Error Detected

Handling Windows updates is always going to be an adventure a couple of people go through without having to go through several issues and errors. A plenty of people simply ignore these updates until Windows actually forces you to download them or until you face an app which only runs on the latest installment of windows.

A lot of different errors may appear while you deal with these updates and the fixes tend to be difficult to find and you never know what exactly is causing the issue until you try several alternatives.

Database Error during Windows Update

The error message stating “Potential Windows update database error detected” can appear during several different processes regarding Windows update. First of all, it can appear while simply updating Windows to a newer version. Apart from that, it can occur when you select several other functions such as “Repair Windows Update” or similar. You may encounter several different codes or no code at all but the solution to each of them is the same.

This may look quite frustrating to people who struggle to go through with the update after several months of delaying only to be faced with an error message saying something went wrong. There are several solutions to the issue and you may have to try all of them to end up happy with the end product.

Repair Corrupt System Files

Download and run Restoro to scan for corrupt files from here, if files are found to be corrupt and missing repair them and then check if it still gets stuck, if it is then try the Solutions listed below.

Solution 1: Use the SFC Scan

The solution to this problem suggested by Microsoft helped an unusual amount of people, unlike their other solutions which looks almost automated. Try this out before doing anything else. The SFC stands for System File checker and it checks your computer for faulty or corrupt system files and it automatically repairs them.

  1. Enter “Command Prompt” in your Search box, right click on the icon and select “Run as administrator.
  2. Type “sfc/scannow” and press Enter.
  3. The process should begin and automatically fix faulty files.
Running SFC

Solution 2: Use the DISM Tool

DISM stands for Deployment Image Servicing and Management and it’s a tool which can be used to repair and service Windows images. This is also recommended by Microsoft as it can automatically fix certain issues.

  1. Run the Command Prompt as Administrator as described in Solution 1.
  2. There are two separate commands you need to use in order to complete the process:
DISM.exe /Online /Cleanup-image /scanhealth

DISM.exe /Online /Cleanup-image /Restorehealth
  1. You will have to wait for a certain amount of time for the process to finish but DON’T cancel it yourself in any way.

Solution 3: Resetting the Windows Update Components Manually

This process is somewhat more advanced and it means that you will manually reset the entire update utility and start the updating process from scratch. Follow the instructions below very carefully.

  1. Run the Command Prompt as Administrator as described in the solutions above.
  2. You can use the following commands in order to stop the processes Windows Update Services, MSI Installer, BITS, and Cryptographic.
net stop wuauserv

net stop cryptSvc

net stop bits

net stop msiserver
  1. You need to rename two folders, SoftwareDistribution and Catroot2. You can try to find them yourself but it’s definitely easier just to copy the commands below. You can see the location of these files in the command if you want to rename them manually.
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old

ren C:\Windows\System32\catroot2 Catroot2.old
  1. It’s time to start the processes we ended in the Step 2 by using the following commands:
net start wuauserv

net start cryptSvc

net start bits

net start msiserver
  1. It’s time to reboot your PC and proceed with Windows Update once again.

Solution 4: Using the Windows Update Troubleshooter.

Windows comes with a pre-installed troubleshooter designed to deal with similar issues and it can definitely help once you are out of other options.

  1. Open Control Panel >> Troubleshooting >> System and Security >>Fix problems with Windows Update.
  2. Follow the instructions on screen.
Locating the troubleshooter in Control Panel

Solution 5: Deleting Some Folders

  1. Locate C:\Windows\SoftwareDistribution\Download and delete everything you find inside.
  2. Open C:\Windows\SoftwareDistribution and delete the Download.old file you see.
  3. The update should start without issues.

Solution 6: Doing a Windows Reset

After other solutions fail, your last bet may be to simply reinstall Windows without using any files because you can do that with Windows 10. First of all, you will need a USB or a DVD to download the Windows 10 installation too. You can download it here.

  1. Load the DVD or the USB drive you use as Windows installation media and start your computer.
  2. Select Troubleshoot from the Choose an option screen and click on Advanced Options.
  3. Select Reset this PC and Keep My Files.

Solution 7: Using an Automated Script to Reset Windows Update Services.

If the steps in Solution 3 sounded too complicated, you can always use this script and achieve even better results because there are some features not included in the Solution 3.

  1. Download the script for Windows 10 build 10240 and later from here and for users running Windows 7,8.0 or 8.1 from here
  2. Locate it in the Downloads folder, right-click, and select Extract.
  3. Right-click on the WuReset.bat file after the extraction and run it as administrator.
  4. Restart the PC after the process finishes and the “Task completed successfully message pops up.

 

Kamil Anwar
Kamil is a certified MCITP, CCNA (W), CCNA (S) and a former British Computer Society Member with over 9 years of experience Configuring, Deploying and Managing Switches, Firewalls and Domain Controllers also an old-school still active on FreeNode.

Expert Tip

Fix: Potential Windows Update Database Error Detected

If the issue is with your Computer or a Laptop you should try using Restoro which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. You can download Restoro by clicking the Download button below.

Download Now

I'm not interested