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

Installing a fr-ca image fails due to mismatching image index #17

Open coveowlebel opened 2 years ago

coveowlebel commented 2 years ago

Installing a fr-ca image on a machine fails due to mismatching image index. Looks like the scripts makes assumptions that the Pro index number is always 8 but in the fr-ca image, it is 6.

=========================================================================
2022-10-05-100150
Download Operating System
http://b1.download.windowsupdate.com/d/upgr/2021/11/19044.1288.211006-0501.21h2_release_svc_refresh_clientbusiness_vol_x64fre_fr-ca_8e98f138beee3ba8f9d742d27d3e1804158c40b0.esd
=========================================================================
2022-10-05-100657
Validate WindowsImage Index

ImageIndex ImageName
---------- ---------
         4 Windows 10 Éducation
         5 Windows 10 Entreprise
         6 Windows 10 Professionnel

=========================================================================
2022-10-05-100658
Expand-WindowsImage
ApplyPath: 'C:\'
ImagePath: C:\OSDCloud\OS\19044.1288.211006-0501.21h2_release_svc_refresh_CLIENTBUSINESS_VOL_x64FRE_fr-ca.esd
Index: 8
ScratchDirectory: 'C:\OSDCloud\Temp'
Creating ScratchDirectory C:\OSDCloud\Temp
PS>TerminatingError(Expand-WindowsImage): "Value does not fall within the expected range."
Expand-WindowsImage : Value does not fall within the expected range.
At X:\Program Files\WindowsPowerShell\Modules\OSD\22.9.21.1\Public\OSDCloud.ps1:944 char:9
+         Expand-WindowsImage @ExpandWindowsImage
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Expand-WindowsImage], ArgumentException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.ExpandWindowsImageCommand
Expand-WindowsImage : Value does not fall within the expected range.
At X:\Program Files\WindowsPowerShell\Modules\OSD\22.9.21.1\Public\OSDCloud.ps1:944 char:9
+         Expand-WindowsImage @ExpandWindowsImage
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Expand-WindowsImage], ArgumentException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.ExpandWindowsImageCommand