Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»Windows»How to Clear Windows Update Cache?

How to Clear Windows Update Cache?

NizzBy NizzDecember 12, 2022
clear-windows-update-cache

While updating, Windows downloads a ton of temporary files that help to download and install OS updates conveniently. These temporary files or update cache are stored within the SystemDistribution folder.

With time these cache files may pile up to use a lot of space within your disk. Moreover, large cache files may get corrupted, resulting in laggy performance, crashing desktop, etc.

But Windows doesn’t have the feature of auto-deleting such Update cache files. So, this article shall help you to manually clear Windows Update Cache. 

Table of Contents

  • Clear Windows Update Cache
    • Step 1: Stop Services
    • Step 2: Delete Cache Files
  • How to Reset Windows Update?

Clear Windows Update Cache

Clearing the Windows update cache includes stopping the Windows Update service and then deleting the cache files. The steps for doing each have been detailed below:

Step 1: Stop Services

The Windows update service constantly uses the files within the Windows Update Cache folders. So, if you head to delete them directly, you will receive ‘file in use’ prompt and won’t be able to delete them. Therefore, you will have to stop the update service first by following the steps below: 

  1. Press Windows + R to open Run.
  2. To open the Services utility, type services.msc and Hit Enter.
    Enter-services-.msc-and-then-press-Enter.
  3. Locate Windows Update.
  4. Right-click on it and Select Stop to stop the service.
    Right-click-on-it-and-Select-Stop-to-stop-the-service.

Step 2: Delete Cache Files

Now, you can move toward the SoftwareDistribution folder, which holds all the temporary files used to download and install Windows Update. 

  1. Press Windows + E to open File Explorer.
  2. Copy and paste C:\Windows\SoftwareDistribution in the address bar.
    Copy-and-paste-C-Windows-SoftwareDistribution-in-the-address-bar.
  3. Press Ctrl + A to select all contents and press Shift + Del keys to permanently delete them.
  4. Click Yes on the permanent deletion confirmation prompt.
    Click-Yes-on-the-permanent-deletion-confirmation-prompt.
  5. Hit Continue if admin permission is asked.

After deleting the folders, you can restart the stopped services by following the same steps; just pick Start instead of Stop on the 4th step.

How to Reset Windows Update?

Sometimes Windows updates may fail due to incorrectly downloaded update files. In such a case, you can reset the update components and start the updating process all over again. 

To reset the Windows Update component, you will have to go through the same steps but have to stop more services and delete more folders. If your update process fails or shows trouble, you can follow the steps to delete all the Windows update components by running commands:    

  1. Open Run with Windows + R.
  2. Type cmd, and press Ctrl + Shift + Enter to open Command Prompt.
    Type-cmd-and-hit-Ctrl-+-Shift-+-Enter-to-open-Command-Prompt-in-admin
  3. Click Yes to give it admin rights.
  4. Run the following command first to stop the services:
    • net stop wuauserv -To stop Windows Update
      To-stop-Windows-Update
    • net stop cryptsvc -To stop Cryptographic Service
      To-stop-Cryptographic-Service
    • net stop bits -To stop Background Intelligent Transfer Service
      to-stop-Background-Intelligent-Transfer-Service
    • net stop appidsvc -To stop Application Identity
      to-stop-Application-Identity
  1. Execute the following to delete the cache folder:
    • rmdir %systemroot%\SoftwareDistribution /S /Q -to delete SoftwareDistribution folder.
    • rmdir %systemroot%\system32\catroot2 /S /Q -to delete catroot2 folder.
  2. Now, to restart those services and register bits/windows update files, run the following:
     net start wuauserv net start cryptsvc net bits net appidsvc Del “%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat” cd /d %windir%\system32 regsvr32.exe atl.dll regsvr32.exe urlmon.dll regsvr32.exe mshtml.dll regsvr32.exe shdocvw.dll regsvr32.exe browseui.dll regsvr32.exe jscript.dll regsvr32.exe vbscript.dll regsvr32.exe scrrun.dll regsvr32.exe msxml.dll regsvr32.exe msxml3.dll regsvr32.exe msxml6.dll regsvr32.exe actxprxy.dll regsvr32.exe softpub.dll regsvr32.exe wintrust.dll regsvr32.exe dssenh.dll regsvr32.exe rsaenh.dll regsvr32.exe gpkcsp.dll regsvr32.exe sccbase.dll regsvr32.exe slbcsp.dll regsvr32.exe cryptdlg.dll regsvr32.exe oleaut32.dll regsvr32.exe ole32.dll regsvr32.exe shell32.dll regsvr32.exe initpki.dll regsvr32.exe wuapi.dll regsvr32.exe wuaueng.dll regsvr32.exe wuaueng1.dll regsvr32.exe wucltui.dll regsvr32.exe wups.dll regsvr32.exe wups2.dll regsvr32.exe wuweb.dll regsvr32.exe qmgr.dll regsvr32.exe qmgrprxy.dll regsvr32.exe wucltux.dll regsvr32.exe muweb.dll regsvr32.exe wuwebv.dll
    Execute-the-following-to-delete-the-cache-folder

Now, you can restart the Update process from the beginning and expect it to go smoothly.

Alternatively, you can rename the folders in order to make them inaccessible to Windows and will save the already downloaded files for further use cases. Doing so will also make sure the update components get redownloaded when required.

The process will be same as above, you will just have to replace the 5th step commands with the command mentioned below to rename folders

  • ren %systemroot%\SoftwareDistribution SoftwareDistributionOld
  • ren %systemroot%\system32\catroot2 catroot2old
how-to
Nizz

Nizz is a self-learning web developer and a keen follower of all things tech. He has always been fascinated by the latest gadgets and innovations, and loves to keep up with the latest trends.

Related Posts

how to delete win backup files

How to Delete Backup Files on Windows

January 29, 2023
how to reset password on hp laptop

How to Reset Password on HP Laptop

January 29, 2023
Reset BIOS password

4 Ways to Reset BIOS Password

January 28, 2023
how to make windows 11 look like windows 10

How to Make Windows 11 Look Like Windows 10

January 25, 2023
how to find hidden folder in laptop

How to Find Hidden Folder in Laptop

January 24, 2023
mouse not showing in chrome

Mouse Not Showing in Chrome? Here’s How to Fix It

January 25, 2023
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
how long does a cmos battery last

How Long Does a CMOS Battery Last

January 25, 2023
thunderbolt vs usb c

Thunderbolt Vs USB C: What’s the Difference

January 25, 2023
how to find hidden folder in laptop

How to Find Hidden Folder in Laptop

January 24, 2023
You may also like
how-to-connect-headphones-to-tv

5 Ways to Connect Headphones to TV

January 29, 2023
connect-airpods-to-samsung-tv

How to Connect AirPods to Samsung TV? (Step-by-Step Guide)

January 29, 2023
AIO Pump Not Working

AIO Pump Not Working? Here’s How to Fix It

January 29, 2023
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Our Team
  • Editorial Guidelines
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday.

Type above and press Enter to search. Press Esc to cancel.