Key (microsoft-windows-pnpcustomizationswinpe-driverpaths-pathandcredentials-key)

Key specifies the unique string to identify the device-driver path.

Note   The value for Key is added to the answer file as an attribute of the PathAndCredentials element. The attribute wcm:keyValue is used to identify each unique device-driver path. For example, you can specify three different device-driver paths by using the Key values of Path1, Path2, and Path3.

Values

Key

Specifies the unique string used to identify the device-driver path. Key is a string.

This string type does not support empty elements. Do not create an empty value for this setting.

Valid Configuration Passes

auditSystem

offlineServicing

Parent Hierarchy

microsoft-windows-pnpcustomizationswinpe- | DriverPaths | PathAndCredentials | Key

Applies To

For a list of the supported Windows editions and architectures that this component supports, see microsoft-windows-pnpcustomizationswinpe-.

XML Example

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="Path1">
      <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="Path2">
      <Path>C:\Drivers</Path>
      <Credentials>
         <Domain>MyComputerName</Domain>
         <Username>MyUsername</Username>
         <Password>MyPassword</Password>
      </Credentials>
   </PathAndCredentials>
</DriverPaths>

PathAndCredentials