Sub topic 10
Installation sources: USB, optical, network, and image
This chapter covers the places a Windows installation can start from, and how to pick one. It assumes you know what UEFI and BIOS firmware are, how GPT and MBR differ, and what the Windows Setup screens look like. Firmware and partitioning are covered in earlier chapters. Here the focus is the source: the media or network location that supplies the Windows files.
What an installation source provides
Every installation needs two things: a way to boot a small setup environment, and the Windows files to copy to disk. The boot part is the Windows Preinstallation Environment (WinPE), a minimal OS that runs Setup. The files part is a compressed image, normally sources\install.wim or sources\install.esd, that holds one or more editions.
Sources differ in speed, cost, and how many PCs they serve at once.
| Source | Typical use | Strength | Limit |
|---|---|---|---|
| USB flash drive | One or a few PCs, repairs | Fast, reusable, works on most modern PCs | Must be built correctly for the firmware mode |
| Optical disc (DVD) | PCs with a drive, archival copies | Read-only and cheap | Slow, and many new PCs have no drive |
| Network boot (PXE) | Many PCs in an organization | No physical media to carry | Needs server infrastructure |
| Image deployment | Identical PCs at scale | Fastest to a finished, configured PC | Image must be maintained |
| Internal recovery partition | Restoring an OEM PC | No media needed | Tied to the original hardware and disk |
Getting the installation files
Microsoft publishes Windows as an ISO file, which is a single file that holds a disc's contents. You can download it from Microsoft's software download page. You can also use the Media Creation Tool, which downloads the files and writes a bootable USB drive for you. Use only Microsoft's own downloads, or volume licensing media from your organization. Third-party ISOs can contain tampered files.
Check the edition list on the media before you rely on it. The dism command reads the image and lists every edition inside:
dism /Get-WimInfo /WimFile:D:\sources\install.wimHere D: is the drive that holds the media. Some media use install.esd instead of install.wim, so change the file name if the first one is not found. The output lists an index number for each edition. Setup uses that index to know which edition to apply.
USB installation media
USB is the default choice today. The key point is that the drive must match the firmware mode of the target PC.
- A UEFI system needs a FAT32 partition on the USB drive to boot the setup files.
- A legacy BIOS system boots from an MBR-style drive and does not read a GPT-only layout.
- FAT32 cannot hold a single file larger than 4 GB. Some
install.wimfiles exceed that limit.
The Media Creation Tool and tools such as Rufus handle these details. Rufus lets you choose the partition scheme (GPT for UEFI, MBR for BIOS) and can split a large image into parts. If you build the drive by hand, the partitioning follows this pattern.
diskpart
list disk
select disk 1
clean
create partition primary
format fs=fat32 quick
active
assign
exitCheck the disk number with list disk before you run clean. The command erases the selected disk, and choosing the wrong number destroys data. After the drive is ready, copy the contents of the ISO onto it, or mount the ISO and copy its files.
If the PC does not offer the USB drive in its boot menu, check these items in order:
- The firmware boot order or one-time boot menu (often F12, F10, Esc, or Del at power-on).
- Whether the drive was built for the right firmware mode. A GPT/UEFI drive will not show up on a BIOS-only PC.
- Whether Secure Boot blocks the media. Official Microsoft media is signed and works with Secure Boot on.
- A different USB port. Some ports on older boards are not available to firmware.
Optical media
A DVD holds up to 4.7 GB on a single layer. Windows images often need dual-layer discs (8.5 GB) or a USB drive instead. Burn the ISO as an image. Copying the ISO file onto a disc as an ordinary data file produces a disc that does not boot. Optical media is read-only, so it cannot be altered by malware, which is why some shops keep a known-good disc. The trade-offs are slow reads and the absence of optical drives on many current laptops.
Network boot with PXE
Preboot Execution Environment (PXE) lets a PC boot from a server over the network instead of local storage. The PC's network card sends a request, a DHCP server answers with an address and the location of a boot file, and the PC downloads and runs WinPE from the server. Setup then pulls the install image across the network.
The diagram below shows the exchange.
PXE has practical requirements:
- The NIC and firmware must support network boot, and it must be enabled in firmware settings.
- The client and server must be reachable over the same network, or the DHCP relay must forward PXE requests.
- The server runs a service such as Windows Deployment Services (WDS) or Microsoft Endpoint Configuration Manager.
- The boot order must put the network adapter ahead of the local disk, or you must pick it from the one-time boot menu.
A common failure is a client that gets an IP address but no boot file. That points to a misconfigured boot server option or a firewall that blocks the file transfer, not to the client.
Image deployment
An image is a captured copy of a configured Windows installation, stored as a WIM file or a disk image. Deploying it skips the Setup questions and puts a finished system, with drivers, applications, and settings, on many PCs. The usual process is:
- Build a reference PC with Windows, updates, and standard applications.
- Generalize it with Sysprep so that machine-specific data, such as the security identifier (SID), is removed.
- Capture the image to a network share or external drive.
- Apply the image to each target PC from WinPE, from a PXE server, or from USB.
Sysprep matters. Two PCs with the same SID cause problems on a domain, and skipping the generalize step also leaves behind hardware-specific driver data. Unattended answer files, which supply the language, account, and product key settings, are covered in the next sections of this tutorial, so only the source side is covered here.
Recovery partition and cloud options
Many OEM PCs ship with a hidden recovery partition. It restores the factory image without any external media. The limit is that a replaced or wiped disk takes the partition with it. Windows 10 and 11 also offer a "Reset this PC" option with a cloud download choice, which fetches fresh files from Microsoft instead of reusing the local ones. That option needs a working network connection and enough free space.
Choosing a source
Use these questions to decide.
- How many PCs? One or two points to USB. Dozens points to PXE or an image.
- Does the PC have a working OS? If not, you need bootable media or a network boot.
- Does the PC have an optical drive? Without one, skip discs.
- Is the setup standardized? If yes, build and deploy an image.
- Is the target UEFI or BIOS? Build the media to match.
Exercise
You must install Windows on 40 identical lab PCs, all connected to the same network, and each must end up with the same applications and settings. Which source do you choose, and what must you do to the reference PC before capturing its image?
Show answer
Use image deployment delivered over the network with PXE (for example through Windows Deployment Services), because it scales to many PCs without physical media and gives each one the same configured system. Before capturing the image, run Sysprep with the generalize option on the reference PC so that machine-specific data such as the SID is removed.
Exercise
A technician copied a Windows ISO file onto a blank DVD as a normal data file. The PC will not boot from it. What went wrong, and what should be done instead?
Show answer
The ISO must be burned as a disc image, not copied as a file. Burning it as an image creates a disc with the correct boot structure. A bootable USB drive is an alternative if the ISO is too large for a single-layer DVD.
Exercise
A UEFI PC does not show your USB installer in the boot menu. The drive holds a large install.wim of 5 GB. Name one likely cause related to the drive's format.
Show answer
A UEFI boot drive normally uses FAT32, which cannot store a single file over 4 GB. If the drive was formatted NTFS to hold the large file, the firmware may not boot it. Rebuild the drive with a tool such as Rufus that splits the image, or use a method that keeps a FAT32 boot partition.