凭据 (imageinstall-osimage-installfrom-凭据) Credentials (microsoft-windows-setup-imageinstall-osimage-installfrom-credentials)

Credentials 指定 ( .wim) 文件访问 Windows 映像时使用的凭据。Credentials specifies the credentials used when accessing a Windows image (.wim) file.

子元素Child Elements

设置Setting 说明Description
Domain 指定用于身份验证的帐户的域。Specifies the domain of the account used for authentication.
密码Password 指定用于身份验证的用户帐户的密码。Specifies the password of the user account used for authentication.
用户名Username 指定用于身份验证的帐户的用户名。Specifies the user name of the account used for authentication.

有效的配置阶段Valid Configuration Passes

windowsPEwindowsPE

父层次结构Parent Hierarchy

Microsoft-Windows-设置 | ImageInstall | OSImage | InstallFrom | 凭据Microsoft-Windows-Setup | ImageInstall | OSImage | InstallFrom | Credentials

适用于Applies To

有关此组件支持的 Windows 版本和体系结构的列表,请参阅 Microsoft-Windows-设置For the 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 to install both an operating system image and 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>

InstallFromInstallFrom