認證Credentials
Credentials
指定存取的 Windows 映像 (.wim) 檔案時使用的認證。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-Setup | ImageInstall | OSImage | InstallFrom | CredentialsMicrosoft-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>