I have a Windows 10 InstallUSB and I'd like to know which version of Windows 10 it is. Searching online, I found this technique in many places, with the file [install.<esd||swm||wim>, boot.wim] varying:
dism /Get-WimInfo /WimFile:"F:\sources\install.esd" /Index:1
- Without
/Index, it lists each edition [image], eg, Home, Pro, etc, available in the file, but not the version - Index
1always exists, with often higher indexes available as well
WinHelpOnline reports that sometimes DISM reports the wrong WIM/ESD version because the WIM header information is wrong.
I think this is happening with me since I just downloaded Windows 10 21H2, created an InstallUSB, and the above command returned Version : 10.0.19041 which is v2004 according to Wikipedia.
- I notice this is the last version of the format YYMM, as it switched to YYHN ["H" for "half"] right after that with 20H2 (maybe the WIM version is stuck at 19041?)
Does anybody know any other way of extracting the version information, short of installing it?
install.<esd||wim>(usually the former since ESD's compression ratio is 33% more efficient than WIM's, allowing for it to remain <4GB in size). Theboot.wimis the WinPE boot image and.swmare only ever found on OEM recovery partitions (unsure why they're still used since there is no file size limit for recovery partitions -.swm's are split-WIMs at a certain size, often 4GB). Each index is a separate image, as ESDs/WIMs are smart compression file formats (I cover them here). – JW0914 Jun 16 '22 at 03:55