PartitionIDPartitionID

PartitionID 指定要安裝的映像的磁碟分割的資料分割識別碼。PartitionID specifies the partition ID of the partition to which the image is installed.

Values

Partition_IDPartition_ID

指定要安裝的映像的磁碟分割的資料分割識別碼。Specifies the partition ID of the partition to which the image is installed. 此順序是從 1 開始。This sequence starts with 1. 開機磁碟機通常設定為 1,但如果沒有隱藏的磁碟分割,您可能必須安裝映像至磁碟分割識別碼為 2。The boot drive is usually set to 1, but if there is a hidden partition, you might have to install the image to partition ID 2.

Sys.partitions是一個字串。Partition_ID is a string.

有效的設定階段Valid Configuration Passes

windowsPEwindowsPE

父階層Parent Hierarchy

microsoft-windows-setup- | WindowsDeploymentServices | ImageSelection | InstallTo | PartitionIDmicrosoft-windows-setup- | WindowsDeploymentServices | ImageSelection | InstallTo | PartitionID

套用至Applies To

如需支援的 Windows 版本與此元件支援的架構,請參閱microsoft-windows-安裝程式-For a list of the supported Windows editions and architectures that this component supports, see microsoft-windows-setup-.

XML 範例XML Example

下列的 XML 輸出會顯示完整的 Windows 部署服務部署。The following XML output shows a complete Windows Deployment Services deployment.

<WindowsDeploymentServices>
   <Login>
      <WillShowUI>OnError</WillShowUI>
      <Credentials>
         <Username>Administrator</Username>
         <Domain>MY-DOMAIN-NAME</Domain>
         <Password>********</Password>
      </Credentials>
   </Login>
  <ImageSelection>
      <WillShowUI>OnError</WillShowUI>
      <InstallImage>
         <ImageName>MY_IMAGE_NAME</ImageName>
         <ImageGroup>My IMAGE GROUP</ImageGroup>
      </InstallImage>
      <InstallTo>
         <DiskID>0</DiskID>
         <PartitionID>1</PartitionID>
      </InstallTo>
   </ImageSelection>
</WindowsDeploymentServices>
<DiskConfiguration>
   <WillShowUI>OnError</WillShowUI>
   <Disk>
      <DiskID>0</DiskID>
      <WillWipeDisk>false</WillWipeDisk>
      <ModifyPartitions>
         <ModifyPartition>
            <Order>1</Order>
            <PartitionID>3</PartitionID>
            <Letter>C</Letter>
            <Label>TestOS</Label>
            <Format>NTFS</Format>
            <Active>true</Active>
            <Extend>false</Extend>
         </ModifyPartition>
      </ModifyPartitions>
   </Disk>
</DiskConfiguration>

InstallToInstallTo