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.

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

  1. I was in the same boat as Tim below me. These steps got me unstuck. Appreciate this post saving me time!

  2. Really helpful. Needed this to fix an issue caused by Feb 2021 patches for the servicing stack that broken Server 2016 updates. Thanks.

Leave a Reply

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