Windows: Installing a Windows Update manually hangs on "Copying packages to the update cache"

I recently had a Windows 2016 server that could not install automatic updates. It always hang at some percentage and would never finish. The next step was to try to install an update (.msu file) manually. But this always hung forever at "Copying packages to the update cache".

Here is what helped me:

Start a cmd box as Administrator

Run the following commands:

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

del /f /q "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat" 
del /f /s /q %SystemRoot%\SoftwareDistribution\*.*  
del /f /s /q %SystemRoot%\system32\catroot2\*.* 
del /f /q %SystemRoot%\WindowsUpdate.log

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

This will clear the Windows Update cache and the automatic updates should work again.

Update: Some readers have commented that if the Windows Update Service (wuauserv) does not stop, kill it in Task Manager:

Look in the Services tab of Task Manager, find the PID (process ID) for Windows Update Service, then do:

taskkill /f /pid 1234

from an admin command prompt, where 1234 is the PID you found.

27 thoughts on “Windows: Installing a Windows Update manually hangs on "Copying packages to the update cache"”

  1. I encountered the same issue when trying to manually install a Windows update. It was frustrating to see it hang on "Copying packages to the update cache." I followed your troubleshooting steps, and clearing the SoftwareDistribution folder really helped! Thanks for the tips!

Leave a Reply

Your email address will not be published. Required fields are marked *