BatchPatch Forums Home › Forums › BatchPatch Support Forum › Copy To Cache: Failed. HRESULT: -2147024894 for cached-mode and offline-mode
- This topic has 2 replies, 2 voices, and was last updated 1 year, 3 months ago by rongten.
-
AuthorPosts
-
September 4, 2023 at 2:36 pm #14091rongtenParticipant
Hello,
I am using the latest version of the utility (31/07/2023) to check if it can work for my use case where I have 2 laptops airgapped that need to receive updates.
I think the configuration is done correctly, I asked a colleague to double check, but there is an error when trying to apply the updates cached in a portable ssd.
When I tell the airgapped machine to download available updates, it finds one (KB5028185), but when I tell it to download and update, it encounter the error mentioned in the title:
::Begin copying files to Windows Update cache 1> 2023-07 Cumulative Update for Windows 11 Version 22H2 for x64-based Systems (KB5028185) 1> windows11.0-kb5028185-x64_8632835d0a4831e56e90f3efd8eac5f4b62b5bb1.psf :: Copy To Cache: Failed. HRESULT: -2147024894 ::End copying files to Windows Update cache
Here the log for “install downloaded updates”
BatchPatch v2023.7.30.13.48 aglenovo65 Windows Update Messages There are no updates available for installation - 14:53:33 Remote Agent Log AGLENOVO65 08/27/2023 14:50:53 ::Begin 'offline sync service' search The search query "SoftwareAndDrivers" returned 1 update(s): 1> 2023-07 Cumulative Update for Windows 11 Version 22H2 for x64-based Systems (KB5028185) (1277 MB) (2023-07-10) - Security Updates (Type-SoftwareUpdate | Downloaded-FALSE | RebootRequired-MAYBE) http://support.microsoft.com/kb/5028185 ::End search ::Begin filtering collection adding> 2023-07 Cumulative Update for Windows 11 Version 22H2 for x64-based Systems (KB5028185) ::End filtering collection There is 1 applicable update in the filtered collection ::Begin adding downloaded items to installer collection skipped> 2023-07 Cumulative Update for Windows 11 Version 22H2 for x64-based Systems (KB5028185) - Reason: Update not downloaded/cached ::End adding downloaded items to installer collection There are no updates available for installation AGLENOVO65 08/27/2023 14:53:31 All Messages 08/27 14:53:33> Windows Update: There are no updates available for installation 08/27 14:50:53> Windows Update: Executing BatchPatchRemoteAgent.exe... 08/27 14:50:53> Windows Update: Attempting to initiate Windows Update (Action: Install downloaded updates: 'SoftwareAndDrivers') ... 08/27 14:50:53> Windows Update: Establishing connection... 08/27 14:50:53> Windows Update: Initializing... 08/27 14:50:52> Windows Update: Queued... (Install downloaded updates) ----------------------------------------------------------------------------------------------------
Here the log for “download and install available updates”
BatchPatch v2023.7.30.13.48 aglenovo65 Windows Update Messages There are no updates available for installation - 15:02:14 Local Agent Log ::Begin download - 2023-08-27 14:56:52 Microsoft Offline Scan File 1> wsusscn2.cab :: Skipped: 'Do not download newest wsusscn2.cab if any version is already cached' setting is enabled ::End download - 2023-08-27 14:56:52 Files downloaded: 0 Files located in cache: 1 Files excluded by filter: 0 Files initiated by another row: 0 Failures: 0 ::Begin file copy operation - 2023-08-27 14:56:52 1> WsusScn2.cab :: File already exists in destination ::End file copy operation - 2023-08-27 14:56:52 ::Begin download - 2023-08-27 14:59:33 2023-07 Cumulative Update for Windows 11 Version 22H2 for x64-based Systems (KB5028185) 1> windows11.0-kb5028185-x64_8632835d0a4831e56e90f3efd8eac5f4b62b5bb1.psf :: Skipped: File already exists in cache ::End download - 2023-08-27 14:59:33 Files downloaded: 0 Files located in cache: 1 Files excluded by filter: 0 Files initiated by another row: 0 Failures: 0 ::Begin file copy operation - 2023-08-27 14:59:33 2023-07 Cumulative Update for Windows 11 Version 22H2 for x64-based Systems (KB5028185) 1> windows11.0-kb5028185-x64_8632835d0a4831e56e90f3efd8eac5f4b62b5bb1.psf :: Success ::End file copy operation - 2023-08-27 14:59:34 Files copied: 1 Files skipped: 0 Failures: 0 Remote Agent Log AGLENOVO65 08/27/2023 14:59:34 ::Begin 'offline sync service' search The search query "SoftwareAndDrivers" returned 1 update(s): 1> 2023-07 Cumulative Update for Windows 11 Version 22H2 for x64-based Systems (KB5028185) (1277 MB) (2023-07-10) - Security Updates (Type-SoftwareUpdate | Downloaded-FALSE | RebootRequired-MAYBE) http://support.microsoft.com/kb/5028185 ::End search ::Begin filtering collection adding> 2023-07 Cumulative Update for Windows 11 Version 22H2 for x64-based Systems (KB5028185) ::End filtering collection There is 1 applicable update in the filtered collection ::Begin copying files to Windows Update cache 1> 2023-07 Cumulative Update for Windows 11 Version 22H2 for x64-based Systems (KB5028185) 1> windows11.0-kb5028185-x64_8632835d0a4831e56e90f3efd8eac5f4b62b5bb1.psf :: Copy To Cache: Failed. HRESULT: -2147024894 ::End copying files to Windows Update cache ::Begin adding downloaded items to installer collection skipped> 2023-07 Cumulative Update for Windows 11 Version 22H2 for x64-based Systems (KB5028185) - Reason: Update not downloaded/cached ::End adding downloaded items to installer collection There are no updates available for installation AGLENOVO65 08/27/2023 15:02:11 All Messages 08/27 15:02:14> Windows Update: END (Offline mode: Download and install updates) 08/27 15:02:14> Windows Update: There are no updates available for installation 08/27 14:59:34> Windows Update: Executing BatchPatchRemoteAgent.exe... 08/27 14:59:34> Windows Update: Attempting to initiate Windows Update (Action: Copy files to Windows Update cache and install updates: 'SoftwareAndDrivers' | Server selection: Offline sync service) ... 08/27 14:59:34> Windows Update: Establishing connection... 08/27 14:59:34> Windows Update: Initializing... 08/27 14:59:34> Windows Update: File copy complete (Files copied: 1. Failures: 0) 08/27 14:59:33> Windows Update: Copying file(s) from local cache to target working directory... 08/27 14:59:33> Windows Update: Attempting to copy file(s) from local cache to target working directory... 08/27 14:59:33> Windows Update: Local download complete (Files downloaded: 0. Files located in cache: 1. Files excluded by filter: 0. Files initiated by another row: 0. Failures: 0) 08/27 14:59:33> Windows Update: Executing local downloader... 08/27 14:59:33> Windows Update: Queued local downloader... 08/27 14:59:33> Windows Update: 1 update(s) found 08/27 14:56:52> Windows Update: Executing BatchPatchRemoteAgent.exe... 08/27 14:56:52> Windows Update: Attempting to initiate Windows Update (Action: Search for updates and retrieve url list: 'SoftwareAndDrivers' | Server selection: Offline sync service) ... 08/27 14:56:52> Windows Update: Establishing connection... 08/27 14:56:52> Windows Update: Initializing... 08/27 14:56:52> Windows Update: WsusScn2.cab file copy complete 08/27 14:56:52> Windows Update: Copying WsusScn2.cab file from local cache to target working directory... 08/27 14:56:52> Windows Update: Queued WsusScn2.cab file copy from local cache to target working directory... 08/27 14:56:52> Windows Update: Initializing copy of WsusScn2.cab file from local cache to target working directory... 08/27 14:56:52> Windows Update: Local download complete (Files downloaded: 0. Files located in cache: 1. Files excluded by filter: 0. Files initiated by another row: 0. Failures: 0) 08/27 14:56:52> Windows Update: Executing WsusScn2.cab downloader... 08/27 14:56:52> Windows Update: Queued WsusScn2.cab downloader... 08/27 14:56:52> Windows Update: BEGIN (Offline mode: Download and install updates) 08/27 14:56:52> Windows Update: Queued... 08/27 14:53:33> Windows Update: There are no updates available for installation 08/27 14:50:53> Windows Update: Executing BatchPatchRemoteAgent.exe... 08/27 14:50:53> Windows Update: Attempting to initiate Windows Update (Action: Install downloaded updates: 'SoftwareAndDrivers') ... 08/27 14:50:53> Windows Update: Establishing connection... 08/27 14:50:53> Windows Update: Initializing... 08/27 14:50:52> Windows Update: Queued... (Install downloaded updates) ----------------------------------------------------------------------------------------------------
I would like to license the tool but at least first I would like to see it working as intended…
Regards
September 4, 2023 at 2:45 pm #14094dougModeratorMicrosoft made some changes recently that broke BatchPatch cached mode for Windows 11, specifically for certain types of Windows 11 updates– the ones that end in .psf and the ones that end in .wim, which will generally be the large cumulative monthly updates. We do not currently have a way to fix this, as the issue is in the Windows Update API itself, so Microsoft has to address it. Cached mode in Windows 10 also has a different but similar issue that Microsoft introduced some time ago. We do not know if/when Microsoft will address this for either Windows 10 or Windows 11.
To work around the problem, you can either enable online/non-cached mode in BatchPatch if the target computer has access to a WSUS or to Microsoft’s Windows Update servers, OR if the target computer does not have access to a WSUS or to Microsoft’s Windows Update servers you can instead just manually download the .msu version of the desired update directly from the Windows Update catalog at https://www.catalog.update.microsoft.com
Then when you have the .msu update file you can deploy that update to the air-gapped machines using BatchPatch’s ‘Deploy’ feature.
September 11, 2023 at 2:43 am #14114rongtenParticipantOk, thanks. I will try and see if past this hurdle I can use batchpatch normally before purchasing a subscription.
-
AuthorPosts
- You must be logged in to reply to this topic.