金鑰 (microsoft-windows-pnpcustomizationswinpe-driverpaths-pathandcredentials-key)

Key 會指定要識別設備磁碟機路徑的唯一字串。

注意 的值 Key 會新增至回應檔案,做為 PathAndCredentials 元素的屬性。 屬性 wcm:keyValue 可用來識別每個唯一的裝置驅動程式路徑。 例如,您可以使用Path1Path2Path3的值來 Key 指定三個不同的設備磁碟機路徑。

金鑰

指定用來識別設備磁碟機路徑的唯一字串。 索引鍵 是字串。

這種字串不支援空的元素。 請勿為這種字串建立空值。

有效的組態傳遞

auditSystem

offlineServicing

父階層

microsoft-windows-pnpcustomizationswinpe- | DriverPaths | PathAndCredentials | 關鍵

套用至

如需此元件支援的 Windows 版本和架構清單,請參閱 microsoft-windows-pnpcustomizationswinpe-

XML 範例

下列 XML 輸出會針對設備磁碟機指定兩個額外位置的 UNC 路徑,以及用來存取這些路徑的認證。

<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