How to Fix 0x800700B7 (Windows Update)
Quick Answer
Error 0x800700B7, "Cannot create a file when that file already exists," typically indicates a conflict during a Windows Update process where the system attempts to create a file that already exists, often due to corrupted update components or conflicting software. The fastest fix often involves restarting Windows Update services and clearing the update cache.
What Causes This Error
- Corrupted Windows Update components or files.
- Interference from third-party antivirus software or firewalls.
- Insufficient disk space on the system drive.
- Incorrect system date and time settings.
- Conflicts with previously failed or partially installed updates.
- Issues with the SoftwareDistribution folder where update files are stored.
Step-by-Step Fixes
1Restart Windows Update Components and Clear Cache
- Open Command Prompt as an administrator. To do this, type "cmd" in the Windows search bar, right-click on "Command Prompt," and select "Run as administrator."
- Stop the BITS, Cryptographic, MSI Installer, and Windows Update Services by typing the following commands one by one, pressing Enter after each: "net stop bits", "net stop cryptSvc", "net stop msiserver", "net stop wuauserv".
- Rename the SoftwareDistribution and Catroot2 folders. Type the following commands one by one, pressing Enter after each: "ren C:\Windows\SoftwareDistribution SoftwareDistribution.old", "ren C:\Windows\System32\catroot2 Catroot2.old". These folders store update files and their metadata.
- Restart the BITS, Cryptographic, MSI Installer, and Windows Update Services by typing the following commands one by one, pressing Enter after each: "net start bits", "net start cryptSvc", "net start msiserver", "net start wuauserv".
- Close Command Prompt and attempt to run Windows Update again.
2Run the Windows Update Troubleshooter
- Open the Settings application. This can be done by clicking the Start button and then the gear icon, or by pressing Windows Key + I.
- Navigate to "Update & Security" (or "System" > "Troubleshoot" on Windows 11).
- Select "Troubleshoot" from the left-hand menu, then click on "Additional troubleshooters" (or "Other troubleshooters" on Windows 11).
- Locate and click on "Windows Update," then select "Run the troubleshooter."
- Follow the on-screen instructions and apply any recommended fixes. After the troubleshooter completes, restart your computer and try Windows Update again.
3Check System Date and Time Settings
- Right-click on the clock in the system tray (bottom-right corner of the screen) and select "Adjust date/time."
- Ensure that "Set time automatically" and "Set time zone automatically" are both toggled to "On."
- If these options are already on, toggle them off and then back on. Click "Sync now" under "Synchronize your clock" to force a time synchronization.
- Close the Settings window and attempt to run Windows Update again.
4Disable Third-Party Antivirus Software Temporarily
- Locate your antivirus software icon in the system tray (usually near the clock) or search for it in the Start menu.
- Right-click on the antivirus icon and look for options like "Disable," "Pause protection," or "Exit."
- Select the option to temporarily disable or pause the antivirus protection. Choose the shortest duration available (e.g., 10 minutes or until restart).
- Attempt to run Windows Update. If the update proceeds, re-enable your antivirus software immediately after the update completes.
- If disabling the antivirus resolves the issue, consider adding an exception for Windows Update processes in your antivirus settings or contacting your antivirus vendor for further assistance.
Advanced Fixes
Perform a System File Checker (SFC) Scan
- Open Command Prompt as an administrator. Type "cmd" in the Windows search bar, right-click on "Command Prompt," and select "Run as administrator."
- Type "sfc /scannow" and press Enter. This command will scan for and attempt to repair corrupted system files.
- Allow the scan to complete. This process may take some time. Do not close the Command Prompt window until the verification is 100% complete.
- Once the scan is finished, you will see a message indicating if any integrity violations were found and if they were repaired. Restart your computer.
- After the restart, attempt to run Windows Update again.
Use the DISM Tool to Repair Windows Image
- Open Command Prompt as an administrator. Type "cmd" in the Windows search bar, right-click on "Command Prompt," and select "Run as administrator."
- Type "DISM /Online /Cleanup-Image /RestoreHealth" and press Enter. This command uses Windows Update to provide files required to fix corruptions.
- Allow the process to complete. This may take several minutes. Do not close the Command Prompt window until the operation is 100% complete.
- After the DISM tool finishes, restart your computer.
- Attempt to run Windows Update again.
Frequently Asked Questions
What does error 0x800700B7 specifically mean for Windows Update?
Error 0x800700B7, accompanied by the message "Cannot create a file when that file already exists," indicates that during the Windows Update process, the system is trying to create a new file but a file with the same name or path already exists. This typically points to a conflict or corruption within the update components or the update's target directory.
Is it safe to delete the SoftwareDistribution folder?
Yes, it is generally safe to rename or delete the SoftwareDistribution folder. This folder stores temporary files needed for Windows Update. When renamed or deleted, Windows Update will recreate it and re-download necessary components. This action often resolves issues caused by corrupted update files within that folder.
Will fixing 0x800700B7 affect my installed programs or data?
The fixes provided for error 0x800700B7 primarily target Windows Update components and system files. They are designed to resolve the update issue without affecting your installed programs, personal files, or data. However, it is always recommended to have a backup of important data before performing any system-level troubleshooting.
How can I prevent error 0x800700B7 from recurring?
To minimize the recurrence of error 0x800700B7, ensure your system's date and time are always synchronized, maintain sufficient free disk space, keep your third-party antivirus software updated and configured correctly to not interfere with Windows Update, and regularly run system maintenance tools like the Disk Cleanup utility.