Sub topic 10
Installation sources: USB, optical, network, and image
This chapter assumes you know what UEFI and BIOS are, the difference between MBR and GPT, and how to open a command prompt on a Windows PC. It covers where Windows Setup can load from and how to pick the right source.
The working model
Windows Setup needs two things: a way to boot into the Windows Preinstallation Environment (WinPE), and an install image to copy to disk. The install image is a file named install.wim or install.esd in the sources folder. The source you choose decides how both pieces reach the PC.
| Source | Typical use | Main limit |
|---|---|---|
| USB flash drive | Single PCs, technicians, systems with no optical drive | Needs correct partition style and file system for the firmware |
| Optical disc (DVD) | Older PCs, offline media kits | Slow, and many modern PCs have no drive |
| Network boot (PXE) | Many PCs in one office | Needs a network server and NIC support |
| Disk image | Deploying one prepared configuration to many identical PCs | Image must match the hardware and be kept current |
USB installation media
USB is the most common source. The Media Creation Tool builds the drive for you and downloads the current edition. You can also write an ISO file with a tool such as Rufus.
The firmware and the drive must agree. A UEFI system boots from a FAT32 partition. FAT32 cannot hold a file larger than 4 GB, and some install.wim files exceed that. The Media Creation Tool and Rufus handle this by splitting the image into install.swm files or by using an NTFS layout with a UEFI-NTFS loader. If you copy ISO contents by hand and the copy fails, this size limit is a likely cause.
To boot from the drive, open the one-time boot menu (often F12, F10, or Esc) or change the boot order in firmware setup.
Optical media
A DVD holds the same files as a USB drive. Boot from it using the same boot menu. Boot speed and install speed are lower. Scratched or poorly burned discs cause errors that appear partway through copying. Check the disc first if Setup stops with a file copy error.
Network boot with PXE
Preboot Execution Environment (PXE) lets a PC boot from a server over the network. The NIC asks for an address from a DHCP server, then downloads a boot file from a deployment server. Windows Deployment Services (WDS) or Microsoft Deployment Toolkit (MDT) typically fills this role. The client then loads WinPE and pulls the image from a network share.
Enable network boot in firmware and place it in the boot order. The PC and the server must be on the same network, or the router must forward the requests.
Image-based installation
An image is a captured copy of a configured Windows installation, including drivers, applications, and settings. Technicians apply it to many PCs instead of installing each one by hand. Sysprep generalizes the reference PC before capture, which removes machine-specific data. Images are stored as WIM files and applied with DISM or a deployment tool.
To see which editions an install image contains, run this command. It assumes the media is drive D:.
dism /Get-WimInfo /WimFile:D:\sources\install.wimSome media use install.esd instead. Change the file name to match.
Choosing a source
- One PC and no network server: use USB.
- No USB boot support or an old system: use optical media.
- Dozens of PCs in one location: use PXE with an image.
- Identical hardware and a standard configuration: use an image.
Exercise
A technician copies the contents of a Windows ISO to a FAT32 USB drive. The PC boots in UEFI mode, but Setup fails with a file copy error on install.wim. What is the likely cause, and what are two fixes?
Show answer
install.wim is larger than 4 GB and FAT32 cannot store files that large. Fix it by splitting the image into .swm files with DISM, or by recreating the drive with the Media Creation Tool or Rufus, which handle the size limit.
Exercise
Which two services does a PC need on the network to complete a PXE install?
Show answer
A DHCP server to supply an IP address and boot server location, and a deployment server such as WDS to supply WinPE and the install image.