Use this when installing Windows without manual steps.
Unattended Installation
Unattended installation runs Windows Setup with an answer file that supplies disk layout, product key, language, accounts and settings, so installations complete without anyone clicking through.
1. Answer file present (autounattend.xml on media or unattend.xml).
2. Validate in Windows SIM.
3. Passes correct (windowsPE, specialize, oobeSystem).
4. Logs show which settings applied.
5. Test on a VM.
setup finds answer file → applies settings per pass
Context & applicabilityCommon mistakes · platform/version boundaries
- Answer file in the wrong place or with the wrong name (
autounattend.xmlat the root of the media). - Wrong processor architecture (
amd64vsx86) in components — settings are silently ignored. - Plain-text passwords in the answer file left on the system (
C:\Windows\Panther\unattend.xml). - Disk configuration wiping the wrong disk on machines with several drives.
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- An answer file holds settings for each Setup pass.
- Test it in a VM before production.
- Answer files can contain secrets; protect them.
Get-ComputerInfo -Property BiosFirmwareType— UEFI or legacy BIOSGet-Disk | Select Number,PartitionStyle— GPT or MBRGet-Content C:\Windows\Panther\setupact.log -Tail 50— setup logdism /Get-WimInfo /WimFile:<install.wim>— images in a WIM
ReferenceWhy it matters1 section · depth on demand
How unattended setup works
Setup looks for an answer file (autounattend.xml) on removable media, or uses setup.exe /unattend:<file>. The file contains settings per configuration pass (windowsPE, specialize, oobeSystem). Create and validate it with Windows System Image Manager (WSIM) from the ADK. Sysprep uses unattend.xml for generalised images.
ReferenceHow it works1 section · depth on demand
In depth
Unattended installation answers Setup's questions from an answer file, so installs are identical and hands-off. Setup searches for autounattend.xml in the root of removable media and other implicit locations, or uses setup.exe /unattend:<file>.
Typical content: language/locale, disk layout, image index, product key, computer name, admin account, time zone, domain join, first-logon commands. Validate the file against the image's catalog in Windows System Image Manager (WSIM) to catch typos that otherwise fail silently.
ReferenceImportant terms & boundaries1 section · depth on demand
Configuration passes
| Pass | Typical settings |
|---|---|
| windowsPE | Disk layout, image selection, language |
| offlineServicing | Drivers, updates into the image |
| generalize | Removes machine-specific data (Sysprep) |
| specialize | Computer name, domain join, network |
| oobeSystem | Local accounts, OOBE skip, time zone |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Installation & Deployment → Unattended Installation. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows/deployment/ · confidence 94%