{"id":1835,"date":"2014-09-24T16:47:06","date_gmt":"2014-09-24T20:47:06","guid":{"rendered":"http:\/\/batchpatch.com\/?p=1835"},"modified":"2022-03-17T17:16:55","modified_gmt":"2022-03-17T21:16:55","slug":"using-batchpatch-in-cached-mode","status":"publish","type":"post","link":"https:\/\/batchpatch.com\/using-batchpatch-in-cached-mode","title":{"rendered":"Using BatchPatch in &#8216;Cached Mode&#8217;"},"content":{"rendered":"<p>When <em>cached mode<\/em> is enabled, the computer that is running BatchPatch will download updates for all target computers directly to its local cache directory. Target computers will <em>not<\/em> individually download their own updates from Microsoft or a WSUS.  Instead BatchPatch will distribute updates to target computers from its cache.  The advantage of <em>cached mode<\/em> in this case is that it can save internet bandwidth if updates are being downloaded from Microsoft&#8217;s public server.  The reason for the bandwidth savings is because BatchPatch will download only one copy of each update, which it can then distribute infinitely to target computers, rather than needing every single target computer to download its own copy of each available update.  <\/p>\n<p><em>Cached mode<\/em> can also be used in conjunction with <em>offline mode<\/em>, which enables an administrator to apply Windows Updates to computers that don&#8217;t have internet access or access to a managed update server such as WSUS.  For more on <em>&#8216;cached mode&#8217;<\/em> and <em>&#8216;offline mode&#8217;<\/em> usage, please see: <a href=\"\/cached-mode-and-offline-updates\">Cached Mode and Offline Updates<\/a><\/p>\n<p>This tutorial demonstrates how to use BatchPatch in <em>cached mode<\/em> to download and install updates on multiple computers.  In this example all computers are required to have internet access.  The computer that runs BatchPatch will instruct all target computers to perform an online search for updates.  The list of available updates from each target computer is transferred back to the BatchPatch computer, and then BatchPatch downloads a single copy of all available updates to its local repository.  After it downloads the updates, it copies them to the target computers and initiates the installation process.<\/p>\n<ol>\n<li>Enable <em>cached mode<\/em>.  Go to <strong><em>Tools > Settings > Windows Update<\/em><\/strong>, and then check the box to enable cached mode.  Also set the <em>Local update cache directory<\/em> to a folder on your computer that has enough free space to store numerous Windows Update files.  The amount of space required completely depends on how many updates need to be applied to target computers, the size of each update, the number of different operating systems you are deploying to, and whether or not you choose to retain cached files after they have been distributed to target computers.  When cached mode has been enabled, an indicator is placed in the upper-right corner of the BatchPatch window.<br \/>\n<a href=\"\/wp-content\/uploads\/2014\/09\/BatchPatchToolsSettingsWindowsUpdateCachedMode.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2014\/09\/BatchPatchToolsSettingsWindowsUpdateCachedMode.png\" alt=\"BatchPatchToolsSettingsWindowsUpdateCachedMode\" width=\"664\" height=\"631\" class=\"aligncenter size-full wp-image-1843\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/09\/BatchPatchToolsSettingsWindowsUpdateCachedMode.png 664w, https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/09\/BatchPatchToolsSettingsWindowsUpdateCachedMode-300x285.png 300w\" sizes=\"auto, (max-width: 664px) 100vw, 664px\" \/><\/a>\n<\/li>\n<p><\/p>\n<li>In the same <strong><em>Tools > Settings > Windows Update<\/em><\/strong> window, also take note of the <em>Server Selection<\/em> option.  When <em>cached mode<\/em> is enabled but <em>offline mode<\/em> is disabled, target hosts will perform an online search for updates against the selected server.  The target hosts will then report back to BatchPatch with their lists of available updates.  BatchPatch will then download the updates from the same location that is configured in the <em>Server Selection<\/em> setting.<\/li>\n<p><\/p>\n<li>Add hosts to the BatchPatch grid using <em><strong>File > Add hosts&#8230;<\/strong><\/em><br \/>\n<a href=\"\/wp-content\/uploads\/2014\/09\/BatchPatchAddHostsCachedMode.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2014\/09\/BatchPatchAddHostsCachedMode.png\" alt=\"BatchPatchAddHostsCachedMode\" width=\"663\" height=\"417\" class=\"aligncenter size-full wp-image-1841\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/09\/BatchPatchAddHostsCachedMode.png 663w, https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/09\/BatchPatchAddHostsCachedMode-300x188.png 300w\" sizes=\"auto, (max-width: 663px) 100vw, 663px\" \/><\/a>\n<\/li>\n<p><\/p>\n<li>Highlight the host(s) and select the desired action.  For the sake of this example let&#8217;s assume we want to download and install updates and then reboot the target if a reboot is required to complete the updates installation.  So, we select <strong><em>Actions > Windows Updates > Download and install updates + reboot if required<\/em><\/strong><br \/>\n<a href=\"\/wp-content\/uploads\/2014\/09\/BatchPatchDownloadAndInstallUpdatesCachedModeMenuItem.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2014\/09\/BatchPatchDownloadAndInstallUpdatesCachedModeMenuItem.png\" alt=\"BatchPatchDownloadAndInstallUpdatesCachedModeMenuItem\" width=\"805\" height=\"972\" class=\"aligncenter size-full wp-image-1842\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/09\/BatchPatchDownloadAndInstallUpdatesCachedModeMenuItem.png 805w, https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/09\/BatchPatchDownloadAndInstallUpdatesCachedModeMenuItem-248x300.png 248w\" sizes=\"auto, (max-width: 805px) 100vw, 805px\" \/><\/a>\n<\/li>\n<p><\/p>\n<li>I have included a series of screenshots below to show the whole process.  Upon completion we have the overall content logged to the &#8216;All Messages&#8217; column, with detailed information in the &#8216;Local Agent&#8217; and &#8216;Remote Agent&#8217; logs.  In this case the local agent was responsible for downloading updates to the cache directory and then copying the updates to the target machine.  The remote agent was responsible for moving the updates into the Windows Update cache and then installing the updates on the target host.  In the final screenshot below we can see the &#8216;All Messages&#8217; log content.  I have not included screenshots of the other local or remote agent logs simply because they are too large to view in a meaningful way within a small screenshot.<br \/>\n<a href=\"\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeSearching.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeSearching.png\" alt=\"BatchPatchCachedModeSearching\" width=\"863\" height=\"417\" class=\"aligncenter size-full wp-image-1852\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeSearching.png 863w, https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeSearching-300x144.png 300w\" sizes=\"auto, (max-width: 863px) 100vw, 863px\" \/><\/a><br \/>\n<a href=\"\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeDownloading.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeDownloading.png\" alt=\"BatchPatchCachedModeDownloading\" width=\"863\" height=\"417\" class=\"aligncenter size-full wp-image-1851\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeDownloading.png 863w, https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeDownloading-300x144.png 300w\" sizes=\"auto, (max-width: 863px) 100vw, 863px\" \/><\/a><br \/>\n<a href=\"\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeCopying.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeCopying-1024x385.png\" alt=\"BatchPatchCachedModeCopying\" width=\"540\" height=\"203\" class=\"aligncenter size-large wp-image-1850\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeCopying-1024x385.png 1024w, https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeCopying-300x113.png 300w, https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeCopying.png 1107w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/a><br \/>\n<a href=\"\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeCaching.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeCaching-1024x385.png\" alt=\"BatchPatchCachedModeCaching\" width=\"540\" height=\"203\" class=\"aligncenter size-large wp-image-1849\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeCaching-1024x385.png 1024w, https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeCaching-300x113.png 300w, https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeCaching.png 1107w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/a><br \/>\n<a href=\"\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeInstalling.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeInstalling-1024x385.png\" alt=\"BatchPatchCachedModeInstalling\" width=\"540\" height=\"203\" class=\"aligncenter size-large wp-image-1848\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeInstalling-1024x385.png 1024w, https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeInstalling-300x113.png 300w, https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeInstalling.png 1107w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/a><br \/>\n<a href=\"\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeDownloadInstallRebootAllMessagesLog.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeDownloadInstallRebootAllMessagesLog-1024x375.png\" alt=\"BatchPatchCachedModeDownloadInstallRebootAllMessagesLog\" width=\"540\" height=\"197\" class=\"aligncenter size-large wp-image-1845\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeDownloadInstallRebootAllMessagesLog-1024x375.png 1024w, https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeDownloadInstallRebootAllMessagesLog-300x110.png 300w, https:\/\/batchpatch.com\/wp-content\/uploads\/2014\/09\/BatchPatchCachedModeDownloadInstallRebootAllMessagesLog.png 1281w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/a>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>When cached mode is enabled, the computer that is running BatchPatch will download updates for all target computers directly to its local cache directory. Target computers will not individually download their own updates from Microsoft or a WSUS. Instead BatchPatch will distribute updates to target computers from its cache. The advantage of cached mode in [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1,17,3],"tags":[82,83,19,10,20],"class_list":["post-1835","post","type-post","status-publish","format-standard","hentry","category-blog","category-general","category-tutorials","tag-cached-mode","tag-offline-updates","tag-remote-windows-update","tag-windows-updates","tag-wsus-alternative"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/posts\/1835","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/comments?post=1835"}],"version-history":[{"count":12,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/posts\/1835\/revisions"}],"predecessor-version":[{"id":5836,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/posts\/1835\/revisions\/5836"}],"wp:attachment":[{"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/media?parent=1835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/categories?post=1835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/tags?post=1835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}