How to get the correct version, build info of a Windows ISO?

Discussion in 'Windows 10' started by cdavisdeco, May 12, 2023.

  1. boyonthebus

    boyonthebus MDL Expert

    Sep 16, 2018
    1,168
    753
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    upload_2023-5-14_22-55-51.png

    There's also the good old gimagex, that provides the needed info.
     
  3. cdavisdeco

    cdavisdeco MDL Senior Member

    Jul 8, 2015
    337
    63
    10
  4. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    Yep, not the clearest way to indicate what happens, but after all coders aren't normal human beings :D
     
  5. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,767
    7,700
    210
    They are creatures of the night, live in basements, and run on caffeine. What else do you need to know? :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,655
    103,351
    450
    Just install the bugger and check, will be faster.
     
  7. Tonho Dalua

    Tonho Dalua MDL Novice

    May 21, 2023
    13
    0
    0
    after mounting can it be converted to a reg file (registry), I've been looking for this treat but can't find a way, take the registry from the hive file sir
     
  8. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150

    What's wrong in file --> export?
     
  9. Tonho Dalua

    Tonho Dalua MDL Novice

    May 21, 2023
    13
    0
    0
    there is no problem with the file but I want to import it in the form of a reg file, so it's easy to apply on other windows, can you help teach me sir?
     
  10. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150

    Assuming we are talking of "system", mount the hive in, say 000 folder when asked

    You export something from the 000 key

    You get something like

    HKEY_LOCAL_MACHINE\000\blahblah\foo\bar

    To import on live system you need obviously

    HKEY_LOCAL_MACHINE\SYSTEM\blahblah\foo\bar

    So is pretty obvious that all you need is to replace

    \000\ with \System\

    Just use notepad ++ and do it
     
  11. Tonho Dalua

    Tonho Dalua MDL Novice

    May 21, 2023
    13
    0
    0
    how to mount it,use GimageX or use other tools, bro
     
  12. Tonho Dalua

    Tonho Dalua MDL Novice

    May 21, 2023
    13
    0
    0
    @acer-5100 coz i use toolkit msmg the result like this,but I'm confused where the results are located


    Loading Image Registry..

    [HKEY_LOCAL _MACHINE\TK_SOFTWARE]

    - >

    [HKEY_LOCAL_MACHINE \SOFTWARE]

    IHKEY LOCAL

    MACHINE\TK SOFTWARE\Classes)

    -> [HKEY_CLASSES_ROOT]

    THKEY LOCAL MACHINE\TK SYSTEMI

    [HKEY_LOCAL_MACHINE\SYSTEM]

    [HKEY LOCAL

    - LOCAL MACHINE\TK NTUSER].

    - 3

    [HKEY LOCAL MACHINE\TK DEFAULT]

    [HKEY CURRENT _USER]

    -

    [HKEY_USERS\.Default]

    Loading Image Registry Complete..…
     
  13. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    Well posting the keys with typos and /or messed up copy/paste doesn't help, use the code tag if you are unsure or you're using a crappy browser.

    Whatever


    In the first two examples
    is pretty obvious you need to replace

    HKEY_LOCAL_MACHINE\TK_SYSTEM with HKEY_LOCAL_MACHINE\SYSTEM

    and

    HKEY_LOCAL_MACHINE\TK_Software with HKEY_LOCAL_MACHINE\Software

    for the user I guess, you need to replace

    HKEY_LOCAL_MACHINE\TK_NTUSER

    with

    HKEY_CURRENT_USER\

    As the last one


    I guess you're talking about the default user registry.

    It's just a template for new users creation and is normally not mounted

    So you can mount C:\Users\Default\NTUSER.DAT in the same mount folder used by the original reg, hence you can leave the .reg unchanged.
     
  14. 12 lb Turkey

    12 lb Turkey MDL Member

    Nov 24, 2022
    120
    64
    10
    #34 12 lb Turkey, Jun 30, 2023
    Last edited: Jun 30, 2023
    I wrote a PowerShell wrapper script which does all the work using wimlib-imagex.exe & offlinereg.exe, and avoids the need for Admin rights, DISM or registry mounting. The script checks if both tools are in your path or the script's current path, and downloads them if required.

    To summarize the steps:
    1. wimlib-imagex info install.wim --extract-xml
    2. Parse XML to count how many images.
    Loop through images:
    3. wimlib-imagex extract --no-acls install.wim [index] /Windows/System32/config/SOFTWARE
    4. offlinereg SOFTWARE "Microsoft\Windows NT\CurrentVersion" enumallvalues
    5. Parse offlinereg output for the reg keys.

    Code:
    > CorrectVersion.bat \Releases\Win10_22H2_English_x64\sources\install.wim
    
    Index Name           Arch Edition      Version    DISM
    ----- ----           ---- -------      -------    ----
       1  Windows 10 Pro x64  Professional 19045.2006 19041.1889
    
    > CorrectVersion.bat \Releases\Win11_22H2_English_x64v2\sources\install.wim
    
    Index Name                              Arch Edition                  Version    DISM
    ----- ----                              ---- -------                  -------    ----
       1  Windows 11 Home                   x64  Core                     22621.1702 22621.1702
       2  Windows 11 Home N                 x64  CoreN                    22621.1702 22621.1702
       3  Windows 11 Home Single Language   x64  CoreSingleLanguage       22621.1702 22621.1702
       4  Windows 11 Education              x64  Education                22621.1702 22621.1702
       5  Windows 11 Education N            x64  EducationN               22621.1702 22621.1702
       6  Windows 11 Pro                    x64  Professional             22621.1702 22621.1702
       7  Windows 11 Pro N                  x64  ProfessionalN            22621.1702 22621.1702
       8  Windows 11 Pro Education          x64  ProfessionalEducation    22621.1702 22621.1702
       9  Windows 11 Pro Education N        x64  ProfessionalEducationN   22621.1702 22621.1702
      10  Windows 11 Pro for Workstations   x64  ProfessionalWorkstation  22621.1702 22621.1702
      11  Windows 11 Pro N for Workstations x64  ProfessionalWorkstationN 22621.1702 22621.1702
    
    
     

    Attached Files:

  15. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    I didn't know offlinereg, then i searched a bit and I got it.

    It's just another pearl from Nirsoft.

    Hardly any of its utilities is deluding
     
  16. 12 lb Turkey

    12 lb Turkey MDL Member

    Nov 24, 2022
    120
    64
    10
    I'm talking about Erwan L program, which UUP dump script downloads to their bin folder (except it's an old version).
     
  17. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    Yes I noticed that after posting.

    Whatever they likely do they same thing, I haven't had time to compare, yet.
     
  18. ohenry

    ohenry MDL Senior Member

    Aug 10, 2009
    435
    270
    10
    I played with your script, and it's working pretty well for me. I had troubles with the program automatically downloading and extracting wimlib and offlinereg, but once I did that manually, it works and provides useful information. Nice work!

    On edit: I am referring to the powershell script contained in CorrectVersion.bat
     
  19. 12 lb Turkey

    12 lb Turkey MDL Member

    Nov 24, 2022
    120
    64
    10
    Oops, my bad [editing error]. The problem was hidden by my script's attempt to cache any downloaded EXE's. I verified it works from an empty folder.
    Thanks for the report!
     
  20. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,566
    2,605
    60
    #40 freddie-o, Jul 1, 2023
    Last edited: Jul 2, 2023
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...