# CapaDrivers v1.6 - PreDriverCopyScript

> The PreDriverCopyScript used by CapaDrivers v1.6, and the PowerShell requirement in Windows PE.

Source: https://docs.capaone.com/capainstaller/capadrivers/capadrivers-v1-6/capadrivers-v1-6-predrivercopyscript/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

*CapaDrivers v1.6 released on May 16, 2023*

:::caution[Important]
CapaInstaller must be running version 6.4 or newer
:::

:::caution[Important]
PowerShell must be installed in Windows PE
:::

:::tip
The PreDriverCopyScript makes it possible to download and install drivers from CapaDrivers during the OS deployment process.
:::

---

### PreDriverCopyScript

The PreDriverCopyScript is placed in the Kit folder of the "CP CapaDrivers - Service Files" package.

![](/attachments/capainstaller/2f6e25a7-8964-4fd7-8e46-5f70e6fc9354.png)

---

### Importing the PreDriverCopyScript

If you don't have a PreDriverCopyScript, you can import the *PreDriverCopyScript.zip* file using the CapaInstaller Console.

If you already have a PreDriverCopyScript, ***without modifications***, you can delete the existing PreDriverCopyScript and import the new.

![](/attachments/capainstaller/7abb6721-fc5a-4558-ade9-bb8a06c04d15.gif)

If you already have a PreDriverCopyScript, ***with modifications***, you must unzip the *PreDriverCopyScript.zip* file and copy the relevant functions from the extracted *PreDriverCopyScript.wsf* file to the existing PreDriverCopyScript file.

![](/attachments/capainstaller/c4f3a9bc-7d64-4c69-ad17-f6e226e9570b.png)

💡 We recommend using the CapaInstaller Console as entry point when editing OSD scripts.

---

### Installing PowerShell in Windows PE

The PreDriverCopyScript requires PowerShell and the *WinPE-PowerShell* component must be included when building the boot.wim file.

![](/attachments/capainstaller/bcc28e12-c1e8-4286-8c00-c7f729cc5ea1.png)

💡 In CapaInstaller 6.5 and newer, the *WinPE-PowerShell* component is automatically included when building the boot.wim file.

---

### Prompts

A warning prompt will be presented during image deployment, if PowerShell is not installed in Windows PE.

![](/attachments/capainstaller/dbdaf45e-22ed-4878-8247-161dbe4a39ca.png)

An information prompt will be presented during image deployment, if CapaDrivers detects a matching driver pack.

![](/attachments/capainstaller/2cd55b9f-be13-4afe-ba23-18877f7881e9.png)
