Tim's Web Home

Windows 10 Autounattend.xml file on the T website

Zh: 安装 Windows 10 时,可采用无人值守方式安装,使用 Windows ADK 创建 Autounattend.xml 文件并放置在安装盘的根目录即可, Autounattend.xml 文件备份如下。

En: When installing Windows 10, you can install it in unattended mode. Use Windows ADK to create the Autounattend.xml file and place it in the root directory of the installation disk. The Autounattend.xml file is backed up as follows.

Download Autounattend.xml.zip

Autounattend.xml file - UEFI

本文件采用 UEFI 分区方式,安装镜像使用 W10PH64_21H2.wim 的文件名,安装完成后自动进入 Audit Mode 且打开设备管理器等。

  <?xml version="1.0" encoding="utf-8"?>
  <unattend xmlns="urn:schemas-microsoft-com:unattend">
      <settings pass="windowsPE">
          <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
              <ComplianceCheck>
                  <DisplayReport>OnError</DisplayReport>
              </ComplianceCheck>
              <DiskConfiguration>
                  <Disk wcm:action="add">
                      <CreatePartitions>
                          <CreatePartition wcm:action="add">
                              <Size>200</Size>
                              <Type>EFI</Type>
                              <Order>1</Order>
                          </CreatePartition>
                          <CreatePartition wcm:action="add">
                              <Order>2</Order>
                              <Size>32</Size>
                              <Type>MSR</Type>
                          </CreatePartition>
                          <CreatePartition wcm:action="add">
                              <Order>3</Order>
                              <Type>Primary</Type>
                              <Extend>true</Extend>
                          </CreatePartition>
                      </CreatePartitions>
                      <ModifyPartitions>
                          <ModifyPartition wcm:action="add">
                              <Order>1</Order>
                              <PartitionID>1</PartitionID>
                              <Label>System</Label>
                              <Format>FAT32</Format>
                          </ModifyPartition>
                          <ModifyPartition wcm:action="add">
                              <Order>2</Order>
                              <PartitionID>3</PartitionID>
                              <Label>Windows</Label>
                              <Letter>C</Letter>
                              <Format>NTFS</Format>
                          </ModifyPartition>
                      </ModifyPartitions>
                      <DiskID>0</DiskID>
                      <WillWipeDisk>true</WillWipeDisk>
                  </Disk>
                  <WillShowUI>OnError</WillShowUI>
              </DiskConfiguration>
              <ImageInstall>
                  <OSImage>
                      <InstallFrom>
                          <Path>W10PH64_21H2.wim</Path>
                      </InstallFrom>
                      <InstallTo>
                          <DiskID>0</DiskID>
                          <PartitionID>3</PartitionID>
                      </InstallTo>
                      <WillShowUI>OnError</WillShowUI>
                  </OSImage>
              </ImageInstall>
              <UserData>
                  <AcceptEula>true</AcceptEula>
              </UserData>
              <EnableNetwork>true</EnableNetwork>
              <EnableFirewall>true</EnableFirewall>
              <Restart>Restart</Restart>
          </component>
          <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
              <SetupUILanguage>
                  <UILanguage>en-US</UILanguage>
              </SetupUILanguage>
              <InputLocale>en-US</InputLocale>
              <SystemLocale>en-US</SystemLocale>
              <UILanguage>en-US</UILanguage>
              <UILanguageFallback>en-US</UILanguageFallback>
              <UserLocale>en-US</UserLocale>
          </component>
      </settings>
      <settings pass="oobeSystem">
          <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
              <Reseal>
                  <Mode>Audit</Mode>
              </Reseal>
          </component>
          <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
              <LogonCommands>
                  <AsynchronousCommand wcm:action="add">
                      <CommandLine>devmgmt.msc</CommandLine>
                      <Order>1</Order>
                      <Description>Device Manager</Description>
                  </AsynchronousCommand>
                  <AsynchronousCommand wcm:action="add">
                      <CommandLine>diskmgmt.msc</CommandLine>
                      <Order>2</Order>
                      <Description>Disk Manager</Description>
                  </AsynchronousCommand>
              </LogonCommands>
          </component>
      </settings>
      <settings pass="auditUser">
          <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
              <RunAsynchronous>
                  <RunAsynchronousCommand wcm:action="add">
                      <Description>System Info</Description>
                      <Order>1</Order>
                      <Path>msinfo32.exe</Path>
                  </RunAsynchronousCommand>
              </RunAsynchronous>
          </component>
      </settings>
  </unattend>
Download Autounattend.xml.zip

版权声明

本文作者是一位开源理念的坚定支持者,所以本文内容遵照开源的精神发布。
无担保:本文作者不保证此文内容准确无误,亦不承担任何由于使用此文档所导致的损失。
自由使用:任何人都可以自由的阅读/链接/打印此文档,无需任何附加条件。
名誉权:任何人都可以自由的转载/引用/再创作此文档,但必须保留作者署名并注明出处。
其他作品
本文作者十分愿意与他人分享劳动成果,如果你对我的其他作品有兴趣,可以在如下位置查看现有的作品集:
Tim 作品集 [ https://tiimmm.com/ ]
联系方式
由于作者水平有限,因此不能保证此文内容准确无误。如果你发现了此文中的错误(哪怕是错别字也好),请来信指出,任何提高此文质量的建议我都将虚心接纳。
Email: tiimmm dot chen at gmail dot com



网站制作者:Author:tiimmm dot chen at gmail dot com, Welcome to email for discussion!



T站勉强运行341天3时1分5秒
多伦多时间:2024-05-20 Monday 01:34:20 AM