Windows 10 安裝程式忽略 autounattend.xml

Windows 10 安裝程式忽略 autounattend.xml

我使用 Windows 系統映像管理員為嵌入式 Windows 10 建立應答文件。

我的答案檔案是基於 annabooks.com 上的「Windows IOT 10 Enterprise 入門指南」的第 1-2 章

該映像是使用 ADK 工具準備的,以注入一些自訂驅動程式;除此之外,它只是一台 Windows 10 Enterprise LTSB。

很明顯我在某個地方弄亂了設置,但我似乎無法弄清楚在哪裡。

編輯:我再次查看了文檔,我錯過了一些 OOBE 設定。我使用 WSIM 更正了這些設置,但它仍然被忽略。

該檔案名為“Autounattend.xml”,位於包含安裝檔案的 USB 記憶棒的根目錄中。

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
    <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">
        <InputLocale>en-US</InputLocale>
        <SystemLocale>en-US</SystemLocale>
        <UILanguage>en-US</UILanguage>
        <UILanguageFallback>en-US</UILanguageFallback>
        <UserLocale>en-US</UserLocale>
        <SetupUILanguage>
            <UILanguage>en-US</UILanguage>
        </SetupUILanguage>
    </component>
    <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">
        <ImageInstall>
            <OSImage>
                <InstallFrom>
                    <MetaData wcm:action="add">
                        <Key>/IMAGE/NAME</Key>
                        <Value>Windows 10 Enterprise Evaluation</Value>
                    </MetaData>
                </InstallFrom>
            </OSImage>
        </ImageInstall>
        <UserData>
            <ProductKey>
                <Key>removed</Key>
                <WillShowUI>OnError</WillShowUI>
            </ProductKey>
            <AcceptEula>true</AcceptEula>
        </UserData>
    </component>
</settings>
<settings pass="specialize">
    <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">
        <AutoLogon>
            <Password>
                <Value>cABhAHMAcwB3AG8AcgBkAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                <PlainText>false</PlainText>
            </Password>
            <Username>EcoMixer</Username>
            <LogonCount>4294967294</LogonCount>
            <Enabled>true</Enabled>
        </AutoLogon>
        <ComputerName>EcoMixer</ComputerName>
        <TimeZone>GMT Standard Time</TimeZone>
    </component>
</settings>
<settings pass="oobeSystem">
    <component name="Microsoft-Windows-International-Core" 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">
        <SystemLocale>en-US</SystemLocale>
        <UILanguage>en-US</UILanguage>
        <UserLocale>en-US</UserLocale>
    </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">
        <OOBE>
            <HideEULAPage>true</HideEULAPage>
            <ProtectYourPC>3</ProtectYourPC>
            <HideLocalAccountScreen>true</HideLocalAccountScreen>
            <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
            <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
            <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
        </OOBE>
        <UserAccounts>
            <LocalAccounts>
                <LocalAccount wcm:action="add">
                    <Password>
                        <Value>cABhAHMAcwB3AG8AcgBkAFAAYQBzAHMAdwBvAHIAZAA=</Value>
                        <PlainText>false</PlainText>
                    </Password>
                    <DisplayName>EcoMixer</DisplayName>
                    <Name>EcoMixer</Name>
                    <Group>Administrators</Group>
                </LocalAccount>
            </LocalAccounts>
        </UserAccounts>
    </component>
</settings>
<cpi:offlineImage cpi:source="wim:e:/sources/install.wim#Windows 10 Enterprise Evaluation" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

答案1

我將其發佈在這裡是因為我剛剛遇到它。我遇到了同樣的問題,即使 autounattend.xml 完全正確並且在其他 USB 驅動器上工作正常,它也無法工作。 Windows 安裝程式似乎對某些廉價 USB 驅動器有問題,無法從中載入 autounattend.xml 檔案。

對我們來說,所有相同類型的驅動器都全面失敗。他們將啟動 Windows 10 安裝過程,但不使用 autounattend.xml。使用實際的「品牌」驅動器(即:金士頓、三星等)可以正常工作,並且 autounattend.xml 已正確加載。無法使用的 USB 驅動器是來自中國的廉價 8GB 驅動器,其標識為“通用 USB 驅動器 5.0”或類似名稱。

萬一您也遇到這種情況,可能不是您的問題,而是廉價 USB 造成的問題。

相關內容