Which Windows Version is on my USB Stick
Guide on how to determine which version, edition, and build of Windows is on a bootable USB stick or ISO file.
Why Check?
If you have multiple USB drives lying around, it's hard to tell which one has Windows 10, Windows 11, or which specific build (e.g., 22H2 vs 23H2) is present.
The Command: DISM
We can use the Deployment Image Servicing and Management (DISM) tool built into Windows.
Step 1: Locate the Install File
- Plug in your USB stick.
- Open it in File Explorer.
- Go to the sources folder on the USB stick.
- Look for a large file named
install.wimORinstall.esd.- Note the drive letter (e.g.,
D:) and the exact path.
- Note the drive letter (e.g.,
Step 2: Run DISM Command
- Open Command Prompt or PowerShell as Administrator.
- Run the following command (replace
D:\sources\install.wimwith your actual path):
For .wim files:
dism /Get-WimInfo /WimFile:D:\sources\install.wim
For .esd files:
dism /Get-WimInfo /WimFile:D:\sources\install.esd
Step 3: Interpret Output
The command will list all "Indices" (Editions) contained inside the image. Look for:
- Index: The number (1, 2, 3...)
- Name: The Edition (e.g., Windows 10 Pro)
- Version: The internal kernel version (e.g.,
10.0.19045) - ServicePack Build: The build number.
Common Build Numbers
| Build Number | Windows Version | Update Name |
|---|---|---|
| 22631 | Windows 11 | 23H2 |
| 22621 | Windows 11 | 22H2 |
| 22000 | Windows 11 | 21H2 |
| 19045 | Windows 10 | 22H2 |
| 19044 | Windows 10 | 21H2 |
Alternative: PowerShell
You can also use a PowerShell one-liner if you prefer:
Get-WindowsImage -ImagePath "D:\sources\install.wim"