用户名 (imageinstall-dataimage-installfrom-username) Username (microsoft-windows-setup-imageinstall-dataimage-installfrom-credentials-username)
Username
设置指定用于访问由 InstallFrom指定的数据映像的帐户的名称。Username
setting specifies the name of the account used for authentication to access the data image specified by InstallFrom.
值Values
User_nameUser_name |
指定用于身份验证的帐户的名称。Specifies the name of the account used for authentication. User_name 是一个字符串。User_name is a string. |
有效的配置阶段Valid Configuration Passes
windowsPEwindowsPE
父层次结构Parent Hierarchy
microsoft-windows-设置- | ImageInstall | DataImage | InstallFrom | 凭据 | 用户名microsoft-windows-setup- | ImageInstall | DataImage | InstallFrom | Credentials | Username
适用于Applies To
有关此组件支持的 Windows 版本和体系结构的列表,请参阅 microsoft-安装-。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>