autounattend.xml files to install Windows 10/11Windows Setup will automatically search for autounattend.xml files at various locations, including the root folders of each removable drive. Therefore, you do not need any third-party software, and you do not need to modify .iso or .wim files. Just follow these steps:
autounattend.xml file to the root folder of a USB drive and connect it to the computer.autounattend.xml file to the root folder of the USB drive and connect it to the computer.autoinst.flp or autoinst.iso are attached: 
Win11_25H2_English_x64.isoC:\ Program Files (x86)\ VMware\ VMware Workstation\ windows.isounattend.iso image downloaded earlierautounattend.xml file and not the one provided by VirtualBox, check the Skip Unattended Installation setting: 
Win11_25H2_English_x64.isoC:\ Program Files\ Oracle\ VirtualBox\ VBoxGuestAdditions.isounattend.iso image downloaded earlier
Win11_25H2_English_x64.isovirtio-win-*.iso image, which contains the virtio-win-guest-tools.exe installer and can be downloaded in its
latest stable or its
most recent version
unattend.iso image downloaded earlier
vmguest.iso image because it is
no longer needed or included in Hyper-V.)
unattend.iso image downloaded earlier:
Win11_25H2_English_x64.isoprl-tools-win.iso or prl-tools-win-arm.iso), which can be found at / Applications/ Parallels Desktop.app/ Contents/ Resources/ Toolsunattend.iso image downloaded earlierTo undo behaviors set through the Lock key settings section, run this command in an elevated PowerShell session:
Remove-ItemProperty -LiteralPath 'Registry::HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout' -Name 'Scancode Map';To undo the Always show all tray icons setting in Windows 11, run this command in an elevated PowerShell session:
Get-ScheduledTask -TaskName 'ShowAllTrayIcons' | Unregister-ScheduledTask -Confirm:$false;To undo the Use classic context (right-click) menu in Windows 11 setting, run this command in PowerShell:
Remove-Item -LiteralPath 'Registry::HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32';To undo the Disable User Account Control (UAC) setting, run this command in an elevated PowerShell session and reboot the computer:
Set-ItemProperty -LiteralPath 'Registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'EnableLUA' -Value 1 -Type 'DWord';To undo the Allow execution of PowerShell script files setting, run this command in an elevated PowerShell session:
Set-ExecutionPolicy -Scope 'LocalMachine' -ExecutionPolicy 'Undefined' -Force;When the Disable app suggestions / Content Delivery Manager setting was checked, as a side effect the Manage devices button in the Mobile devices section in Settings is disabled. To enable that button, run this command in an elevated PowerShell session and reboot the computer:
Set-ItemProperty -LiteralPath 'Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CloudContent' -Name 'DisableWindowsConsumerFeatures' -Value 0 -Type 'DWord';autounattend.xml files generated by this service work with any version of Windows 10 and Windows 11, including 24H2 and 25H2, in both ConX and legacy setup modes. When an answer file is not processed as expected, check for the following:
autounattend.xml file into the Windows Setup files that is higher up in the search order and thus takes preference over your autounattend.xml file. Check the X:\Windows\setupact.log log file to determine which answer files are present. Also note that you can easily create Windows installation media without additional software.Win11_25H2_English_x64.iso. There is hardly a reason to modify .iso or .wim files anyway – use custom scripts in your autounattend.xml file instead.autounattend.xml file manually, pay attention to its character encoding:
<?xml version="1.0" encoding="utf-8"?> XML declaration.  instead.The unattended installation writes error messages and other output to various log files:
| Path | Stage | Contents |
|---|---|---|
|
Windows PE | Windows Setup logs for PE stage. Inspect these files when Windows Setup does not seem to apply your autounattend.xml file. |
|
Windows PE | Output of diskpart script to partition and format your hard drive. |
|
After first reboot | Windows Setup logs for all stages after Windows PE. Inspect these files when Windows Setup displays an error message. |
|
After Windows has been installed | Output of custom scripts, WLAN setup and various other configuration actions. |
|
After Windows has been installed | Logs results of bloatware removal. |
|
After Windows has been installed | Output of PowerShell script that sets your computer's name. |
During Windows Setup, file are created that may contain sensitive data:
autounattend.xml file at C:\Windows\Panther\unattend.xml and C:\Windows\Panther\unattend-original.xml. These files may contain account passwords.C:\Windows\Setup\Scripts\Wifi.xml will contain the Wi-Fi profile you entered, including the password.Previous versions of the generator did not delete these files. The current version of the generator does delete them, unless the Keep sensitive files checkbox is selected.
Furthermore, files embeddeded in the autounattend.xml file will be extracted to the C:\Windows\Setup\Scripts folder. Check these files when you have entered sensitive data in custom scripts.