Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

autounattend.xml

Direct answer

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.

When to use this

Use this when automating Setup via an answer file on media.

First 30 seconds

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.

Operational verification

autounattend.xml read in windowsPE pass → answers setup

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Windows servicing, deployment and recovery
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows servicing, deployment and recovery
Scope / prerequisiteUse this when automating Setup via an answer file on media.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • Setup finds autounattend.xml at the root of the install media.
  • It must validate against the schema.
  • It may contain passwords.
Key checks
  • Get-ComputerInfo -Property BiosFirmwareType — UEFI or legacy BIOS
  • Get-Disk | Select Number,PartitionStyle — GPT or MBR
  • Get-Content C:\Windows\Panther\setupact.log -Tail 50 — setup log
  • dism /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).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows servicing, deployment and recovery current

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%
Confirmation

Confirm action

Continue?