DriverPathsDriverPaths

DriverPaths 指定一或多個包含立即可用的驅動程式的路徑。DriverPaths specifies one or more paths that contain out-of-box drivers. 這些現成的驅動程式會複製到 Windows 映像windowsPE設定階段。These out-of-box drivers are copied to the Windows image during the windowsPE configuration pass. DriverPaths 一個或多個是一個容器PathAndCredentials清單項目。DriverPaths is a container for one or more PathAndCredentials list items.

藉由使用這項設定,可以將開機關鍵驅動程式與非開機關鍵驅動程式新增至您的 Windows 映像會在安裝前。By using this setting, you can add boot-critical and non boot–critical drivers to your Windows image before it is installed.

子項目Child Elements

設定Setting 描述Description
PathAndCredentialsPathAndCredentials 指定本機或通用命名慣例 (UNC) 路徑的立即可用驅動程式,並選擇性地認證用來存取它們。Specifies a local or Universal Naming Convention (UNC) path to the out-of-box drivers and, optionally, the Credentials used to access them.

有效的設定階段Valid Configuration Passes

windowsPEwindowsPE

父階層Parent Hierarchy

Microsoft-Windows-PnpCustomizationsWinPE | DriverPathsMicrosoft-Windows-PnpCustomizationsWinPE | DriverPaths

套用至Applies To

如需支援的 Windows 版本與此元件支援的架構,請參閱Microsoft Windows-Microsoft-windows-pnpcustomizationswinpeFor a list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-PnpCustomizationsWinPE.

XML 範例XML Example

下列的 XML 輸出指定的裝置驅動程式和用來存取這些路徑的認證的其他位置的 UNC 路徑。The following XML output specifies the UNC paths to 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>

Microsoft-Windows-PnpCustomizationsWinPEMicrosoft-Windows-PnpCustomizationsWinPE