Results 1 to 7 of 7
  1. #1
    New Lounger
    Join Date
    Dec 2009
    Location
    Kent, WA
    Posts
    22
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Question What version of Windows is on the recovery USB drive

    How can I figure out what version of Windows is on my USB recovery drives? I've several USB sticks that are recovery drives. But I don't know if they have Windows 8, 8.1 or 10 on them. Is there some command or some files property that I can use to identify its Window version?

    Thanks
    Brian

  2. #2
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,580
    Thanks
    5
    Thanked 1,058 Times in 927 Posts
    Look for the OSBuildversion node in reagent.xml which is in the root of the recovery drive.
    Joe

  3. #3
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,434
    Thanks
    372
    Thanked 1,457 Times in 1,326 Posts
    Brian,

    I found this PS Function on line and it works on my Recovery Drives:

    Example Runs:

    Win 10 Pro USB:
    Code:
    PS> Get-WimImage -WimPath X:\sources\boot.wim
    
    
    WimFile          : X:\sources\boot.wim
    Index            : 1
    Name             : Microsoft Windows Recovery Environment (x64)
    Description      : Microsoft Windows Recovery Environment (x64)
    Size             : 1835331260
    Bootable         : No
    Architecture     : x64
    Hal              : <undefined>
    Version          : 10.0.10586
    ServicePackBuild : 0
    ServicePackLevel : 0
    Edition          : WindowsPE
    Installation     : WindowsPE
    ProductType      : WinNT
    ProductSuite     : 
    SystemRoot       : WINDOWS
    Directories      : 3403
    Files            : 15135
    Created          : 10/30/2015 3:25:13 AM
    Modified         : 2/5/2016 10:09:39 PM
    Languages        : en-US (Default)
    Win 8.1 Pro USB:
    Code:
    PS> Get-WimImage -WimPath Y:\sources\boot.wim
    
    
    WimFile          : Y:\sources\boot.wim
    Index            : 1
    Name             : Microsoft Windows PE (x64)
    Description      : Microsoft Windows PE (x64)
    Size             : 1310720896
    Bootable         : No
    Architecture     : x64
    Hal              : <undefined>
    Version          : 6.3.9600
    ServicePackBuild : 16384
    ServicePackLevel : 0
    Edition          : WindowsPE
    Installation     : WindowsPE
    ProductType      : WinNT
    ProductSuite     : 
    SystemRoot       : WINDOWS
    Directories      : 3088
    Files            : 14354
    Created          : 8/22/2013 10:08:11 AM
    Modified         : 10/22/2013 3:37:39 PM
    Languages        : en-US (Default)
    
    WimFile          : Y:\sources\boot.wim
    Index            : 2
    Name             : Microsoft Windows Setup (x64)
    Description      : Microsoft Windows Setup (x64)
    Size             : 1407856692
    Bootable         : No
    Architecture     : x64
    Hal              : <undefined>
    Version          : 6.3.9600
    ServicePackBuild : 16384
    ServicePackLevel : 0
    Edition          : WindowsPE
    Installation     : WindowsPE
    ProductType      : WinNT
    ProductSuite     : 
    SystemRoot       : WINDOWS
    Directories      : 3106
    Files            : 14729
    Created          : 8/22/2013 10:08:24 AM
    Modified         : 10/22/2013 3:37:46 PM
    Languages        : en-US (Default)
    Just download it from the link above and open it with NotePad or NP++ then paste it into a PowerShell ISE window and run it. This will load the function. Now you can enter a command (see code block above) in the Immediate window and get your results.

    HTH
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  4. #4
    New Lounger
    Join Date
    Dec 2009
    Location
    Kent, WA
    Posts
    22
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Hmmm, no reagent.xml file. For that matter, the file RetiredGeed mentioned, X:\sources\boot.wim doesn't exist. No \sources folder. I wonder if this USE might have the install iso instead of being a recovery drive?

    Doing some searching, I see a note that an iso will have the bootmgr.efi file, which my USB does have, and its autorun.inf tells me its for a 64-bit image. But the thread also says there is supposed to be a sources folder which I don't have. Bother.

    There are a couple wim files. One is \preload\PART0001\base.wim and the other is \Recovery\WinRE\WinRE.wim. The thread says this should return the windows version:

    C:\WINDOWS\system32>dism /get-wiminfo /wimfile:"K:\Recovery\WinRE\WinRE.wim"

    Deployment Image Servicing and Management tool
    Version: 10.0.10586.0

    Details for image : K:\Recovery\WinRE\WinRE.wim

    Index : 1
    Name : <undefined>
    Description : <undefined>
    Size : 1,372,170,394 bytes

    The operation completed successfully.

  5. #5
    5 Star Lounger
    Join Date
    Dec 2009
    Location
    Delaware, US
    Posts
    1,165
    Thanks
    19
    Thanked 99 Times in 88 Posts
    I suppose you could boot them and see. One solution might be to just recreate one for each machine you have.
    Graham Smith
    DataSmith, Delaware
    "For every expert there is an equal and opposite expert.", Arthur C. Clarke (1917 - 2008)

  6. #6
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,434
    Thanks
    372
    Thanked 1,457 Times in 1,326 Posts
    Brian,

    This is of a freshly minted recovery drive from my Win 10 Home Laptop:
    Code:
    PS> get-wimimage -WimPath X:\Sources\boot.wim
    
    
    WimFile          : X:\Sources\boot.wim
    Index            : 1
    Name             : Microsoft Windows Recovery Environment (x64)
    Description      : Microsoft Windows Recovery Environment (x64)
    Size             : 1837330081
    Bootable         : No
    Architecture     : x64
    Hal              : <undefined>
    Version          : 10.0.10586
    ServicePackBuild : 0
    ServicePackLevel : 0
    Edition          : WindowsPE
    Installation     : WindowsPE
    ProductType      : WinNT
    ProductSuite     : 
    SystemRoot       : WINDOWS
    Directories      : 3401
    Files            : 15123
    Created          : 10/30/2015 3:25:13 AM
    Modified         : 11/14/2015 2:09:11 PM
    Languages        : en-US (Default)
    So the PS works as it should. Maybe your recovery drives aren't what you think they are?

    HTH
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  7. #7
    New Lounger
    Join Date
    Dec 2009
    Location
    Kent, WA
    Posts
    22
    Thanks
    5
    Thanked 0 Times in 0 Posts
    I'm thinking that it is a windows 8 installation image and not a recovery disk.

    Brian

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •