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
    184
    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,375
    2,277
    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.
     
  3. uffbros

    uffbros MDL Senior Member

    Aug 9, 2010
    447
    58
    10
  4. tigercheng

    tigercheng MDL Member

    May 4, 2015
    145
    184
    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. sebus

    sebus MDL Guru

    Jul 23, 2008
    6,356
    2,026
    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!
     
  6. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,447
    1,421
    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 + ":"







     
  7. qwesta

    qwesta MDL Senior Member

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

    Attached Files:

  8. qwesta

    qwesta MDL Senior Member

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

    freddie-o MDL Expert

    Jul 29, 2009
    1,375
    2,277
    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




     
  10. qwesta

    qwesta MDL Senior Member

    Jul 22, 2011
    314
    110
    10
    Okay, that was the problem
    Thank you for the explanation
     
  11. qwesta

    qwesta MDL Senior Member

    Jul 22, 2011
    314
    110
    10
    So what is wrong with this, It will disappear after you finish the installation
     
  12. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,375
    2,277
    60
  13. alcit

    alcit MDL Novice

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

    rpo MDL Expert

    Jan 3, 2010
    1,447
    1,421
    60
    This doesn't disturb me...