MetaDataMetaData

MetaData 指定 windows 映射中的 Windows 版本或映射 ( .wim) 檔。MetaData specifies a Windows edition or image in a Windows image (.wim) file.

您可以使用索引 設定,根據索引、名稱或映射的描述來選取 Windows 版本或映射。Use the Key and Value settings together to select a Windows edition or image based on the index, the name, or the description of the image.

使用 DISM /Get-ImageInfo 命令以判斷哪些映射和版本包含在 WINDOWS DVD 或 windows 映射上 ( .wim) 檔。Use the DISM /Get-ImageInfo command to determine which images and editions are included on your Windows DVD or Windows image (.wim) file. 如需有關如何使用設定來選取 Windows 映像的指示 MetaData ,請參閱 Windows 評定及部署套件中的「 映射部署的最佳作法 」主題 (Windows ADK) 技術參考。For instructions on how to select a Windows image using the MetaData setting, see the Best Practices for Image Deployment topic in the Windows Assessment and Deployment Kit (Windows ADK) Technical Reference.

子元素Child Elements

設定Setting 描述Description
索引鍵Key 指定是否使用影像編號、名稱或描述來選取 .wim 檔案中的映射。Specifies whether the image number, name, or description is used to select the image in a .wim file.
ReplTest1Value 指定設定的值 KeySpecifies the value of the Key setting.

有效的設定階段Valid Configuration Passes

windowsPEwindowsPE

父階層Parent Hierarchy

Microsoft-Windows-安裝程式 | ImageInstall | OSImage | InstallFrom | 中繼資料Microsoft-Windows-Setup | ImageInstall | OSImage | InstallFrom | MetaData

套用至Applies To

如需此元件所支援的 Windows 版本和架構清單,請參閱 Microsoft Windows 安裝程式For a list of the Windows editions and architectures that this component supports, see Microsoft-Windows-Setup.

XML 範例XML Examples

下列 XML 輸出顯示如何 ImageInstall 使用映射索引值,設定從 WINDOWS DVD 安裝特定 windows 映射的設定:The following XML output shows how to configure the ImageInstall setting to install a specific Windows image from the Windows DVD by using the image index value:

<ImageInstall>
    <OSImage>
        <InstallFrom>
            <MetaData wcm:action="add">
                <Key>/IMAGE/INDEX</Key>
                <Value>2</Value>
            </MetaData>
        </InstallFrom>
        <InstallTo>
            <DiskID>0</DiskID>
            <PartitionID>3</PartitionID>
        </InstallTo>
    </OSImage>
</ImageInstall>

下列 XML 輸出顯示如何 ImageInstall 設定從自訂 windows 映射檔案( ( .wim) 位於網路共用上)安裝特定 windows 映射的設定。The following XML output shows how to configure the ImageInstall setting to install a specific Windows image from a custom Windows image file (.wim) located on a network share. Windows 安裝程式藉由參考名為 "Model FNB1" 之虛構膝上型電腦模型的映射描述,從 LaptopImages .wim 檔案中選取映射。Windows Setup selects the image from the LaptopImages.wim file by referencing the image description of a fictional laptop model named "Model FNB1".

<ImageInstall>
    <OSImage>
        <InstallFrom>
            <Credentials>
                <Domain>FabrikamDomain</Domain>
                <Password>MyPassword</Password>
                <Username>MyUsername</Username>
            </Credentials>
            <Path>\\server\share\CustomWindowsImages\LaptopImages.wim</Path>
            <MetaData wcm:action="add">
                <Key>/IMAGE/DESCRIPTION</Key>
                <Value>Model FNB1</Value>
            </MetaData>
        </InstallFrom>
        <InstallTo>
            <DiskID>0</DiskID>
            <PartitionID>3</PartitionID>
        </InstallTo>
        <WillShowUI>OnError</WillShowUI>
        <InstallToAvailablePartition>false</InstallToAvailablePartition>
    </OSImage>
</ImageInstall>

InstallFromInstallFrom

索引鍵Key

ReplTest1Value