locked
用 unattend.xml 去延伸磁碟的間隔。 RRS feed

  • 問題

  • 請看看我的 unattend.xml 有沒有問題?
    我想用這個 unattend.xml 去安裝 Windows 到不同大小的硬碟裡
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
      <settings pass="windowsPE">
        <component name="Microsoft-Windows-Setup"processorArchitecture="x86" 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">
              <CreatePartitions>
                <CreatePartition wcm:action="add">
                  <Order>1</Order>
                  <Type>Primary</Type>
                  <Size>25000</Size>
                  <Extend>true</Extend>
                </CreatePartition>
              </CreatePartitions>
            </Disk>
            <WillShowUI>Always</WillShowUI>
          </DiskConfiguration>
        </component>
      </settings>
      <settings pass="specialize">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" 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>*</ComputerName>
          <RegisteredOrganization>*</RegisteredOrganization>
          <RegisteredOwner>*</RegisteredOwner>
          <ShowWindowsLive>false</ShowWindowsLive>
        </component>
    2011年6月23日 上午 11:43

解答

  • Hi,

    Please change the value of Extend from true to false.
     
    If Extend is set to true, do not specify a value for Size. If Extend is set to true and a value for Size is specified, no partition is created. An error is logged, and installation terminates.
     
    For more information, please refer to this article:
     
    http://technet.microsoft.com/en-us/library/cc766046(WS.10).aspx


    Microsoft MVP for Windows Server-Networking, MCT, http://msmvps.com/blogs/richardwu
    • 已標示為解答 dogdogbb 2011年6月23日 下午 12:03
    2011年6月23日 上午 11:47

所有回覆

  • Hi,

    Please change the value of Extend from true to false.
     
    If Extend is set to true, do not specify a value for Size. If Extend is set to true and a value for Size is specified, no partition is created. An error is logged, and installation terminates.
     
    For more information, please refer to this article:
     
    http://technet.microsoft.com/en-us/library/cc766046(WS.10).aspx


    Microsoft MVP for Windows Server-Networking, MCT, http://msmvps.com/blogs/richardwu
    • 已標示為解答 dogdogbb 2011年6月23日 下午 12:03
    2011年6月23日 上午 11:47
  • Thank you!
    2011年6月23日 下午 12:03