認證Credentials

Credentials 選擇性設定也就用來存取所指定的通用命名慣例 (UNC) 路徑路徑Credentials is an optional setting that is used to access the Universal Naming Convention (UNC) path specified by the Path.

子項目Child Elements

設定Setting 描述Description
網域Domain 指定用於驗證之帳戶的網域。Specifies the domain of the account used for authentication. (選擇性) 可以用來指定電腦的名稱。Can optionally be used to specify the name of the computer.
密碼Password 指定要用於驗證之帳戶的密碼。Specifies the password of the account to use for authentication.
使用者名稱Username 指定要用於驗證的帳戶的使用者名稱。Specifies the user name of the account to use for authentication.

有效的設定階段Valid Configuration Passes

auditSystemauditSystem

offlineServicingofflineServicing

父階層Parent Hierarchy

Microsoft-Windows-PnpCustomizationsNonWinPE | DriverPaths | PathAndCredentials | CredentialsMicrosoft-Windows-PnpCustomizationsNonWinPE | DriverPaths | PathAndCredentials | Credentials

套用至Applies To

如需支援的 Windows 版本和架構,此元件支援的清單,請參閱Microsoft-Windows-PnpCustomizationsNonWinPEFor the list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-PnpCustomizationsNonWinPE.

XML 範例XML Example

下列的 XML 輸出指定裝置驅動程式和用來存取這些路徑認證的另外兩個位置的 UNC 路徑。The following XML output specifies the UNC paths to two additional locations for device drivers and the credentials used to access those paths.

<DriverPaths>
<!-- First PathAndCredentials list item -->
   <PathAndCredentials wcm:action="add" wcm:keyValue="1">
      <Path>\\myFirstDriverPath\DriversFolder</Path>
      <Credentials>
         <Domain>MyDomain</Domain>
         <Username>MyUsername</Username>
         <Password>MyPassword</Password>
      </Credentials>
   </PathAndCredentials>
<!-- Second PathAndCredentials list item -->
   <PathAndCredentials wcm:action="add" wcm:keyValue="2">
      <Path>C:\Drivers</Path>
      <Credentials>
         <Domain>MyComputerName</Domain>
         <Username>MyUsername</Username>
         <Password>MyPassword</Password>
      </Credentials>
   </PathAndCredentials>
</DriverPaths>

PathAndCredentialsPathAndCredentials