Get the App
SLTechnology News&Howtos  ›  Servers  › 

Using ADK (windows Assessment and deployment Kit) to create PE

Shulou Source: shulou.com Published: 2022-06-02 13:08:59 10月03日 Update

The following is a brief record of how to use windows's ADK tool to make a PE system.

First of all, download ADK tools, Baidu ADK can find the download address. Https://docs.microsoft.com/zh-cn/windows-hardware/get-started/adk-install

After installation, open Deployment and Imaging Tools Environment (or "deployment and imaging tool environment") to enter the command line environment.

Input

Copype amd64 C:\ WinPE_amd64

Amd64 means that you choose to make 64-bit PE, and the path behind is the path of the PE disk content file you made, and the path can be customized.

Then mount the boot.wim file in the PE file. Generally, the copied PE path contains a mount file, and you can mount the boot.wim into this folder. Boot.wim is usually under the pe path\ media\ sources\ boot.wim.

Dism / Mount-Image / ImageFile: "C:\ WinPE_amd64\ media\ sources\ boot.wim" / index:1 / MountDir: "C:\ WinPE_amd64\ mount"

(the parameters under win7 are)

Dism / mount-wim / wimfile: "C:\ WinPE_amd64\ media\ sources\ boot.wim" / index:1 / MountDir: "C:\ WinPE_amd64\ mount"

The command to uninstall is

Dism / Unmount-Image / MountDir: "C:\ WinPE_amd64\ mount" / Commit

Modifying the contents of the mount folder will be saved in boot.wim. You can replace / commit with the / discard parameter, and you can discard changes to the file. Why would you do that? )

Add drivers for PE when mounting

Dism / add-driver / Image: "C:\ WinPE_amd64\ mount" / Driver: "C:\ SampleDriver\ driver.inf"

Add driver-https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/winpe-add-drivers

DISM driver Service Command-https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/dism-driver-servicing-command-line-options-s14

Add Package/ language / extra components / .cab file

Dism / Add-Package / Image: "C:\ WinPE_amd64\ mount" / PackagePath: "C:\ Program Files\ Windows Kits\ 10\ Assessment and Deployment Kit\ Windows Preinstallation Environment\ amd64\ WinPE_OCs\ WinPE-HTA.cab"

Reference link: learn about valid additional components and languages-WinPE Add Packages (Optional Components reference) https://docs.microsoft.com/enus/windows-hardware/manufacture/desktop/winpe-add-packages--optional-components-reference

Tags: File path tool production command driver content parameter folder environment component language reference valid address time image system link package Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Redmi Linux MariaDB vpn