Autounattended.xml 和 GPT 分区

Autounattended.xml 和 GPT 分区

我们正在尝试在具有 UEFI bios 的联想 U410 上的 gpt 分区中设置 Windows 7 的无人值守安装。

此网页概述了如何为 GPT 格式化磁盘。如果将页面中的默认配置添加到 autounattended.xml 文件中,我会收到错误:

Windows cannot be install to this disk. The selected disk is of GPT partition style.

如果我们使用上述网页推荐的配置,我们会收到 0x00042465 (VDS_S_EXTEND_FILE_SYSTEM_FAILED) 错误,概述这里

这是我们的 xml 文件:

<?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">
        <!-- Lifted from Document http://msdn.microsoft.com/en-us/windows/hardware/gg463140.aspx -->
        <DiskConfiguration>
          <Disk wcm:action="add">
            <DiskID>1</DiskID> 
            <WillWipeDisk>true</WillWipeDisk> 
            <CreatePartitions>

              <!-- System partition (ESP) -->
              <CreatePartition wcm:action="add">
                <Order>1</Order> 
                <Type>EFI</Type> 
                <Size>260</Size> 
                <!-- Note: for Advanced Format Generation One drives, change to size=260 -->
              </CreatePartition>

              <!-- Microsoft reserved partition (MSR) -->
              <CreatePartition wcm:action="add">
                <Order>2</Order> 
                <Type>MSR</Type> 
                <Size>128</Size> 
              </CreatePartition>

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

            <ModifyPartitions>

              <!-- System partition (ESP) -->
              <ModifyPartition wcm:action="add">
                <Order>1</Order> 
                <PartitionID>1</PartitionID> 
                <Label>System</Label> 
                <Format>FAT32</Format> 
              </ModifyPartition>

              <!-- The MSR partition does not need to be modified -->

              <!-- Windows partition -->
              <ModifyPartition wcm:action="add">
                <Order>2</Order> 
                <PartitionID>3</PartitionID> 
                <Label>Windows</Label> 
                <Letter>C</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>1</DiskID>
            <PartitionID>3</PartitionID>
          </InstallTo>
          <InstallToAvailablePartition>false</InstallToAvailablePartition>
          <WillShowUI>OnError</WillShowUI>
        </OSImage>
      </ImageInstall>
      <UserData>
        <ProductKey>
          <Key>Some-Funky-Key</Key>
          <WillShowUI>OnError</WillShowUI>
        </ProductKey>
        <Organization>MyCompany</Organization>
        <FullName>Cowboy</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>Cowboy</Name>
                    <Group>Administrators</Group>
                    <Password>
                        <PlainText>true</PlainText>
                        <Value>Indian</Value>
                    </Password>
                </LocalAccount>
            </LocalAccounts>
        </UserAccounts>
        <OOBE>
            <NetworkLocation>Work</NetworkLocation>
            <HideEULAPage>true</HideEULAPage>
            <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
        </OOBE>
        <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
        <TimeZone>GMT Standard Time</TimeZone>
        <AutoLogon>
            <Password>
                <Value>Indian</Value>
                <PlainText>true</PlainText>
            </Password>
            <Domain>.</Domain>
            <Enabled>true</Enabled>
            <LogonCount>1</LogonCount>
            <Username>bromine</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>

正如我所说,它基本上是从上面列出的 TechNet 网页中摘录的。任何帮助都将不胜感激。

这应该由超级用户来管理吗?

答案1

Windows 7 需要 100mb 分区才能使用 Bitlock 功能,这不是可选的。我不知道这对您的设置有何影响,但可能:

  • 分区 1 UEFI
  • 分区 2 NTFS 100mb
  • 分区 3 NTFS

祝你好运

相关内容