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

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

  1. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    #41 acer-5100, Jul 1, 2023
    Last edited: Jul 1, 2023
  2. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,566
    2,605
    60
    Both scripts get the WIM info which the thread is about
    So I shared the scripts I use to get that info and so far they have worked for me
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    #43 acer-5100, Jul 1, 2023
    Last edited: Jul 1, 2023
    I don't want to sound pedantic, but

    That's not even on the title of the thread.

    Wim info and correct build info (which the tread is about) are usually in sync, but may happen they aren't.

    upload_2023-7-1_10-45-13.png

    They came from different places, wims may not contain an OS at all.

    Think to an ISO and it's label, you can label the W11 media as XP Pro, if you use a command that parses the ISO metadata you get XP Pro, which is a CORRECT info, but is very likely not what you want to know.
     
  4. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,566
    2,605
    60
    You are
    The scenario here is using UUP dump to create an ISO then simply checking the version and build afterwards
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    #45 acer-5100, Jul 1, 2023
    Last edited: Jul 1, 2023
    The scenario is that UUP dump can fail or have bugs and/or regressions, like everything else.

    Perhaps UUPdump has nothing to do with what the OP asked.

    What about reading the first couple of messages?
     
  6. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,566
    2,605
    60
    #46 freddie-o, Jul 2, 2023
    Last edited: Jul 2, 2023


     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. 12 lb Turkey

    12 lb Turkey MDL Member

    Nov 24, 2022
    120
    64
    10
    What you're not grasping is the reported version (from WIM) is often misleading, even for official MS ISO's.

    Don't believe it? Get W10 22H2 ISO from Software Downloads, it self-identifies as 19041 to both DISM & wim-imagelib since they both trust the WIM's data. It's known that 19042 thru 19045 ISO's all report as "19041". There's another problem where W11 pretends it's "10" instead of 11 for the major release.

    Depending solely on the high-level data, instead of inspecting the image's content will lead you to errors.

    20H2 v2 ISO:
    Code:
    Index Name                              Arch Edition                  Version   DISM
    ----- ----                              ---- -------                  -------   ----
       1  Windows 10 Home                   x64  Core                     19042.631 19041.631
       2  Windows 10 Home N                 x64  CoreN                    19042.631 19041.631
       3  Windows 10 Home Single Language   x64  CoreSingleLanguage       19042.631 19041.631
       4  Windows 10 Education              x64  Education                19042.631 19041.631
       5  Windows 10 Education N            x64  EducationN               19042.631 19041.631
       6  Windows 10 Pro                    x64  Professional             19042.631 19041.631
       7  Windows 10 Pro N                  x64  ProfessionalN            19042.631 19041.631
       8  Windows 10 Pro Education          x64  ProfessionalEducation    19042.631 19041.631
       9  Windows 10 Pro Education N        x64  ProfessionalEducationN   19042.631 19041.631
      10  Windows 10 Pro for Workstations   x64  ProfessionalWorkstation  19042.631 19041.631
      11  Windows 10 Pro N for Workstations x64  ProfessionalWorkstationN 19042.631 19041.631
    
     
  8. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,566
    2,605
    60
    #48 freddie-o, Jul 2, 2023
    Last edited: Jul 2, 2023
    I am aware of that and that a mounted wim or esd will show accurate info
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    #49 acer-5100, Jul 2, 2023
    Last edited: Jul 2, 2023

    I think that Dism /capture, just writes the info in the xml, that describes the WIM's content, based on the properties of ntoskrnel.exe and not the registry.

    In 10.0.19045.3031 the properties are still 19041.3031

    And win 11 is 10.0.22000.xxxx not 11.0.22000.xxxx.

    So strictly speaking this is somewhat the correct info, something that used to be identical to what you retrieve in registry, then they just messed up the concept introducing those "virtual" builds in the registry w/o touching dism


    As for W11 v.s. W10, this is a much older problem.

    This is W10 build 9926, although the kernel version was already switched from 6.4 to 10.0, dism was still a bit confused, I'm sure that older versions with 6.4 kernel gave even funnier results. :D

    upload_2023-7-2_9-52-57.png
     
  10. Tonho Dalua

    Tonho Dalua MDL Novice

    May 21, 2023
    13
    0
    0
    thx much bro for the enlightenment, this is what I was looking for and found it even in a different tutorial. after a few weeks of trying it finally worked too, after backing up, tried to find the difference with WinMerge and saw the difference. but I tried drag drop ntuser.dat, system and default are even easier, what can't be just software because maybe there are differences in the installed software, are my steps with drag n drop correct and no problems bro?
     
  11. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150
    Sorry but I don't understand your question.

    I have no idea about what you mean with "my step with drag and drop"
     
  12. Tonho Dalua

    Tonho Dalua MDL Novice

    May 21, 2023
    13
    0
    0
    drag and drop I mean, I took ntuser.dat, default and system from someone else's install.wim and then I put it in my install.wim using 7-zip, is that ok?
     
  13. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    4,003
    2,923
    150

    Not exactly the cleanest thing to do. For one the "donor" wim may have components addedd/removed, so you may end with mismatched component list in software compared to what's actually installed.

    At the end that wim will work, but shouldn't be an excuse to not learn how to customize properly.

    Perhaps I dont think you can usw 7zip to replace a file in the wim, like in a .zip. You need to use dism mount the wim, commit the changes, rebuild the wim to avoid the wasted space and so on...
     
  14. cdavisdeco

    cdavisdeco MDL Senior Member

    Jul 8, 2015
    337
    63
    10
  15. cdavisdeco

    cdavisdeco MDL Senior Member

    Jul 8, 2015
    337
    63
    10
    Oh! I can't even find the facepalm emoji. :D
     
  16. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,655
    103,351
    450

    :facepalm::facepalm: ;)
     
  17. 12 lb Turkey

    12 lb Turkey MDL Member

    Nov 24, 2022
    120
    64
    10
    TIL from my expat co-workers: "bugger" is always followed by "wanker".