WinPE: Add drivers to an offline image: Unterschied zwischen den Versionen

Aus Wiki-WebPerfect
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „== Adding drivers to an offline image to troubleshoot a bare-metal deployment(for example a VHDX image) == *'''Boot from Windows ISO''' or WinPE. *Open a conso…“)
 
Zeile 5: Zeile 5:
 
*Mount the VHDX: More Informations [[Mount VHDX]] section ''Mount/Dismount VHD/VHDX with DISM'' or ''Mount/Dismount VHD/VHDX with Diskpart''
 
*Mount the VHDX: More Informations [[Mount VHDX]] section ''Mount/Dismount VHD/VHDX with DISM'' or ''Mount/Dismount VHD/VHDX with Diskpart''
 
*Adding driver to your image:
 
*Adding driver to your image:
  Dism /Image:<mount_path> /Add-Driver /Driver:<C:\drivers\yourdriver.inf>
+
  dism /image:<mount_path> /add-Driver /driver:<location_of_your_driver>.inf
 
or recurse:
 
or recurse:
  Dism /Image:<mount_path> /Add-Driver /Driver:<location_of_your_drivers> /Recurse
+
  dism /image:<mount_path> /add-Driver /driver:<location_of_your_drivers> /Recurse
*
+
*Save and dismount the image:
 
+
dism /unmount-image /mountdir:<mount_path> /commit
 
+
*Check to see if the drivers are added:
 +
dism /image:<full_path_to_vhd> /get-drivers
  
  

Version vom 23. Juni 2020, 13:28 Uhr

Adding drivers to an offline image to troubleshoot a bare-metal deployment(for example a VHDX image)

  • Boot from Windows ISO or WinPE.
  • Open a console: Shift + F10
  • Create a new folder: mkdir mount
  • Mount the VHDX: More Informations Mount VHDX section Mount/Dismount VHD/VHDX with DISM or Mount/Dismount VHD/VHDX with Diskpart
  • Adding driver to your image:
dism /image:<mount_path> /add-Driver /driver:<location_of_your_driver>.inf

or recurse:

dism /image:<mount_path> /add-Driver /driver:<location_of_your_drivers> /Recurse
  • Save and dismount the image:
dism /unmount-image /mountdir:<mount_path> /commit
  • Check to see if the drivers are added:
dism /image:<full_path_to_vhd> /get-drivers