- Documentation
- WuInstall
Caching Options
/install_cache "\\server\share\cache"
⚠️ Please read before you use the shared cache: it only works for classic update packages (
.msu,.cab,.exe) — for example the Malicious Software Removal Tool or .NET Framework updates. The monthly cumulative updates of current Windows versions come from Windows Update as express or UUP content: before the download, Windows Update lists either no usable download files for them or thousands of UUP files with a download size of many GB, so they cannot be placed in the share and are downloaded on every machine. Microsoft's way of sharing update content within a network is Delivery Optimization (peer-to-peer within the LAN, configured by Group Policy or Intune) or a WSUS — use those to save bandwidth with cumulative updates. Test the shared cache with your updates before you rely on it.Not supported by Microsoft: the shared cache is built on the Windows Update API methods
IUpdate2::CopyToCache(/install_cache,/download_cache) andIUpdate::CopyFromCache(/download_to). Microsoft does not recommend or support using these methods to move downloaded updates from one computer to another: Windows Update often downloads only the parts of an update a particular machine needs, so files taken from another machine may not match and are then rejected — see IUpdate2::CopyToCache on Microsoft Learn. When that happens, WuInstall falls back to the normal Windows Update download.
Keeps the files of classic update packages in a shared directory, typically a network share. The first machine that needs an update downloads it into the share; other machines then load it from there instead of downloading it again.
How it works:
- WuInstall runs the standard search (same criteria and filters as
/search) - For each update in the result list, WuInstall checks the cache directory for a subfolder named after the update's ID (for a bundle: one subfolder per bundled update)
- Not in cache → downloads the update files from WSUS or Windows Update directly into the cache directory, then copies them from there to the local update cache
- Found in cache → copies directly from the shared cache to the local update cache, skipping the internet download entirely
- Cache copy fails → the cache subdirectory is deleted (assumed corrupt) and the update is downloaded into the cache again; in WuInstall 3, an update that still cannot be loaded from the cache takes the normal Windows Update download
- Updates are installed after the cache/download step completes
Example — first machine (cache miss), WuInstall 3 on Windows Server 2019:
wuinstall /install_cache "P:\updates_cache"
Checking cache for update: Windows Malicious Software Removal Tool x64 - v5.146 (KB890830)
Update Windows Malicious Software Removal Tool - v5.146 (KB890830) Multi-Lingual - v5 full not found in cache directory P:\updates_cache\4141d04e-2b8d-4bb6-8819-06a4e8b2a680
Update bundle not found, downloading...
Copying downloads directly ... (1 files)
Bundle File #0: downloading http://download.windowsupdate.com/.../windows-kb890830-x64-v5.146_....exe -> P:\updates_cache\4141d04e-...\windows-kb890830-x64-v5.146_....exe ... OK
Download OK
Checking cache again...
Update Windows Malicious Software Removal Tool - v5.146 (KB890830) Multi-Lingual - v5 full found in cache directory, copying to local cache
OK
Example — next machine (cache hit):
Checking cache for update: Windows Malicious Software Removal Tool x64 - v5.146 (KB890830)
Update Windows Malicious Software Removal Tool - v5.146 (KB890830) Multi-Lingual - v5 full found in cache directory, copying to local cache
OK
The second machine downloads nothing from WSUS or Windows Update (only the search still contacts them) — the update is served entirely from the local network share.
Example — cumulative update, not cached:
Checking cache for update: 2026-09 Cumulative Update for Windows Server 2019 (1809) for x64-based Systems (KB5122876)
Shared cache skipped, not cacheable: download size 17996 MB exceeds the shared-cache limit of 10240 MB - falling back to the normal Windows Update download
The cumulative update is downloaded by every machine from WSUS or Windows Update itself; the shared cache does not help with it (use Delivery Optimization or WSUS, see the note at the top).
Which updates WuInstall 3 does not cache — they take the normal Windows Update download, and the log says why (Shared cache skipped, not cacheable: ...):
- UUP/Delivery Optimization content, such as the Windows 11 24H2/25H2 cumulative updates from Windows Update
- updates that consist of express (delta) fragments only
- updates with more than 100 files or a download size of more than 10 GB — this includes the cumulative update of Windows Server 2019 from Windows Update, for which Windows reports a download size of about 18 GB
- updates that do not fit into the free space of the share or the temp directory (1 GB is kept in reserve)
Any other problem with the cache — an unreachable or read-only share, a missing directory, files that Windows refuses — is reported in the log, and the update is downloaded normally; WuInstall never creates the cache directory.
WuInstall 2.9.x tried to pull all updates through the share, including the content above. That could take hours or fill the disk, and an update that could not be placed in the cache could still be handed to the installer and fail there. If you use the shared cache, use WuInstall 3 — it is still in beta, so test it with your updates first.
/download_cache "\\server\share\cache"
Identical to /install_cache but stops after the download and cache population step — updates are not installed. Useful for pre-populating the cache before a rollout, so all machines get cache hits from the start — for classic update packages only; cumulative updates are not cached (see above).
/nocachedel
By default, if copying an update from the shared cache fails, WuInstall deletes the cache subdirectory for that update and re-downloads it. Specifying /nocachedel suppresses this deletion, leaving the cache directory intact on error. From WuInstall 3.0.4 on, a download into the cache is written to a folder of its own and put in place only when it is complete, so a failed download never removes an existing entry; in WuInstall 2.9.x and 3.0.0 to 3.0.3, a subdirectory whose download into the cache failed is removed even with /nocachedel.
Use in combination with /install_cache or /download_cache.
⚠️ Do not set
/tempdirto the cache directory: WuInstall copies each cache entry to the temp directory and deletes that copy afterwards, so WuInstall 2.9.x up to 3.0.1 deleted the shared entries themselves. From 3.0.2 on, WuInstall skips the shared cache in that case and downloads normally.
/clearlocalcache
Clears the local Windows Update download cache (/clear_localcache is the same switch):
%SystemRoot%\SoftwareDistribution\Download
Useful for freeing disk space or forcing a clean re-download of all pending updates. WuInstall stops the BITS and Windows Update services while it deletes the folder and starts them again afterwards.
👉 See also: How do I clear the local Windows Update cache with WuInstall?