unattended.xml 和自动登录

unattended.xml 和自动登录

我正在制作 Windows 7 的答案文件。大部分都完成了,但是我不知道如何将自动登录添加到答案文件中。见下文。

无论我将自动登录放在部分的什么位置,当使用该文件时,它总是在安装时第一次提示语言、货币等时停止。

有人知道我做错了什么吗?

<?xml version="1.0" encoding="utf-8"?>
<!--This answer file generated by RT Seven Lite-->
<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">
      <SetupUILanguage>
        <UILanguage>en-US</UILanguage>
      </SetupUILanguage>
      <InputLocale>0409:00000409</InputLocale>
      <UserLocale>en-GB</UserLocale>
      <UILanguage>en-US</UILanguage>
      <SystemLocale>en-US</SystemLocale>
    </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">
        <DiskConfiguration>
            <Disk wcm:action="add">
                <DiskID>0</DiskID>
                <WillWipeDisk>true</WillWipeDisk>
                <CreatePartitions>

                     <!-- System partition -->
                     <CreatePartition wcm:action="add">
                        <Order>1</Order>
                        <Type>Primary</Type>
                        <Size>102400</Size>
                    </CreatePartition>

                    <!-- Windows partition -->
                    <CreatePartition wcm:action="add">
                        <Order>2</Order>
                        <Type>Primary</Type>
                        <Extend>true</Extend>
                    </CreatePartition>
                </CreatePartitions>
                <ModifyPartitions>

                    <!-- System partition -->
                    <ModifyPartition wcm:action="add">
                        <Order>1</Order>
                        <PartitionID>1</PartitionID>
                        <Label>Windwow</Label>
                        <Letter>C</Letter>
                        <Format>NTFS</Format>
                        <Active>true</Active>
                    </ModifyPartition>

                    <!-- Windows partition -->
                    <ModifyPartition wcm:action="add">
                        <Order>2</Order>
                        <PartitionID>2</PartitionID>
                        <Label>Data</Label>
                        <Letter>D</Letter>
                        <Format>NTFS</Format>
                    </ModifyPartition>
                </ModifyPartitions>
            </Disk>
            <WillShowUI>OnError</WillShowUI>
        </DiskConfiguration>
      <ImageInstall>
        <OSImage>
          <InstallFrom>
            <MetaData wcm:action="add">
              <Key>/IMAGE/NAME</Key>
              <value>Windows 7 ENTERPRISE</value>
            </MetaData>
          </InstallFrom>
           <InstallTo>
            <DiskID>0</DiskID>
            <PartitionID>1</PartitionID>
          </InstallTo>
          <InstallToAvailablePartition>false</InstallToAvailablePartition>
          <WillShowUI>OnError</WillShowUI>
        </OSImage>
      </ImageInstall>
      <UserData>
        <ProductKey>
          <Key>somekey</Key>
          <WillShowUI>OnError</WillShowUI>
        </ProductKey>
        <Organization>fast_comp</Organization>
        <FullName>dumbo</FullName>
        <AcceptEula>true</AcceptEula>
      </UserData>
    </component>
  </settings>
  <settings pass="oobeSystem">
    <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">
        <UserAccounts>
            <LocalAccounts>
                <LocalAccount wcm:action="add">
                    <Name>dumbo</Name>
                    <Group>Administrators</Group>
                    <Password>
                        <PlainText>true</PlainText>
                        <Value>passwd</Value>
                    </Password>
                </LocalAccount>
            </LocalAccounts>
        </UserAccounts>
        <OOBE>
            <NetworkLocation>Work</NetworkLocation>
            <HideEULAPage>true</HideEULAPage>
            <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
            <SkipMachineOOBE>true</SkipMachineOOBE>
            <SkipUserOOBE>true</SkipUserOOBE>
        </OOBE>
        <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
        <TimeZone>GMT Standard Time</TimeZone>
        <AutoLogon>
            <Password>
                <Value>passwd</Value>
                <PlainText>true</PlainText>
            </Password>
            <Domain>.</Domain>
            <Enabled>true</Enabled>
            <LogonCount>1</LogonCount>
            <Username>dumbo</Username>
           </AutoLogon>
    </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">
      <ComputerName>RENAME_ME</ComputerName>
    </component>
    <component name="Microsoft-Windows-Security-Licensing-SLC-UX" 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">
      <SkipAutoActivation>true</SkipAutoActivation>
    </component>
  </settings>
</unattend>

答案1

这不一定与自动登录有关。这只意味着您没有填写跳过这些步骤所需的正确区域设置信息。

答案2

根据本文,将 InputLocale 信息放入 oobesystem 传递中将跳过 Windows 欢迎的区域设置页面。

您是否使用 Windows SIM 创建和验证无人值守文件?当我将您的文件放入 WSIM 时,它返回了正在使用的 3 个弃用设置:

SkipMachineOOBE

SkipUserOOBE

SkipAutoActivation

Windows 系统映像管理器是Windows 自动安装套件(WAIK)并将帮助您创建无人值守文件,并为您验证文件,以便您可以查看任何错误。您可以在交付和部署页面TechNet 上的 Springboard 系列。

最后一条评论,Microsoft 部署工具包(MDT)将微软的许多免费部署工具整合到一个通用控制台中,可以使捕获和部署 Windows 变得更加容易。

Windows 推广团队的 David

相关内容