none
请教Wds无人值守分区问题! RRS feed

  • 问题

  • 尊敬的微软工程师,

    我想知道wds无人值守应答文件中创建分区划分分区容量能不能全部划分进一个分区而不是输入数量值。

    下面是我测试过程中的无人值守应答文件

    <?xml version="1.0"   encoding="utf-8"?>
    <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>zh-cn</UILanguage>
                </SetupUILanguage>
                  <InputLocale>zh-cn</InputLocale>
                  <SystemLocale>zh-cn</SystemLocale>
                  <UILanguage>zh-cn</UILanguage>
                  <UserLocale>zh-cn</UserLocale>
            </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">
                        <CreatePartitions>
                            <CreatePartition   wcm:action="add">
                                  <Order>1</Order>
                                  <Size>50000</Size>
                                  <Type>Primary</Type>
                              </CreatePartition>
                        </CreatePartitions>
                        <ModifyPartitions>
                            <ModifyPartition   wcm:action="add">
                                  <Active>true</Active>
                                  <Format>NTFS</Format>
                                  <Label>OS</Label>
                                  <Letter>C</Letter>
                                  <PartitionID>1</PartitionID>
                                  <Order>1</Order>
                              </ModifyPartition>
                        </ModifyPartitions>
                          <DiskID>0</DiskID>
                          <WillWipeDisk>true</WillWipeDisk>
                    </Disk>
                </DiskConfiguration>
                <UserData>
                      <AcceptEula>true</AcceptEula>
                </UserData>
                <WindowsDeploymentServices>
                    <Login>
                        <Credentials>
                              <Username>administrator</Username>
                              <Password>123.com</Password>
                              <Domain>WIN-ICLTMU5ODNR</Domain>
                        </Credentials>
                    </Login>
                    <ImageSelection>
                        <InstallImage>
                              <Filename>install.wim</Filename>
                              <ImageGroup>Windows2019os</ImageGroup>
                              <ImageName>Windows Server 2019 SERVERSTANDARD</ImageName>
                        </InstallImage>
                        <InstallTo>
                              <DiskID>0</DiskID>
                              <PartitionID>1</PartitionID>
                        </InstallTo>
                    </ImageSelection>
                  </WindowsDeploymentServices>
            </component>
        </settings>

        <cpi:offlineImage   cpi:source="catalog:c:/temp/install_windows server 2019   serverstandard.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi"   />

    </unattend>

    我想知道上述xml中<Size>50000</Size>能否不输入指定大小值(输入100%全部)进行分区创建,主要是为第一块磁盘划分第二分剩余空间全部划分为第二分区的进行操作。


    谷青松


    • 已编辑 谷青松 2020年12月29日 5:53 补充
    2020年12月29日 5:53

答案

  • 问题解决!

     </CreatePartition>
                            <CreatePartition wcm:action="add">
                                <Extend>true</Extend>
                                <Order>2</Order>
                                <Type>Primary</Type>

    Extend=true即可


    谷青松

    • 已标记为答案 谷青松 2020年12月30日 1:13
    2020年12月30日 1:12