OSDeploy / OSD

OSD Shared Functions
MIT License
130 stars 54 forks source link

Windows 11 23H2 Get-WindowsImage: The data is invalid #136

Closed BMerner closed 2 months ago

BMerner commented 2 months ago

When using OSDCloud to install Windows11 23H2 - OSD cloud errors the installation. Using the default OSDCloudGUI. I've tested using Pro, Enterprise, Volume/retail. en-us, en-GB. the outcome is the same.

When the script runs the Get-WindowsImage it returns erro data is invalid, which then in turn makes the subsequent commands fail.

The same media and process works fine if choosing a Windows 10 installation. I've tested the install on multiple devices both physical and virtual. This is a new OSD workspace, using the default options.

In order to troubleshoot, I setup a new system and re-provisioned OSD and recreated the USB/ISO same issue occurs.

Screenshots IMG_8682

BMerner commented 2 months ago

Sorry forgot to mention 22H2 Windows 11 Installs fine also, its specifically 23H2.

gwblok commented 2 months ago

if I was a betting man, I'd guess your downloads are getting messed up along the way and you're not actually getting the correct download.

Do me a favor, grab that ESD file, place it on your Flash Drive, then do a hash check on it.

I just ran OSDCloud on my VM, and all was well

The OSDCloud ESD file catalog contains the SHA1 Hash How to get the recorded Hash for the specific ESD file:

$OS = Get-OSDCloudOperatingSystems
$Test = $OS | Where-Object {$_.Name -match "Windows 11 23H2" -and $_.Architecture -eq 'x64' -and $_.Language -eq "en-us" -and $_.Activation -eq "Retail"}

$Hash = $Test.SHA1

image

Then you can grab the SHA1 has from the ESD file you downloaded

Get-FileHash $ImagePath -Algorithm SHA1

Thanks, it sure seems like there is something that is breaking your downloads.

BMerner commented 2 months ago

Looks like you should place that bet! I setup a clean usb on another network and the 11 23H2 install worked fine, how odd that just that file download is having issues on my network. Thanks for feeding back.