This documentation is archived and is not being maintained.

Key

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

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 multiple list item types of PathAndCredentials. For example, you can specify three different device driver paths, by using the Key values of 1, 2, and 3.

Values

 

Key

Specifies the unique string used to identify the device driver path. Key is a string. For example, you can specify the value "My Driver Path", 1, or another unique identifier.

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

Valid Passes

Parent Hierarchy

Applies To

For the 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="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>

See Also

Show: