Key (microsoft-windows-pnpcustomizationsnonwinpe-driverpaths-pathandcredentials-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 each unique device-driver path. 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 that identifies 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 Configuration Passes
auditSystem
offlineServicing
Parent Hierarchy
Microsoft-Windows-PnpCustomizationsNonWinPE | DriverPaths | PathAndCredentials | Key
Applies To
For a list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-PnpCustomizationsNonWinPE.
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>