凭据 (microsoft-windows-pnpcustomizationswinpe-driverpaths-pathandcredentials-凭据) Credentials (microsoft-windows-pnpcustomizationswinpe-driverpaths-pathandcredentials-credentials)

Credentials 一个可选设置,用于访问 (UNC ) 路径指定的通用命名约定。Credentials is an optional setting 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. 如果该帐户不是域帐户,则应使用计算机名称而不是域名。If the account is not a domain account, then the computer name should be used instead of the domain name.
密码Password 指定用于身份验证的帐户的密码。Specifies the password of the account used for authentication.
用户名Username 指定帐户的用户名。Specifies the user name of the account.

有效的配置阶段Valid Configuration Passes

windowsPEwindowsPE

父层次结构Parent Hierarchy

Microsoft-microsoft-windows-pnpcustomizationswinpe | DriverPaths | PathAndCredentials | 凭据Microsoft-Windows-PnpCustomizationsWinPE | DriverPaths | PathAndCredentials | Credentials

适用于Applies To

有关此组件支持的 Windows 版本和体系结构的列表,请参阅 microsoft-windows-pnpcustomizationswinpeFor the list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-PnpCustomizationsWinPE.

XML 示例XML Example

以下 XML 输出指定设备驱动程序的其他位置的 UNC 路径,以及用于访问这些路径的凭据。The following XML output specifies the UNC paths to 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