Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Windows 10 / Find Windows Version, Edition, and Build from ISO or WIM file

December 29, 2021 PowerShellWindows 10Windows 11Windows Server 2022

Find Windows Version, Edition, and Build from ISO or WIM file

In this article, we’ll show how to use DISM and PowerShell to find out which Windows images (versions, editions, builds, language pack) are stored in ISO or WIM files. If an ISO file name doesn’t contain a version and a build, it is hard to know which version of Windows is inside. Then it will be easier to mount the ISO file with a Windows installation image and get this information from the install.wim file.

Right-click the ISO image and select Mount.

mount iso image in windows

You will see a window with the contents of the virtual disk a Windows ISO image is mounted to. Open the Sources directory and find an installation file with a Windows image. The file is called install and may have one of the following extensions:

  • install.wim
  • install.esd
  • install.swm
WIM is a standard format of Windows installation image. ESD is a compressed image file. SWM is used if you want to split a large WIM image into several files with the size of 4 GB or less so that they fit on the FAT32 file system if you create an installation USB flash drive.

Press and hold SHIFT, right-click install.xxx and copy the path to the file by selecting Copy as path.

copy install.esd file path

Start the command prompt as administrator and run the following command (use the path from the clipboard as a file path):

DISM /Get-WimInfo /WimFile:"D:\sources\install.esd"

You will see a list of editions (Education, Home, Enterprise, Pro, etc.) available in this Windows ISO image. In our example, you can install 8 different Windows editions from this image. Each edition has an index you can use to get detailed information about the image.

DISM /Get-WimInfo : Multiple Windows 10 versions and editions in one WIM file

You can remove editions you don’t need from the WIM image file by following this guide.

To get information about the Windows version (build) and available languages in the WIM/ESD file in the image with the index 6, run the command below:

DISM /Get-WimInfo /WimFile:"D:\sources\install.esd" /index:6

How to find the Windows 10 version number using the ISO file?

In our example, we have found out that it is Windows 10 2004 Professional (Version: 10.0.19041) with an English (en-US) language pack available in the installation image under index 6.

You can also get all information about Windows versions and editions in an ISO file using a simple PowerShell script.

Specify a path to the ISO file:

$imagePath = "C:\iso\WindowsServer_RTM.iso"

Mount the ISO image:

$Report = @()
$beforeMount = (Get-Volume).DriveLetter
$mountResult = Mount-DiskImage $imagePath -PassThru
$afterMount = (Get-Volume).DriveLetter
$ImageDrive= "$(($afterMount -join '').replace(($beforeMount -join ''), '')):"

You will get a drive letter where the image is mounted (the drive letter is assigned automatically, if not, check how to fix it here).

Then get the information about Windows versions in install.wim or install.esd:

$WinImages = Get-windowsimage -ImagePath "$ImageDrive\sources\install.wim”
Foreach ($WinImage in $WinImages)
{
$curImage=Get-WindowsImage -ImagePath "$ImageDrive\sources\install.wim” -Index $WinImage.ImageIndex
$objImage = [PSCustomObject]@{
ImageIndex = $curImage.ImageIndex
ImageName = $curImage.ImageName
Version = $curImage.Version
Languages=$curImage.Languages
Architecture =$curImage.Architecture
}
$Report += $objImage
}

Unmount the ISO image:

Dismount-DiskImage $mountResult.ImagePath
You can display the result in the Out-GridView table:
$Report  | Out-GridView

How to get OS Build number in Windows ISO image using PowerShell?
As a result, we got a handy list of Windows images in the ISO file and their versions. In our example, Windows Server 2022 Evaluation was in the ISO.

0 comment
0
Facebook Twitter Google + Pinterest
previous post
Managing Mailbox and Folder Permissions in Exchange and Microsoft 365
next post
Using DISM to Check and Repair Windows Image

Related Reading

Create Organizational Units (OU) Structure in Active Directory...

May 17, 2022

Windows Security Won’t Open or Shows a Blank...

May 17, 2022

How to Manually Install Windows Updates from CAB...

May 16, 2022

RDS and RemoteApp Performance Issues on Windows Server...

May 16, 2022

Enable or Disable MFA for Users in Azure/Microsoft...

April 27, 2022

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows 7
  • Windows Server 2019
  • Windows Server 2016
  • Windows Server 2012 R2
  • PowerShell
  • VMWare
  • Hyper-V
  • MS Office

Recent Posts

  • Create Organizational Units (OU) Structure in Active Directory with PowerShell

    May 17, 2022
  • Windows Security Won’t Open or Shows a Blank Screen on Windows 10/ 11

    May 17, 2022
  • How to Manually Install Windows Updates from CAB and MSU Files?

    May 16, 2022
  • RDS and RemoteApp Performance Issues on Windows Server 2019/2016

    May 16, 2022
  • Deploying Software (MSI Packages) Using Group Policy

    May 12, 2022
  • Updating VMware ESXi Host from the Command Line

    May 11, 2022
  • Enable or Disable MFA for Users in Azure/Microsoft 365

    April 27, 2022
  • Fix: You’ll Need a New App to Open This Windows Defender Link

    April 27, 2022
  • How to Reset an Active Directory User Password with PowerShell and ADUC?

    April 27, 2022
  • How to Completely Uninstall Previous Versions of Office with Removal Scripts?

    April 26, 2022

Follow us

woshub.com

ad

  • Facebook
  • Twitter
  • RSS
Popular Posts
  • Installing RSAT Administration Tools on Windows 10 and 11
  • Get-ADUser: Find Active Directory User Info with PowerShell
  • How to Hide Installed Programs in Windows 10 and 11?
  • Manage Windows Updates with PSWindowsUpdate PowerShell Module
  • How to Find the Source of Account Lockouts in Active Directory domain?
  • Tracking and Analyzing Remote Desktop Connection Logs in Windows
  • How to Create a UEFI Bootable USB Drive to Install Windows 10 or 7?
Footer Logo

@2014 - 2018 - Windows OS Hub. All about operating systems for sysadmins


Back To Top