To upgrade Windows via Patch Management Solution, it requires the correct ISO media for the whole process to be successful. It also requires the correct Windows version, as well as the language code to make sure language and version of the ISO match fully what's installed in the endpoint.
If an incorrect ISO is used then the install will fail with various errors.
While ISO name can include the OS version, many times the language code or architecture can be different than what's installed in the environment and because of that the install/upgrade will fail.
Complete the step-by-step instructions below to figure out the build number, architecture, and language code of OS on the endpoint and the ISO being used for the upgrade.
1. Open an elevated command prompt
2. Enter the following command and press Enter:
dism /online /get-intl3. Enter the following command and press enter to find OS name, version, and architecture
systeminfo | findstr /B /i /C:"OS Name" /C:"OS Version" /C:"System Type"1. Right-click on ISO and click on Mount (or double-click on ISO to do the same). Make sure ISO's are associated to open with Windows Explorer, not some other software, otherwise the ISO will not mount. If it's associated to open with some other software, change the association to Windows Explorer.
2. Go to "My Computer/This PC" and will see mounted ISO as a new drive
3. Navigate/open that new drive and navigate to Sources folder.
4. Find file named Install. It can be either Install.WIM or Install.ESD. Note the extension of the file and the drive letter.
5. Check which versions of OS this ISO has before querying it for more information. Depending on the ISO file, it might be single OS version or multiple.
dism /Get-WimInfo /WimFile:E:\sources\install.wim6. In the command prompt enter the following command:
NOTE: replace “E:\sources\install.wim” with the actual path to the install.WIM OR ESD file.
dism /Get-WimInfo /WimFile:<E:\sources>\install.wim /index:ENTER INDEX NUMBER TO GET DETAILSUse this command if there is an install.wim file.
Or
dism /Get-WimInfo /WimFile:<E:\sources>\install.esd /index:ENTER INDEX NUMBER TO GET DETAILSUse the above command if there is an install.esd file in the ISO.
7. Upon getting this information, go back to "My Computer/This PC", right click on mounted ISO and click on Eject to unmount the ISO.