密碼 (microsoft-windows-setup-imageinstall-osimage-installfrom-credentials-password)

Password 會指定用於驗證的使用者帳戶密碼。

Account_password

指定用於驗證的使用者帳戶密碼。 Account_password 是字串。

這種字串不支援空的元素。 請勿為這種字串建立空值。

有效的設定階段

windowsPE

父階層

microsoft-windows-setup- | ImageInstall | OSImage | InstallFrom | 憑據 | 密碼

套用至

如需此元件支援的 Windows 版本和架構清單,請參閱 microsoft-windows-setup-

XML 範例

下列 XML 輸出示範如何設定 ImageInstall 安裝作業系統映射和資料映射的設定。

<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>

認證