Key

Applies To: Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Vista

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 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>

See Also

Concepts

PathAndCredentials