[BUG] Unsupported Image Build [19042]
After running Start-Optimize.ps1 from an elevated PowerShell the following message returns:
Copying WIM from "S:\W10UI\DVD\sources" WARNING: Unsupported Image Build: [19042]
- Image Name: Windows 10 Pro
- Image Build: 19042
- Host Environment: Windows 10 Pro
Integrated 2020-10 updates into image from official 20H2 ISO with W10UI first, including Enablement Package (20H2). According to the changelog build 19042 should be supported. What am I missing here?
This is by no means a final solution but a workaround that worked for me. Open Optimize-Offline.psm1 in your favorite text editor and go down to about line 240:
If ($InstallInfo.Build -ge '17134' -and $InstallInfo.Build -le '19041')
Just remove the latter half and make it read:
If ($InstallInfo.Build -ge '17134')
Or, if you're paranoid, comment out the above top line and make a copy of the bottom line, like this:
# If ($InstallInfo.Build -ge '17134' -and $InstallInfo.Build -le '19041')
If ($InstallInfo.Build -ge '17134')
(final edit) Or, just change 19041 to 19042.
Save and launch O-O again.
Thanks @strotee, that works like a charm as a workaround.
Some additional information with a new release of O-O, the PowerShell file is listed along with line # for what should be changed (credit goes to drew84 at MDL):
\Optimize-Offline-4.0.1.7\Optimize-Offline.psm1
- Line 240 If (" " -and $InstallInfo.Build -ge '19041') changed from -le '19041')
- Line 450 If ($InstallInfo.Build -ge '19041') changed from -eq '19041')
- Line 493 If ($InstallInfo.Build -ge '19041') changed from -eq '19041')
- Line 613 If ($InstallInfo.Build -ge '19041') changed from -lt '19041')
\Optimize-Offline-4.0.1.7\Src\Public\Set-RegistryProperties.ps1
- Line 239 If (" " -ge '17763' -and $InstallInfo.Build -ge '19041') changed from -lt '19041')
- Line 247 If ($InstallInfo.Build -eq '19042' etc. etc) changed from -eq '19041')
\Optimize-Offline-4.0.1.7\Content\Additional\Setup\Set-Additional.ps1
-Line 184 If ($Build -ge 19041 and etc. etc) changed from -eq '19041')