Sub topic 12
Unattended installs and image deployment
This chapter assumes you can run a clean install from USB, know the difference between MBR and GPT, and have seen the Windows edition list. It covers how technicians install Windows on many PCs without answering every setup prompt, and how they copy one prepared installation to many machines.
Two ways to scale an install
An unattended install runs the normal Windows Setup, but an answer file supplies the choices (language, disk, product key, account). Image deployment skips Setup on the target. A technician captures a prepared Windows installation into a file, then applies that file to other disks.
| Method | What you start from | Typical use |
|---|---|---|
| Unattended install | Standard install media plus an answer file | Many PCs that need a fresh, uniform setup |
| Image deployment | A captured image of a configured PC | Many identical PCs that need the same apps and settings |
Unattended installs
The answer file is an XML file named autounattend.xml. If you place it in the root of the installation USB drive, Setup finds it and reads it automatically. Windows System Image Manager (part of the Windows Assessment and Deployment Kit, or ADK) is the tool for building it.
An answer file can set:
- Language, keyboard, and time zone
- Disk partitioning and the target partition
- The edition or product key
- A local administrator account
- Commands that run on first sign-in
Setup passes through stages called configuration passes. The answer file attaches each setting to the pass where it applies, so a disk setting belongs in an early pass and a first-logon command in a late one.
Image deployment
The usual workflow has five steps.
- Install Windows on a reference PC and add the apps, updates, and settings you want.
- Run Sysprep, which removes machine-specific data such as the computer name and security identifier (SID). Use
sysprep /generalize /oobe /shutdown. - Boot the reference PC into Windows PE (a small recovery environment) and capture the disk into a
.wimfile. - Boot each target PC into Windows PE and apply the image.
- On first boot, the PC runs the out-of-box experience (OOBE) and creates its own unique identity.
A WIM (Windows Imaging Format) file stores files rather than raw disk sectors. It is hardware independent and can hold several images. This is why the install media's install.wim can list multiple editions, as shown in the DISM example from the install-sources chapter. In contrast, a sector-based image from a third-party cloning tool copies the whole disk and usually needs similar hardware.
The image can be delivered by network boot using PXE (Preboot Execution Environment), where the PC loads Windows PE from a deployment server such as Windows Deployment Services. It can also be delivered from a USB drive.
Common errors
- Skipping Sysprep. Cloned PCs then share a SID and computer name, which causes domain and network conflicts.
- Mismatched firmware mode. An image built for UEFI and GPT will not boot on a legacy BIOS and MBR target.
- Wrong disk wiped. An unattended answer file that formats disk 0 destroys data on whichever disk is numbered 0.
- Out-of-date image. A captured image does not include updates released after capture, so run Windows Update after deployment.
Exercise
A technician configures one PC with the company's apps and wants to copy its setup to 40 identical PCs. Which tool must be run on the reference PC before capturing the image, and why?
Show answer
Sysprep. It generalizes the installation by removing machine-specific data such as the computer name and SID, so each deployed PC can create its own identity at first boot.
Exercise
What is the file name and location that Windows Setup checks to run an unattended install from a USB drive?
Show answer
A file named autounattend.xml in the root of the USB installation drive.