hello need your help I copy iso windows 7 x64 on cle usb launches your script Win10 Installation Disk [UEFI or BIOS / UEFI with Secure Boot / Install.wim over 4GB no problem at the bot of the usb key in Mbr I have the launch of windows but at the moment to install windows it mes me a window and asks A Media Driver Your Computer Needs "or" Error Message "A Required CD / DVD Drive Device Driver Is Missing" When You Install Windows with rufus I'm not that problem thanks for your or modify your script
As explained in a previous post, the script creates two partitions on a usb stick. This is not available with windows 7. And btw the script "mounts" an iso file : afaik this is only possible starting with windows 8. Why complicate your life? install.wim for windows 7 should not exceed 4 Gbytes. Just format your usb stick as fat32 and copy your W7 files to it. Make sure the fat32 partition is marked active when booting on a legacy mbr system; no need for rufus.
Is there a problem with the present script? Code: Foreach ($USBDisk in $Disks) { $FriendlyName=($USBDisk.FriendlyName).PadRight(40," ").substring(0,39) $USBDisks+=$USBDisk.DiskNumber $USBDiskList.Items.Add(("{0,-39}{1:n2} GB" -f $FriendlyName,($USBDisk.Size/1GB)))|out-null $Partitions = Get-Partition | Where-Object { $_.DiskNumber -eq $USBDisk.DiskNumber} If ($Partitions) { Foreach ($Partition in $Partitions) { $Volumes=get-volume | Where-Object {$Partition.AccessPaths -contains $_.path } Foreach ($Volume in $Volumes) { $USBDisks+=$USBDisk.DiskNumber $USBDiskList.Items.Add(("{0,-2}({1,1}:){2,-31}[{3:n2} GB]" -f " ", ($Partition.DriveLetter), $Volume.FileSystemLabel.PadRight(25," ").substring(0,25), ($Partition.Size/1GB)))|out-null } } } }
You don't need to replace it, i'm not sectariant; the output is not better : it's only a matter of taste!
Is it better to use this script to create a Windows 10 Installation disk than other tools like Rufus?
The only advantage I know of with this script is, if your PC is on UEFI with Secure Boot, you don't need to temporarily disable Secure boot during installation. But
Personally, I use Win10XPE. Because I can do more in a WinPE environment. Install Windows, create and restore backup Images of my OSes, Disk partitioning/management, etc. I don't even use a USB disk to boot into WinPE. I just boot from a separate partition in my harddisk and use EasyBCD to add the boot.wim to the BCD store.
Yes, booting boot from a separate partition in your harddisk is a good idea because booting from a usb stick requires that you enter the boot menu and takes time. Do you just copy the content of the iso image? Or just the content of the sources directory?