路徑 (microsoft-windows-pnpcustomizationswinpe-driverpaths-pathandcredentials-path)

Path 是本機或通用命名慣例 (UNC) 路徑,其中包含您想要在 Windows 安裝程式期間提供之現成可用的設備磁碟機。 在 windowsPE 設定階段期間,這些驅動程式會複製到 Windows 映像的驅動程式存放區。

路徑

指定包含現用驅動程式的本機或 UNC 路徑。 在 windowsPE 設定階段期間,此路徑中的驅動程式會複製到 Windows 映像的驅動程式存放區。

Path 是長度上限為 259 個字元的字串。

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

有效的設定階段

windowsPE

父階層

microsoft-windows-pnpcustomizationswinpe- | DriverPaths | PathAndCredentials | 路徑

套用至

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

XML 範例

下列 XML 輸出會指定設備磁碟機之其他位置的 UNC 路徑,以及用來存取這些路徑的認證。

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

PathAndCredentials