# Treiber impfen von PE Umgebung

### Beschreibung: 

Manchmal gibt es nur einen Blue-Screen wegen mangels Treiber zum Beispiel beim konvertieren von P2V.  
Also Physikalisch zu Virtuell

Hie reine PE Iso mit der man Treiber impfen kann.

### Durchführung:

  
=============================  
Windows PE Custom Build Guide  
=============================

1. Installiere das Windows ADK + WinPE-Add-on   
    [https://learn.microsoft.com/de-de/windows-hardware/get-started/adk-install](https://learn.microsoft.com/de-de/windows-hardware/get-started/adk-install)  
    [![install1.png](https://wiki.hacker-net.de/uploads/images/gallery/2025-05/scaled-1680-/S2KEIY0QJTSt9CHL-install1.png)](https://wiki.hacker-net.de/uploads/images/gallery/2025-05/S2KEIY0QJTSt9CHL-install1.png)  
    Nun die Pre-Environment  
    [![install2.png](https://wiki.hacker-net.de/uploads/images/gallery/2025-05/scaled-1680-/AcnLtlGLsoxsOPr7-install2.png)](https://wiki.hacker-net.de/uploads/images/gallery/2025-05/AcnLtlGLsoxsOPr7-install2.png)
2. Öffne eine administrative DISM- Environment Eingabeaufforderung  
    [![install3.png](https://wiki.hacker-net.de/uploads/images/gallery/2025-05/scaled-1680-/MLE2M0PJNHhrBU0b-install3.png)](https://wiki.hacker-net.de/uploads/images/gallery/2025-05/MLE2M0PJNHhrBU0b-install3.png)  
    [![grafik.png](https://wiki.hacker-net.de/uploads/images/gallery/2025-05/scaled-1680-/xhCNAwMRuugE2yp1-grafik.png)](https://wiki.hacker-net.de/uploads/images/gallery/2025-05/xhCNAwMRuugE2yp1-grafik.png)
3. Baue das Grundsystem:

```
copype amd64 C:\winpe-custom
```

Ausgabe:

```
C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools>copype amd64 c:\winpe-custom

===================================================
Creating Windows PE customization working directory

    c:\winpe-custom
===================================================

Staging media files...
Mounting "c:\winpe-custom\media\sources\boot.wim"
Copying boot files from WIM...
Unmounting "c:\winpe-custom\media\sources\boot.wim"

===================================================
Successfully staged c:\winpe-custom
===================================================
```

4\. Kopiere die Dateien aus diesem ZIP vom verzeichnis custom (also inHalt von Cunstom): [Windows-PE-Treiberpaket.zip](https://wiki.hacker-net.de/attachments/87) ins c:\\winpe-custom Verzeichnis  
[![install5.PNG](https://wiki.hacker-net.de/uploads/images/gallery/2025-05/scaled-1680-/lElKVqY7fuWH4R8i-install5.PNG)](https://wiki.hacker-net.de/uploads/images/gallery/2025-05/lElKVqY7fuWH4R8i-install5.PNG)  
[![install6.png](https://wiki.hacker-net.de/uploads/images/gallery/2025-05/scaled-1680-/JO6ygL0x4olhZ40q-install6.png)](https://wiki.hacker-net.de/uploads/images/gallery/2025-05/JO6ygL0x4olhZ40q-install6.png)

Ins Verzeichnis Driver die Treiber kopieren die in die ISO injeted werden sollen. Wie zum beispiel virtIO Drivers

[![install7.png](https://wiki.hacker-net.de/uploads/images/gallery/2025-05/scaled-1680-/4G4LUzWoB7EVk6Vr-install7.png)](https://wiki.hacker-net.de/uploads/images/gallery/2025-05/4G4LUzWoB7EVk6Vr-install7.png)  
[![install8.png](https://wiki.hacker-net.de/uploads/images/gallery/2025-05/scaled-1680-/zlScL8XTXysoAduJ-install8.png)](https://wiki.hacker-net.de/uploads/images/gallery/2025-05/zlScL8XTXysoAduJ-install8.png)

5\. Mount &amp; integriere Treiber in die ISO zum Beispiel VirtIO damit Festplatten von der ISO auch erkannt werden:

```
dism /Mount-Image /ImageFile:"C:\winpe-custom\media\sources\boot.wim" /index:1 /MountDir:"C:\winpe-custom\mount"
```

```
dism /Image:"C:\winpe-custom\mount" /Add-Driver /Driver:"C:\winpe-custom\Drivers" /Recurse
```

```
dism /Unmount-Image /MountDir:"C:\winpe-custom\mount" /Commit
```

6\. Erstelle ISO:

```
MakeWinPEMedia /ISO C:\winpe-custom C:\winpe-custom\TreiberPE.iso
```

7\. Von iso Starten