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?
I first make a backup of my EFI System Partition with EasyUEFI so I can restore it back afterwards. When I boot into WinXPE to do other tasks aside from installing Windows.
I copyed boot.win in a new partition, booted into it but after some screen got an error concerning missing drivers. Searched other solutions : Boot in the recovery partition; this was ok. Create a new partition or use a vhd and applying the boot.wim image; this was ok. On my system i installed macrium reflect; after booting ou can open a cmd session and install windows.