Win10+ Setup Disk (Works with UEFI Secure Boot / BIOS / Install.wim over 4 GB)

Discussion in 'Scripting' started by freddie-o, Mar 21, 2019.

  1. tigercheng

    tigercheng MDL Member

    May 4, 2015
    145
    185
    10
    freddie-o, some clarifications needed from you on the above. Does it mean that in order to create the said UEFI bootable USB, the windows I am using to create it must be of Windows 10 v1703" (Build 15063) and later versions?

    Thanks for sharing of the tool and I intend to use it once you cleared my doubt.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,566
    2,605
    60
    #262 freddie-o, Nov 21, 2019
    Last edited: Nov 21, 2019
    (OP)
    Yes, earlier versions of Windows do not support reading and creating multiple partitions on removable storage devices. MS only started support for multiple partitions on removable media on Windows 10 Version 1703.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. uffbros

    uffbros MDL Senior Member

    Aug 9, 2010
    455
    59
    10
  4. tigercheng

    tigercheng MDL Member

    May 4, 2015
    145
    185
    10
    I agree, these two threads really very informative and summarize everything about UEFI bootable USB.
    Freddie-o, good job & thanks for sharing.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,566
    2,605
    60
    #265 freddie-o, May 2, 2020
    Last edited: Nov 23, 2021
    (OP)
    deleted
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. sebus

    sebus MDL Guru

    Jul 23, 2008
    6,384
    2,037
    210
    The statement on its own is misleading (and some people will read just that bit), you do need to emphasize that using the script will actually do it!
     
  7. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,566
    2,605
    60
    #267 freddie-o, May 2, 2020
    Last edited: May 3, 2020
    (OP)
    How is it now?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,479
    1,474
    60
    In case of Legacy BIOS boot, you should ensure that the USB disk partition is active :
    Code:
    $usbfat32=(New-Partition -DiskNumber $usb -UseMaximumSize -AssignDriveLetter  -IsActive | Format-Volume -FileSystem FAT32 -NewFileSystemLabel "Windows Installation Disk").DriveLetter + ":"







     
  9. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,566
    2,605
    60
    Thanks @rpo for continuing to come to the rescue
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. qwesta

    qwesta MDL Senior Member

    Jul 22, 2011
    345
    133
    10
    I tried that script, but got errors as shown here in the image
     

    Attached Files:

  11. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,566
    2,605
    60
    Could be your install.wim is above the 4GB limit.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. qwesta

    qwesta MDL Senior Member

    Jul 22, 2011
    345
    133
    10
    How can I check this please?
    And if so, is there another script which covers this limit?
     
  13. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,566
    2,605
    60
    #273 freddie-o, May 3, 2020
    Last edited: May 10, 2020
    (OP)
    Mount your Windows ISO. Navigate to "sources" folder. Locate "install.wim". Right click "Properties".

    Untitled.png

    Usually this is the error you get when the install.wim is beyond the 4GB limit.




    Win10 Installation Disk 1.9.2 is for install.wims over 4GB




     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,566
    2,605
    60
    #274 freddie-o, May 3, 2020
    Last edited: Oct 3, 2020
    (OP)
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. qwesta

    qwesta MDL Senior Member

    Jul 22, 2011
    345
    133
    10
    Okay, that was the problem
    Thank you for the explanation
     
  16. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,566
    2,605
    60
    #276 freddie-o, May 14, 2020
    Last edited: May 14, 2020
    (OP)
    @rpo I don't know why I only noticed this now :confused:
    when booting into uefi the windows cover the entire screen


    20200514_221927.jpg 20200514_221959.jpg
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. qwesta

    qwesta MDL Senior Member

    Jul 22, 2011
    345
    133
    10
    So what is wrong with this, It will disappear after you finish the installation
     
  18. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,566
    2,605
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. alcit

    alcit MDL Novice

    Mar 1, 2017
    5
    2
    0
    working great.. good bye install.esd
     
  20. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,479
    1,474
    60
    This doesn't disturb me...