OSDeploy / OSDCloud

OSDCloud is a process to fully deploy a Windows OS from a WinPE Environment
https://osdcloud.osdeploy.com
63 stars 14 forks source link

Expand-WindowsImage failing with 0x80131515 error #4

Open BaddMann opened 3 years ago

BaddMann commented 3 years ago

The ESD looks to be correct. I've made sure I'm on the latest edition of OSDCloud. This is showing the enterprise edition, but was seeing it for home as well. Tried running the command itself, and same issue, guessing DISM import is my issue, don't know how to dig deeper. 2021-04-28-141912-Deploy-OSDCloud.log 20210428_142147

2021-04-28-141912 Download OSDCloud ImageFile
http://b1.download.windowsupdate.com/c/upgr/2020/12/19042.631.201119-0144.20h2_release_svc_refresh_clientbusiness_vol_x64fre_en-us_9e261a6444c5fe1167d49c4d150488d6a7abed46.esd
ImageFileTarget: C:\OSDCloud\OS\19042.631.201119-0144.20h2_release_svc_refresh_CLIENTBUSINESS_VOL_x64FRE_en-us.esd
=========================================================================
2021-04-28-142145 Expand-WindowsImage
Expand-WindowsImage -ApplyPath 'C:\' -ImagePath C:\OSDCloud\OS\19042.631.201119-0144.20h2_release_svc_refresh_CLIENTBUSINESS_VOL_x64FRE_en-us.esd -Index 6 -ScratchDirectory 'C:\OSDCloud\Temp'
PS>TerminatingError(Import-Module): "Could not load file or assembly 'file:///X:\windows\system32\WindowsPowerShell\v1.0\Modules\Dism\Microsoft.Dism.PowerShell.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)"
Expand-WindowsImage : The 'Expand-WindowsImage' command was found in the module 'Dism', but the module could not be loaded. For more information, run 'Import-Module Dism'.
At X:\Program Files\WindowsPowerShell\Modules\OSD\21.4.23.1\Public\OSDCloud\Invoke-OSDCloud.ps1:428 char:13
+             Expand-WindowsImage -ApplyPath 'C:\' -ImagePath $OSDCloud ...
+             ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Expand-WindowsImage:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule
Failure when attempting to copy boot files.
=========================================================================
OSDeploy commented 3 years ago

This was an issue with WinPE and can be resolved by rebuilding the Template with a new WinPE