Find out Windows version from an ISO file

So we download a lot of .ISO file from various sources. I needed to install Windows 10 x64 Pro and was having trouble identifying which was which from the different versions I had been testing. This was important to me because I needed to know if it was Retail, VL, or MSDN. This should work for Vista and up, basically any windows that has WIM files within.

First you will need to mount the ISO file to a computer so you can browse it. Then open up a command prompt as administrator and run the following command.

dism /Get-WimInfo /WimFile:I:\sources\install.wim /index:1

(I is the drive letter for the mounted ISO file)

Here is an example of the output from the command for a Windows 10 Pro ISO.

Microsoft Windows [Version 10.0.10240]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\Windows\system32>dism /Get-WimInfo /WimFile:I:\x64\sources\install.wim /index:1

Deployment Image Servicing and Management tool
Version: 10.0.10240.16384

Details for image : I:\x64\sources\install.wim

Index : 1
Name : Windows 10 Pro
Description : Windows 10 Pro
Size : 13,880,679,832 bytes
WIM Bootable : No
Architecture : x64
Hal : acpiapic
Version : 10.0.10240
ServicePack Build : 16384
ServicePack Level : 0
Edition : Professional
Installation : Client
ProductType : WinNT
ProductSuite : Terminal Server
System Root : WINDOWS
Directories : 19767
Files : 101280
Created : 9/10/2015 - 12:35:28 AM
Modified : 10/18/2015 - 8:16:08 PM
Languages :
        en-US (Default)

The operation completed successfully.