PathAndCredentials (microsoft-windows-pnpcustomizationswinpe-driverpaths-PathAndCredentials) PathAndCredentials (microsoft-windows-pnpcustomizationswinpe-driverpaths-pathandcredentials)

PathAndCredentials 是一个列表项类型,指定本地或通用命名约定 (UNC) 路径附加到新的设备驱动程序的位置,还可以指定用于访问该路径的凭据。PathAndCredentials is a list item type and specifies the local or Universal Naming Convention (UNC) path to an additional location for out-of-box device drivers and, optionally, the credentials used to access that path.

子元素Child Elements

设置Setting 说明Description
凭据Credentials 指定用于访问 路径指定的路径的凭据。Specifies the credentials used to access the path specified by the Path. (可选)(Optional)
KeyKey 为驱动程序路径指定唯一的字符串标识符。Specifies a unique string identifier for the driver path.
路径Path 指定一个本地路径或 UNC 路径,其中包含复制到 Windows 映像的其他全新设备驱动程序。Specifies a local or UNC path that contains additional out-of-box device drivers that you copy to the Windows image.

有效的配置阶段Valid Configuration Passes

windowsPEwindowsPE

父层次结构Parent Hierarchy

Microsoft-microsoft-windows-pnpcustomizationswinpe | DriverPaths | PathAndCredentialsMicrosoft-Windows-PnpCustomizationsWinPE | DriverPaths | PathAndCredentials

适用于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 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>

DriverPathsDriverPaths