Use this when automating Setup via an answer file on media.
autounattend.xml
autounattend.xml is an answer file that Windows Setup automatically picks up from the root of the install media or USB, automating disk setup, edition, accounts and settings in each configuration pass.
1. File at the root of the media named autounattend.xml.
2. Architecture and component names correct.
3. Disk configuration matches hardware.
4. Product key/edition.
5. Validate with Windows SIM.
autounattend.xml read in windowsPE pass → answers setup
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Validating the file Verify boundary
Open the file in Windows System Image Manager (part of the ADK) with a catalog for the matching image; it validates component names, passes and values. After setup, check C:\Windows\Panther\UnattendGC\setupact.log for settings that failed to apply.
Step 2 Common mistakes Narrow the fault
- Plain-text passwords in autounattend.xml.
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.
- Setup finds autounattend.xml at the root of the install media.
- It must validate against the schema.
- It may contain passwords.
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
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Minimal autounattend.xml structure (UEFI, wipes disk 0):
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<DiskConfiguration><Disk wcm:action="add"><DiskID>0</DiskID><WillWipeDisk>true</WillWipeDisk>…</Disk></DiskConfiguration>
<ImageInstall><OSImage><InstallTo><DiskID>0</DiskID><PartitionID>3</PartitionID></InstallTo></OSImage></ImageInstall>
<UserData><AcceptEula>true</AcceptEula></UserData>
</component>
</settings>
<settings pass="specialize">…ComputerName, TimeZone…</settings>
<settings pass="oobeSystem">…UserAccounts, OOBE…</settings>
</unattend>
Documented example, not captured output. Answer files may contain passwords (base64-encoded, not encrypted) — delete them after deployment (C:\Windows\Panther\unattend.xml).
ReferenceConfiguration & state1 section · depth on demand
Example (excerpt)
<settings pass="windowsPE">
<component name="Microsoft-Windows-Setup" ...>
<DiskConfiguration> ... </DiskConfiguration>
<ImageInstall><OSImage><InstallTo><DiskID>0</DiskID><PartitionID>3</PartitionID></InstallTo></OSImage></ImageInstall>
<UserData><AcceptEula>true</AcceptEula></UserData>
</component>
</settings>
<settings pass="specialize"> ... <ComputerName>WS-001</ComputerName> ... </settings>
Documented example, not captured output. Do not leave plain-text passwords in answer files; they remain in C:\Windows\Panther\ after setup.
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 → autounattend.xml. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows/deployment/ · confidence 94%