DiskID (microsoft-windows-設定-imageinstall-dataimage-installto-DiskID) DiskID (microsoft-windows-setup-imageinstall-dataimage-installto-diskid)

DiskID 指定要安裝資料映射之磁片的識別碼。DiskID specifies the identification number of the disk on which to install a data image.

Values

Disk_identification_numberDisk_identification_number

指定要安裝資料映射之磁片的識別碼。Specifies the identification number of the disk on which to install a data image. Disk_identification_number 是整數。Disk_identification_number is an integer.

磁片識別碼從0開始。Disk IDs start with 0. 例如,若要指定第一個磁片,請指派 DiskID0For example, to specify the first disk, assign DiskID to 0. 針對第二個磁片,指派 DiskID1For the second disk, assign DiskID to 1.

如果您要將資料映射安裝到具有單一磁片的電腦,請指派 DiskID0If you are installing a data image to a computer with a single disk, assign DiskID to 0. 相反地, PartitionID 會從 1 開始,第一個分割區。In contrast, PartitionID starts with 1 for the first partition.

有效的設定階段Valid Configuration Passes

windowsPEwindowsPE

父階層Parent Hierarchy

microsoft-windows-設定- | ImageInstall | DataImage | InstallTo | DiskIDmicrosoft-windows-setup- | ImageInstall | DataImage | InstallTo | DiskID

套用至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 輸出顯示如何設定 ImageInstall 您要安裝資料影像的設定。The following XML output shows how to set the ImageInstall setting if you are installing a data image.

<ImageInstall>
    <OSImage>
        <InstallFrom>
            <Credentials>
                <Domain>FabrikamDomain</Domain>
                <Password>MyPassword</Password>
                <Username>MyUsername</Username>
            </Credentials>
            <Path>\\networkshare\share\install.wim</Path>
            <MetaData wcm:action="add">
                <Key>/IMAGE/NAME</Key>
                <Value>FabrikamCustomOSImage</Value>
            </MetaData>
        </InstallFrom>
        <InstallTo>
            <DiskID>0</DiskID>
            <PartitionID>1</PartitionID>
        </InstallTo>
        <WillShowUI>OnError</WillShowUI>
        <InstallToAvailablePartition>false</InstallToAvailablePartition>
    </OSImage>
    <DataImage wcm:action="add">
        <InstallTo>
            <DiskID>0</DiskID>
            <PartitionID>2</PartitionID>
        </InstallTo>
        <InstallFrom>
            <Credentials>
                <Domain>FabrikamDomain</Domain>
                <Password>MyPassword</Password>
                <Username>MyUsername</Username>
            </Credentials>
            <Path>\\networkshare\share\data.wim</Path>
            <MetaData wcm:action="add">
                <Key>/IMAGE/NAME</Key>
                <Value>FabrikamData</Value>
            </MetaData>
        </InstallFrom>
        <Order>1</Order>
    </DataImage>
</ImageInstall>

InstallToInstallTo