On attempting to apply the updates to a WIM, the image will not update stating Cannot find path as it's duplicating it twice.
02/07/2024 11:49:37 Information - Mounting source WIM D:\WIMWitch\Staging\Win11Pro-23H2-Feb24.wim
02/07/2024 11:49:37 Information - to mount point:
02/07/2024 11:49:37 Information - D:\WIMWitch\Mount
02/07/2024 11:52:03 Information - Language Packs Injection not selected. Skipping...
02/07/2024 11:52:03 Information - Local Experience Packs not selected. Skipping...
02/07/2024 11:52:03 Information - Features On Demand not selected. Skipping...
02/07/2024 11:52:03 Information - JSON not selected. Skipping JSON Injection
02/07/2024 11:52:03 Information - Drivers were not selected for injection. Skipping.
02/07/2024 11:52:03 Information - Default Application Association not selected. Skipping...
02/07/2024 11:52:03 Information - Start Menu Layout injection not selected. Skipping...
02/07/2024 11:52:03 Information - Registry file injection not selected. Skipping...
02/07/2024 11:52:03 Information - Applying D:\WIMWitch\updates\Windows 11\23H2\LCU\2024-01 Cumulative Update for Windows 11 Version 23H2 for x64-based Systems (KB5034123)
02/07/2024 11:52:03 Information - Windows 11 required LCU modification started...
02/07/2024 11:52:03 information - Copying LCU file to staging folder...
Get-ChildItem: D:\WIMWitch\WIMWitchFK.ps1:1338
Line |
1338 | $filename = (Get-ChildItem -Path $packagepath -Name)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot find path 'D:\WIMWitch\updates\Windows 11\23H2\LCU\D:\WIMWitch\updates\Windows 11\23H2\LCU\2024-01
| Cumulative Update for Windows 11 Version 23H2 for x64-based Systems (KB5034123)' because it does not exist.
Copy-Item: D:\WIMWitch\WIMWitchFK.ps1:1339
Line |
1339 | Copy-Item -Path $packagepath\$filename -Destination $PSScript …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot find path 'D:\WIMWitch\updates\Windows 11\23H2\LCU\D:\WIMWitch\updates\Windows 11\23H2\LCU\2024-01
| Cumulative Update for Windows 11 Version 23H2 for x64-based Systems (KB5034123)\' because it does not exist.
02/07/2024 11:52:03 information - Changing file extension type from CAB to MSU...
Rename-Item: D:\WIMWitch\WIMWitchFK.ps1:1344
Line |
1344 | Rename-Item -Path $PSScriptRoot\staging\$filename -NewName $n …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Access to the path 'D:\WIMWitch\Staging\' is denied.
02/07/2024 11:52:03 information - Applying LCU...
02/07/2024 11:52:03 information - D:\WIMWitch\staging\Staging.msu
Get-Item: D:\WIMWitch\WIMWitchFK.ps1:1348
Line |
1348 | $updatename = (Get-Item -Path $packagepath).name
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot find path 'D:\WIMWitch\updates\Windows 11\23H2\LCU\D:\WIMWitch\updates\Windows 11\23H2\LCU\2024-01
| Cumulative Update for Windows 11 Version 23H2 for x64-based Systems (KB5034123)' because it does not exist.
02/07/2024 11:52:03 Warning - Failed to apply update
02/07/2024 11:52:03 Warning - Cannot bind argument to parameter 'Data' because it is an empty string.
02/07/2024 11:52:03 Information - Applying D:\WIMWitch\updates\Windows 11\23H2\DotNetCU\2023-11 Cumulative Update for .NET Framework 3.5 4.8 and 4.8.1 for Windows 11 for x64 (KB5032340)
02/07/2024 11:52:07 Warning - Failed to apply update
02/07/2024 11:52:07 Warning - Invalid package path
02/07/2024 11:52:07 Information - Applying D:\WIMWitch\updates\Windows 11\23H2\DotNetCU\2023-11 Cumulative Update for .NET Framework 3.5 and 4.8.1 for Windows 11 version 23H2 for x64 (KB5032007)
02/07/2024 11:52:09 Warning - Failed to apply update
02/07/2024 11:52:09 Warning - Invalid package path
02/07/2024 11:52:09 Information - Applying D:\WIMWitch\updates\Windows 11\23H2\DotNetCU\2024-01 Cumulative Update for .NET Framework 3.5 4.8 and 4.8.1 for Windows 11 for x64 (KB5034276)
02/07/2024 11:52:11 Warning - Failed to apply update
02/07/2024 11:52:11 Warning - Invalid package path
02/07/2024 11:52:11 Information - Applying D:\WIMWitch\updates\Windows 11\23H2\DotNetCU\2024-01 Cumulative Update for .NET Framework 3.5 and 4.8.1 for Windows 11 version 23H2 for x64 (KB5033920)
02/07/2024 11:52:13 Warning - Failed to apply update
02/07/2024 11:52:13 Warning - Invalid package path
02/07/2024 11:52:13 Information - OneDrive agent update skipped as it was not selected
02/07/2024 11:52:13 Information - Starting AppX removal
02/07/2024 11:52:17 Information - Removing Microsoft.HEIFImageExtension_1.0.43012.0_x64__8wekyb3d8bbwe
02/07/2024 11:52:21 Information - Removing Microsoft.MicrosoftSolitaireCollection_4.12.3171.0_neutral_~_8wekyb3d8bbwe
02/07/2024 11:52:25 Information - Removing Microsoft.Xbox.TCUI_1.23.28004.0_neutral_~_8wekyb3d8bbwe
02/07/2024 11:52:29 Information - Removing Microsoft.XboxGameOverlay_1.47.2385.0_neutral_~_8wekyb3d8bbwe
02/07/2024 11:52:32 Information - Removing Microsoft.XboxGamingOverlay_2.622.3232.0_neutral_~_8wekyb3d8bbwe
02/07/2024 11:52:36 Information - Removing Microsoft.XboxIdentityProvider_12.50.6001.0_neutral_~_8wekyb3d8bbwe
02/07/2024 11:52:40 Information - Removing Microsoft.XboxSpeechToTextOverlay_1.17.29001.0_neutral_~_8wekyb3d8bbwe
02/07/2024 11:52:40 Information - Attempting to copy log to mounted image
02/07/2024 11:52:40 Information - Log filed copied successfully
02/07/2024 11:52:40 Information - Dismounting WIM file, committing changes
On attempting to apply the updates to a WIM, the image will not update stating Cannot find path as it's duplicating it twice.