From 497905abb9e7d77eb45165760a11d01778a41811 Mon Sep 17 00:00:00 2001 From: dunix2000 Date: Mon, 22 Jun 2026 14:06:40 -0700 Subject: Crash detection and OS reinstall tool. --- .github/crashdetect/CrashDetectSetupGuide.md | 265 +++++++++++++++++++++++++++ 1 file changed, 265 insertions(+) create mode 100644 .github/crashdetect/CrashDetectSetupGuide.md (limited to '.github/crashdetect/CrashDetectSetupGuide.md') diff --git a/.github/crashdetect/CrashDetectSetupGuide.md b/.github/crashdetect/CrashDetectSetupGuide.md new file mode 100644 index 00000000..dd04d0fa --- /dev/null +++ b/.github/crashdetect/CrashDetectSetupGuide.md @@ -0,0 +1,265 @@ +# Crash Detect USB Setup Guide: +# Automating Crash Detection and OS Reinstall of Target Test Systems + +--- + +## A) Overview + +This guide walks through setting up a new bootable WinPE USB drive using: + +- A **Host Controller** (to build the USB) +- A **bootable WinPE USB** (automatic crash detection and OS reinstall) +- A **target test system** + +### High-level flow + +1. Download Windows image (ISO) +2. Install Windows ADK + WinPE add-on +3. Create bootable WinPE USB +4. Copy image + scripts to USB +5. Boot up target system +6. OPTIONAL: Install OS on new Target System + +--- + +## B) Requirements + +### Host Controller +- Windows 11 25H2 +- Administrator privileges +- USB drive (>= 64GB recommended) +- Internet connection + +### Target System +- Windows 11 25H2 +- BIOS boot priority set to **USB boot** and **Secure Boot disabled** +- Windows System failure recovery set to **"Automatically restart"** +- Willing to wipe disk (automatic OS reinstall from crash) + +--- + +## C) Download Required Software and Scripts onto the Host Controller + +### Windows OS Image (ISO) + +- [Download Windows 11 (official)](https://www.microsoft.com/en-us/software-download/windows11) +- Go to section "Download Windows 11 Disk Image (ISO) for x64 devices". +- Select the option "Windows 11 (multi-edition ISO for x64 devices)". +- Click "Confirm" button. +- Section "Select the product language" should appear. +- Select your language option. (Ex: "English (United States)") +- Click "Confirm" button. +- Section "Download - Windows 11 English" should appear. +- Click "64-bit Download" button. +- In File Explorer, go to the location you downloaded the ISO file "Win11_25H2_English_x64_v2.iso" to. +- Right-click on the ISO file and select "Mount". + - If the "Open File - Security Warning" prompt pops up after a minute then click "Open". + - (The prompt may be hidden behind other Windows.) +- Create new folder and subfolder "C:\WinPE_USB\Images". +- Go to the "%MountDriveLetter%:\sources" folder and copy the **"install.wim"** file to **"C:\WinPE_USB\Images"**. + - This is the Windows 11 OS image file that the DISM tool will need to deploy the OS. + - This file will be copied over to the USB later after bootable WinPE USB creation. +- Right-click on the %MountDriveLetter% and select "Eject" to unmount the ISO image. + +--- + +### Windows Assessment and Deployment Kit (Deployment Tools) & Windows PE Add-on + +- [Download Windows ADK & WinPE Add-on](https://learn.microsoft.com/en-us/windows-hardware/get-started/adk-install) +- Go to section "Download the ADK 10.1.26100.2454 (December 2024)". +- Click on the link "Download the Windows ADK 10.1.26100.2454 (December 2024)" to download the "adksetup.exe" installer. +- Click on the link "Download the Windows PE add-on for the Windows ADK 10.1.26100.2454 (December 2024)" to download the "adkwinpesetup.exe" installer. +Install ADK: +- Double-click on the "adksetup.exe" from the location you downloaded the file to launch the installer. +- "Specify Location" page, click "Next", to install at default location. +- "Windows Kits Privacy" page, select your privacy option, click "Next". +- "License Agreement" page, click "Accept". +- "Select the features you want to install" page, confirm "Deployment Tools" is checked, then click "Install". +- If "User Account Control" prompt appears, click "Yes" to begin installation process. +- "Installing features..." page, wait for installation process to complete. +- "Welcome to the Windows Assessment and Deployment Kit!" page, click "Close". +Install WinPE Add-on: **Important:** Install **ADK first**, then WinPE add-on +- Double-click on the "adkwinpesetup.exe" from the location you downloaded the file to launch the installer. +- "Specify Location" page, click "Next", to install at default location. +- "Windows Kits Privacy" page, select your privacy option, click "Next". +- "License Agreement" page, click "Accept". +- "Select the features you want to install" page, confirm "Windows Preinstallation Environment (Windows PE)" is checked, then click "Install". +- If "User Account Control" prompt appears, click "Yes" to begin installation process. +- "Installing features..." page, wait for installation process to complete. +- "Welcome to the Windows Assessment and Deployment Kit Windows Preinstallation Environment Add-ons!" page, click "Close". + +--- + +### Unattend and Script Files from GitHub +- [Windows-driver-samples/tree/main/.github/crashdetect](https://github.com/microsoft/Windows-driver-samples/tree/main/.github/crashdetect) +- Create directory **"C:\WinPE_USB\Scripts\"** and copy the downloaded files here. + - CrashDetectCreateUsb.cmd + - CrashDetectOsReinstall.cmd + - Unattend.xml + +--- + +## D) Create Bootable WinPE USB + +- [Create bootable Windows PE media](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/winpe-create-usb-bootable-drive) +- **TIP:** It's a good idea to make a backup copy of the original **"winpe.wim"** image file before editing it in the following steps. +- Plug a USB into the Host Controller. + +- Confirm the folder **"C:\WinPE_USB"** and its subfolders **"Scripts"** and **"Images"** exist. +- Confirm the "Scripts" subfolder contains the following files that were downloaded from previous steps. +``` + CrashDetectOsReinstall.cmd + Unattend.xml +``` +- Confirm the "Images" subfolder contains the Win11 OS image file. +``` + install.wim +``` + +### OPTION 1: Use the "CrashDetectCreateUsb.cmd" script to create the USB automatically. + +- Start a "Command Prompt" running as administrator. +- Run the script by typing the following line into the Command Prompt. +``` + "C:\WinPE_USB\Scripts\CrashDetectCreateUsb.cmd" +``` +- The script will display a list of detected disk drives, usually Disk 0 is the OS disk, do not select that disk. +- Prompt 1: will ask you to enter the Disk number of your USB drive. +- Prompt 2: will confirm one last time before wiping out the USB drive. +- The last step will copy over the "install.wim" OS image to the USB, which could take a while. + +### OPTION 2: Follow the steps below to create the USB manually. + +#### 1. Make sure your PC has the ADK and ADK Windows PE add-on installed. + - Start the "Deployment and Imaging Tools Environment" running as administrator. + +#### 2. Update the "startnet.cmd" autorun script in the WinPE boot image. + - Mount the WinPE boot image (winpe.wim) using DISM. +```text + cd "..\Windows Preinstallation Environment\amd64" + md C:\WinPE_amd64\mount + Dism /Mount-Image /ImageFile:"en-us\winpe.wim" /index:1 /MountDir:"C:\WinPE_amd64\mount" +``` + - Adds the "CrashDetectOsReinstall.cmd" script to the "startnet.cmd" script. +```text + ( + echo wpeinit + echo. + echo @echo off + echo REM Find USB drive. + echo for %%D in (D E F G H I J K L M N O P Q R S T U V W Y Z^) do ^( + echo if exist %%D:Scripts\CrashDetectOsReinstall.cmd ^( + echo call %%D:Scripts\CrashDetectOsReinstall.cmd + echo goto EOF + echo ^) + echo ^) + ) > "C:\WinPE_amd64\mount\Windows\System32\startnet.cmd" +``` + - Unmount the WinPE image using DISM. +```text + Dism /Unmount-Image /MountDir:"C:\WinPE_amd64\mount" /commit +``` + - Delete folder "C:\WinPE_amd64", else the next step below will fail to copy PE files. +```text + rmdir /s /q "C:\WinPE_amd64" +``` + +#### 3. Create and format a multiple partition USB drive. + - [Create a multiple partition USB drive](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/winpe--use-a-single-usb-key-for-winpe-and-a-wim-file---wim#option-1-create-a-multiple-partition-usb-drive) + - Attach a USB large enough for 2GB WinPE partition + WinUSB partition (Win11 WIM 8GB + Memory dump files 16GB-64GB + Scripts). + - Follow instructions for Option 1 on the following website to partition and format your USB drive. +```txt + diskpart + list disk + select disk X (where X is your USB drive) + clean + create partition primary size=2048 + active + format fs=FAT32 quick label="WinPE" + assign letter=P + create partition primary + format fs=NTFS quick label="WinUSB" + assign letter=U + exit +``` + +#### 4. Create a bootable Windows PE USB drive. + - Copying WinPE boot files to a working directory. +```txt + copype amd64 C:\WinPE_amd64 +``` + - Copy the WinPE files to the WinPE partition on USB. +```txt + MakeWinPEMedia /UFD C:\WinPE_amd64 P: /bootex +``` + +--- + +#### 5. Copy scripts and OS install image over to WinUSB partition on USB. + + - Copy Script files over to USB. +```txt + xcopy "C:\WinPE_USB\Scripts\" "U:\Scripts\" /e /i +``` + - Copy Windows 11 OS WIM file over to USB, this could take a while... +```txt + xcopy "C:\WinPE_USB\Images\install.wim" "U:\Images\" /i +``` + +--- + +## E) Boot Up Target System + +- Insert USB into target PC +- Power on +- Enter boot menu (F12 / ESC / DEL depending on vendor) +- Confirm BIOS/UEFI setting has USB Drive as the first boot priority. (Varies among vendors) +- Confirm Secure Boot setting is Disabled +- Save BIOS settings to reboot target system. +- WinPE will automatically launch the "startnet.cmd" script we edited earlier in the "winpe.wim" image. +- The script will call "wpeinit", then our "CrashDetectOsReinstall.cmd" script to begin automatic OS crash detection and reimage for WDK driver testing. + +--- + +## F). OPTIONAL: Install OS on new Target System +### - On the bootable USB's second partition "WinPE_USB" +- Create the folder **"Logs"**. +- Create an empty file **"InstallOs.flg"** in that folder. + - (In File Explorer, ensure file name extensions are visible, else the filename may be accidentally set to "InstallOs.flg.txt") +- Plug USB into target system and reboot into USB. +- The USB will detect the flag and begin reinstalling the OS immediately. + - **WARNING**: There will be **NO** prompt to reconfirm OS install, be sure to plug into the correct target system. + - Do **NOT** leave this USB plugged into the Host Controller when this flag is set, to avoid accidental OS reinstall. + +--- + +## Troubleshooting + +### USB won't boot +- Check BIOS boot order +- Disable Secure Boot if needed + +### Disk not visible in WinPE +- Missing storage drivers + +### Windows doesn't boot +- Re-run `bcdboot` +- Verify partition layout + +--- + +## Reference Documentation + +- [WinPE: Create bootable media](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/winpe-create-usb-bootable-drive) +- [WinPE overview](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/winpe-intro) +- [Capture and apply Windows (WIM)](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/capture-and-apply-windows-using-a-single-wim) + +--- + +## Summary + +This setup uses: + +- **ADK + WinPE** -> build bootable environment +- **ISO** -> get Windows image +- **DISM + BCDBoot** -> deploy OS -- cgit v1.3.1 From 5602082b35d0dd1e28b7c312778d65f9d7738fe3 Mon Sep 17 00:00:00 2001 From: dunix2000 Date: Thu, 25 Jun 2026 12:22:58 -0700 Subject: - Updated the manual USB creation instructions to match the updated script. - Added section G) OPTIONAL: Add a Custom Script to Windows Setup. - Removed Create Bootable WinPE USB link from section D). --- .github/crashdetect/CrashDetectSetupGuide.md | 74 ++++++++++++++-------------- 1 file changed, 38 insertions(+), 36 deletions(-) (limited to '.github/crashdetect/CrashDetectSetupGuide.md') diff --git a/.github/crashdetect/CrashDetectSetupGuide.md b/.github/crashdetect/CrashDetectSetupGuide.md index dd04d0fa..56028f47 100644 --- a/.github/crashdetect/CrashDetectSetupGuide.md +++ b/.github/crashdetect/CrashDetectSetupGuide.md @@ -91,8 +91,8 @@ Install WinPE Add-on: **Important:** Install **ADK first**, then WinPE add-on --- ### Unattend and Script Files from GitHub -- [Windows-driver-samples/tree/main/.github/crashdetect](https://github.com/microsoft/Windows-driver-samples/tree/main/.github/crashdetect) -- Create directory **"C:\WinPE_USB\Scripts\"** and copy the downloaded files here. +- Download files from [Windows-driver-samples/tree/main/.github/crashdetect](https://github.com/microsoft/Windows-driver-samples/tree/main/.github/crashdetect) +- Create directory **"C:\WinPE_USB\Scripts\"** and copy the following downloaded files to there. - CrashDetectCreateUsb.cmd - CrashDetectOsReinstall.cmd - Unattend.xml @@ -100,18 +100,18 @@ Install WinPE Add-on: **Important:** Install **ADK first**, then WinPE add-on --- ## D) Create Bootable WinPE USB - -- [Create bootable Windows PE media](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/winpe-create-usb-bootable-drive) - **TIP:** It's a good idea to make a backup copy of the original **"winpe.wim"** image file before editing it in the following steps. -- Plug a USB into the Host Controller. + - C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\en-us\winpe.wim +- Plug a USB into the Host Controller. +- Check to make sure drive letters **A:** and **B:** are not currently used by any other drive. If used by the target USB, it's okay. - Confirm the folder **"C:\WinPE_USB"** and its subfolders **"Scripts"** and **"Images"** exist. -- Confirm the "Scripts" subfolder contains the following files that were downloaded from previous steps. +- Confirm the **"Scripts"** subfolder contains the following files that were downloaded from previous steps. ``` CrashDetectOsReinstall.cmd Unattend.xml ``` -- Confirm the "Images" subfolder contains the Win11 OS image file. +- Confirm the **"Images"** subfolder contains the Win11 OS image file. ``` install.wim ``` @@ -137,8 +137,8 @@ Install WinPE Add-on: **Important:** Install **ADK first**, then WinPE add-on - Mount the WinPE boot image (winpe.wim) using DISM. ```text cd "..\Windows Preinstallation Environment\amd64" - md C:\WinPE_amd64\mount - Dism /Mount-Image /ImageFile:"en-us\winpe.wim" /index:1 /MountDir:"C:\WinPE_amd64\mount" + md C:\WinPE_USB\WinPE_amd64\mount + Dism /Mount-Image /ImageFile:"en-us\winpe.wim" /index:1 /MountDir:"C:\WinPE_USB\WinPE_amd64\mount" ``` - Adds the "CrashDetectOsReinstall.cmd" script to the "startnet.cmd" script. ```text @@ -153,15 +153,15 @@ Install WinPE Add-on: **Important:** Install **ADK first**, then WinPE add-on echo goto EOF echo ^) echo ^) - ) > "C:\WinPE_amd64\mount\Windows\System32\startnet.cmd" + ) > "C:\WinPE_USB\WinPE_amd64\mount\Windows\System32\startnet.cmd" ``` - Unmount the WinPE image using DISM. ```text - Dism /Unmount-Image /MountDir:"C:\WinPE_amd64\mount" /commit + Dism /Unmount-Image /MountDir:"C:\WinPE_USB\WinPE_amd64\mount" /commit ``` - - Delete folder "C:\WinPE_amd64", else the next step below will fail to copy PE files. + - Delete folder "C:\WinPE_USB\WinPE_amd64", else the "copype.cmd" below will fail if the folder is already present. ```text - rmdir /s /q "C:\WinPE_amd64" + rmdir /s /q "C:\WinPE_USB\WinPE_amd64" ``` #### 3. Create and format a multiple partition USB drive. @@ -176,21 +176,21 @@ Install WinPE Add-on: **Important:** Install **ADK first**, then WinPE add-on create partition primary size=2048 active format fs=FAT32 quick label="WinPE" - assign letter=P + assign letter=A create partition primary format fs=NTFS quick label="WinUSB" - assign letter=U + assign letter=B exit ``` #### 4. Create a bootable Windows PE USB drive. - Copying WinPE boot files to a working directory. ```txt - copype amd64 C:\WinPE_amd64 + copype.cmd amd64 "C:\WinPE_USB\WinPE_amd64" ``` - Copy the WinPE files to the WinPE partition on USB. ```txt - MakeWinPEMedia /UFD C:\WinPE_amd64 P: /bootex + MakeWinPEMedia.cmd /UFD /F "C:\WinPE_USB\WinPE_amd64" "A:" /bootex ``` --- @@ -199,11 +199,11 @@ Install WinPE Add-on: **Important:** Install **ADK first**, then WinPE add-on - Copy Script files over to USB. ```txt - xcopy "C:\WinPE_USB\Scripts\" "U:\Scripts\" /e /i + xcopy "C:\WinPE_USB\Scripts\" "B:\Scripts\" /E /I /R /Y ``` - Copy Windows 11 OS WIM file over to USB, this could take a while... ```txt - xcopy "C:\WinPE_USB\Images\install.wim" "U:\Images\" /i + robocopy "C:\WinPE_USB\Images" "B:\Images" install.wim /ETA /J ``` --- @@ -221,8 +221,8 @@ Install WinPE Add-on: **Important:** Install **ADK first**, then WinPE add-on --- -## F). OPTIONAL: Install OS on new Target System -### - On the bootable USB's second partition "WinPE_USB" +## F) OPTIONAL: Install OS on new Target System +### On the bootable USB's second partition "WinPE_USB" - Create the folder **"Logs"**. - Create an empty file **"InstallOs.flg"** in that folder. - (In File Explorer, ensure file name extensions are visible, else the filename may be accidentally set to "InstallOs.flg.txt") @@ -233,33 +233,35 @@ Install WinPE Add-on: **Important:** Install **ADK first**, then WinPE add-on --- -## Troubleshooting +## G) OPTIONAL: Add a Custom Script to Windows Setup +### Setupcomplete.cmd and ErrorHandler.cmd +- These are custom scripts that run during or after the Windows Setup process. They can be used to install applications or run other tasks by using cscript/wscript scripts. +- Follow instructions on this website: + - (https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/add-a-custom-script-to-windows-setup) -### USB won't boot -- Check BIOS boot order -- Disable Secure Boot if needed +--- +## Troubleshooting +### USB won't boot +- Check BIOS boot order +- Disable Secure Boot ### Disk not visible in WinPE -- Missing storage drivers - +- Missing storage drivers ### Windows doesn't boot -- Re-run `bcdboot` -- Verify partition layout +- Re-run `bcdboot` +- Verify partition layout --- ## Reference Documentation - -- [WinPE: Create bootable media](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/winpe-create-usb-bootable-drive) - [WinPE overview](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/winpe-intro) +- [WinPE: Create bootable media](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/winpe-create-usb-bootable-drive) - [Capture and apply Windows (WIM)](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/capture-and-apply-windows-using-a-single-wim) --- ## Summary - This setup uses: - -- **ADK + WinPE** -> build bootable environment -- **ISO** -> get Windows image -- **DISM + BCDBoot** -> deploy OS +- **ADK + WinPE** -> build bootable environment +- **ISO** -> get Windows image +- **DISM + BCDBoot** -> deploy OS \ No newline at end of file -- cgit v1.3.1 From 3df41b0d98b8a057c12670fe447f9ad64e99bd22 Mon Sep 17 00:00:00 2001 From: dunix2000 Date: Thu, 25 Jun 2026 16:22:16 -0700 Subject: - Added resolution if "bootsect.exe" fails due to Windows Security block. --- .github/crashdetect/CrashDetectSetupGuide.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to '.github/crashdetect/CrashDetectSetupGuide.md') diff --git a/.github/crashdetect/CrashDetectSetupGuide.md b/.github/crashdetect/CrashDetectSetupGuide.md index 56028f47..91135795 100644 --- a/.github/crashdetect/CrashDetectSetupGuide.md +++ b/.github/crashdetect/CrashDetectSetupGuide.md @@ -242,6 +242,17 @@ Install WinPE Add-on: **Important:** Install **ADK first**, then WinPE add-on --- ## Troubleshooting +### ERROR: Script "Makewinpemedia.cmd" failed to make WinPE USB bootable! +- If your Host Controller is connected to a secured IT network, the actions in this script may have been blocked. +- Check to see if **"bootsect.exe"** was blocked by Windows Security. +```txt + - Run "Windows Security" + - Select "Virus & threat protection" + - Click link "Manage ransomware protection" at the bottom + - Click link "Allow an app through Controlled folder access" + - Click button "Add an allowed app" button, then select option "Recently blocked apps" + - Scroll down and look for the "bootsect.exe" app to add to allow list +``` ### USB won't boot - Check BIOS boot order - Disable Secure Boot -- cgit v1.3.1 From 0592e5dd7118f3e97c5f885b42fc99d6f310e55e Mon Sep 17 00:00:00 2001 From: dunix2000 Date: Thu, 25 Jun 2026 17:21:55 -0700 Subject: - Updated formatting of H1 Title, names of folders, scripts and programs. --- .github/crashdetect/CrashDetectSetupGuide.md | 73 ++++++++++++++-------------- 1 file changed, 36 insertions(+), 37 deletions(-) (limited to '.github/crashdetect/CrashDetectSetupGuide.md') diff --git a/.github/crashdetect/CrashDetectSetupGuide.md b/.github/crashdetect/CrashDetectSetupGuide.md index 91135795..c41b8d58 100644 --- a/.github/crashdetect/CrashDetectSetupGuide.md +++ b/.github/crashdetect/CrashDetectSetupGuide.md @@ -1,5 +1,4 @@ -# Crash Detect USB Setup Guide: -# Automating Crash Detection and OS Reinstall of Target Test Systems +# Crash Detect USB Setup Guide:
Automating Crash Detection and OS Reinstall of Target Test Systems --- @@ -51,12 +50,14 @@ This guide walks through setting up a new bootable WinPE USB drive using: - Click "Confirm" button. - Section "Download - Windows 11 English" should appear. - Click "64-bit Download" button. -- In File Explorer, go to the location you downloaded the ISO file "Win11_25H2_English_x64_v2.iso" to. + +Mount ISO: +- In File Explorer, go to the location you downloaded the ISO file `Win11_25H2_English_x64_v2.iso` to. - Right-click on the ISO file and select "Mount". - If the "Open File - Security Warning" prompt pops up after a minute then click "Open". - (The prompt may be hidden behind other Windows.) -- Create new folder and subfolder "C:\WinPE_USB\Images". -- Go to the "%MountDriveLetter%:\sources" folder and copy the **"install.wim"** file to **"C:\WinPE_USB\Images"**. +- Create new folder and subfolder `C:\WinPE_USB\Images`. +- Go to the `%MountDriveLetter%:\sources` folder and copy the **`install.wim`** file to **`C:\WinPE_USB\Images`**. - This is the Windows 11 OS image file that the DISM tool will need to deploy the OS. - This file will be copied over to the USB later after bootable WinPE USB creation. - Right-click on the %MountDriveLetter% and select "Eject" to unmount the ISO image. @@ -67,10 +68,11 @@ This guide walks through setting up a new bootable WinPE USB drive using: - [Download Windows ADK & WinPE Add-on](https://learn.microsoft.com/en-us/windows-hardware/get-started/adk-install) - Go to section "Download the ADK 10.1.26100.2454 (December 2024)". -- Click on the link "Download the Windows ADK 10.1.26100.2454 (December 2024)" to download the "adksetup.exe" installer. -- Click on the link "Download the Windows PE add-on for the Windows ADK 10.1.26100.2454 (December 2024)" to download the "adkwinpesetup.exe" installer. +- Click on the link "Download the Windows ADK 10.1.26100.2454 (December 2024)" to download the `adksetup.exe` installer. +- Click on the link "Download the Windows PE add-on for the Windows ADK 10.1.26100.2454 (December 2024)" to download the `adkwinpesetup.exe` installer. + Install ADK: -- Double-click on the "adksetup.exe" from the location you downloaded the file to launch the installer. +- Double-click on the `adksetup.exe` from the location you downloaded the file to launch the installer. - "Specify Location" page, click "Next", to install at default location. - "Windows Kits Privacy" page, select your privacy option, click "Next". - "License Agreement" page, click "Accept". @@ -78,8 +80,9 @@ Install ADK: - If "User Account Control" prompt appears, click "Yes" to begin installation process. - "Installing features..." page, wait for installation process to complete. - "Welcome to the Windows Assessment and Deployment Kit!" page, click "Close". -Install WinPE Add-on: **Important:** Install **ADK first**, then WinPE add-on -- Double-click on the "adkwinpesetup.exe" from the location you downloaded the file to launch the installer. + +Install WinPE Add-on:
**Important:** Install **ADK first**, then WinPE add-on +- Double-click on the `adkwinpesetup.exe` from the location you downloaded the file to launch the installer. - "Specify Location" page, click "Next", to install at default location. - "Windows Kits Privacy" page, select your privacy option, click "Next". - "License Agreement" page, click "Accept". @@ -92,10 +95,10 @@ Install WinPE Add-on: **Important:** Install **ADK first**, then WinPE add-on ### Unattend and Script Files from GitHub - Download files from [Windows-driver-samples/tree/main/.github/crashdetect](https://github.com/microsoft/Windows-driver-samples/tree/main/.github/crashdetect) -- Create directory **"C:\WinPE_USB\Scripts\"** and copy the following downloaded files to there. - - CrashDetectCreateUsb.cmd - - CrashDetectOsReinstall.cmd - - Unattend.xml +- Create directory **`C:\WinPE_USB\Scripts\`** and copy the following downloaded files to there. + - `CrashDetectCreateUsb.cmd` + - `CrashDetectOsReinstall.cmd` + - `Unattend.xml` --- @@ -105,20 +108,16 @@ Install WinPE Add-on: **Important:** Install **ADK first**, then WinPE add-on - Plug a USB into the Host Controller. - Check to make sure drive letters **A:** and **B:** are not currently used by any other drive. If used by the target USB, it's okay. -- Confirm the folder **"C:\WinPE_USB"** and its subfolders **"Scripts"** and **"Images"** exist. -- Confirm the **"Scripts"** subfolder contains the following files that were downloaded from previous steps. -``` - CrashDetectOsReinstall.cmd - Unattend.xml -``` -- Confirm the **"Images"** subfolder contains the Win11 OS image file. -``` - install.wim -``` +- Confirm the folder **`C:\WinPE_USB`** and its subfolders **`Scripts`** and **`Images`** exist. +- Confirm the **`Scripts`** subfolder contains the following files that were downloaded from previous steps. + `CrashDetectOsReinstall.cmd` + `Unattend.xml` +- Confirm the **`Images`** subfolder contains the Win11 OS image file. + `install.wim` -### OPTION 1: Use the "CrashDetectCreateUsb.cmd" script to create the USB automatically. +### OPTION 1: Use the `CrashDetectCreateUsb.cmd` script to create the USB automatically. -- Start a "Command Prompt" running as administrator. +- Start a `Command Prompt` running as administrator. - Run the script by typing the following line into the Command Prompt. ``` "C:\WinPE_USB\Scripts\CrashDetectCreateUsb.cmd" @@ -126,21 +125,21 @@ Install WinPE Add-on: **Important:** Install **ADK first**, then WinPE add-on - The script will display a list of detected disk drives, usually Disk 0 is the OS disk, do not select that disk. - Prompt 1: will ask you to enter the Disk number of your USB drive. - Prompt 2: will confirm one last time before wiping out the USB drive. -- The last step will copy over the "install.wim" OS image to the USB, which could take a while. +- The last step will copy over the `install.wim` OS image to the USB, which could take a while. ### OPTION 2: Follow the steps below to create the USB manually. #### 1. Make sure your PC has the ADK and ADK Windows PE add-on installed. - - Start the "Deployment and Imaging Tools Environment" running as administrator. + - Start the `Deployment and Imaging Tools Environment` running as administrator. -#### 2. Update the "startnet.cmd" autorun script in the WinPE boot image. - - Mount the WinPE boot image (winpe.wim) using DISM. +#### 2. Update the `startnet.cmd` autorun script in the WinPE boot image. + - Mount the WinPE boot image (`winpe.wim`) using DISM. ```text cd "..\Windows Preinstallation Environment\amd64" - md C:\WinPE_USB\WinPE_amd64\mount + mkdir "C:\WinPE_USB\WinPE_amd64\mount" Dism /Mount-Image /ImageFile:"en-us\winpe.wim" /index:1 /MountDir:"C:\WinPE_USB\WinPE_amd64\mount" ``` - - Adds the "CrashDetectOsReinstall.cmd" script to the "startnet.cmd" script. + - Adds the `CrashDetectOsReinstall.cmd` script to the `startnet.cmd` script. ```text ( echo wpeinit @@ -159,7 +158,7 @@ Install WinPE Add-on: **Important:** Install **ADK first**, then WinPE add-on ```text Dism /Unmount-Image /MountDir:"C:\WinPE_USB\WinPE_amd64\mount" /commit ``` - - Delete folder "C:\WinPE_USB\WinPE_amd64", else the "copype.cmd" below will fail if the folder is already present. + - Delete folder `C:\WinPE_USB\WinPE_amd64`, else the `copype.cmd` below will fail if the folder is already present. ```text rmdir /s /q "C:\WinPE_USB\WinPE_amd64" ``` @@ -222,10 +221,10 @@ Install WinPE Add-on: **Important:** Install **ADK first**, then WinPE add-on --- ## F) OPTIONAL: Install OS on new Target System -### On the bootable USB's second partition "WinPE_USB" -- Create the folder **"Logs"**. -- Create an empty file **"InstallOs.flg"** in that folder. - - (In File Explorer, ensure file name extensions are visible, else the filename may be accidentally set to "InstallOs.flg.txt") +### On the bootable USB's second partition `WinPE_USB` +- Create the folder **`Logs`**. +- Create an empty file **`InstallOs.flg`** in that folder. + - (In File Explorer, ensure file name extensions are visible, else the filename may be accidentally set to `InstallOs.flg.txt`) - Plug USB into target system and reboot into USB. - The USB will detect the flag and begin reinstalling the OS immediately. - **WARNING**: There will be **NO** prompt to reconfirm OS install, be sure to plug into the correct target system. -- cgit v1.3.1 From 39dff894c657b24712c725a9dcc5ab652a5fecb2 Mon Sep 17 00:00:00 2001 From: dunix2000 Date: Fri, 26 Jun 2026 10:15:51 -0700 Subject: Apply suggestion from @5an7y-Microsoft Co-authored-by: 5an7y-Microsoft --- .github/crashdetect/CrashDetectSetupGuide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/crashdetect/CrashDetectSetupGuide.md') diff --git a/.github/crashdetect/CrashDetectSetupGuide.md b/.github/crashdetect/CrashDetectSetupGuide.md index c41b8d58..fb0cb78e 100644 --- a/.github/crashdetect/CrashDetectSetupGuide.md +++ b/.github/crashdetect/CrashDetectSetupGuide.md @@ -104,7 +104,7 @@ Install WinPE Add-on:
**Important:** Install **ADK first**, then WinPE add-o ## D) Create Bootable WinPE USB - **TIP:** It's a good idea to make a backup copy of the original **"winpe.wim"** image file before editing it in the following steps. - - C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\en-us\winpe.wim + - `C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\en-us\winpe.wim` - Plug a USB into the Host Controller. - Check to make sure drive letters **A:** and **B:** are not currently used by any other drive. If used by the target USB, it's okay. -- cgit v1.3.1 From 1ccb7881b270fd8f8a41fc71618680f57ed05319 Mon Sep 17 00:00:00 2001 From: dunix2000 Date: Fri, 26 Jun 2026 10:19:36 -0700 Subject: Apply suggestions from code review Co-authored-by: 5an7y-Microsoft --- .github/crashdetect/CrashDetectSetupGuide.md | 32 ++++++++-------------------- 1 file changed, 9 insertions(+), 23 deletions(-) (limited to '.github/crashdetect/CrashDetectSetupGuide.md') diff --git a/.github/crashdetect/CrashDetectSetupGuide.md b/.github/crashdetect/CrashDetectSetupGuide.md index fb0cb78e..77d2a748 100644 --- a/.github/crashdetect/CrashDetectSetupGuide.md +++ b/.github/crashdetect/CrashDetectSetupGuide.md @@ -110,10 +110,10 @@ Install WinPE Add-on:
**Important:** Install **ADK first**, then WinPE add-o - Check to make sure drive letters **A:** and **B:** are not currently used by any other drive. If used by the target USB, it's okay. - Confirm the folder **`C:\WinPE_USB`** and its subfolders **`Scripts`** and **`Images`** exist. - Confirm the **`Scripts`** subfolder contains the following files that were downloaded from previous steps. - `CrashDetectOsReinstall.cmd` - `Unattend.xml` + - `CrashDetectOsReinstall.cmd` + - `Unattend.xml` - Confirm the **`Images`** subfolder contains the Win11 OS image file. - `install.wim` + - `install.wim` ### OPTION 1: Use the `CrashDetectCreateUsb.cmd` script to create the USB automatically. @@ -134,10 +134,6 @@ Install WinPE Add-on:
**Important:** Install **ADK first**, then WinPE add-o #### 2. Update the `startnet.cmd` autorun script in the WinPE boot image. - Mount the WinPE boot image (`winpe.wim`) using DISM. -```text - cd "..\Windows Preinstallation Environment\amd64" - mkdir "C:\WinPE_USB\WinPE_amd64\mount" - Dism /Mount-Image /ImageFile:"en-us\winpe.wim" /index:1 /MountDir:"C:\WinPE_USB\WinPE_amd64\mount" ``` - Adds the `CrashDetectOsReinstall.cmd` script to the `startnet.cmd` script. ```text @@ -244,14 +240,12 @@ Install WinPE Add-on:
**Important:** Install **ADK first**, then WinPE add-o ### ERROR: Script "Makewinpemedia.cmd" failed to make WinPE USB bootable! - If your Host Controller is connected to a secured IT network, the actions in this script may have been blocked. - Check to see if **"bootsect.exe"** was blocked by Windows Security. -```txt - - Run "Windows Security" - - Select "Virus & threat protection" - - Click link "Manage ransomware protection" at the bottom - - Click link "Allow an app through Controlled folder access" - - Click button "Add an allowed app" button, then select option "Recently blocked apps" - - Scroll down and look for the "bootsect.exe" app to add to allow list -``` + - Run "Windows Security" + - Select "Virus & threat protection" + - Click link "Manage ransomware protection" at the bottom + - Click link "Allow an app through Controlled folder access" + - Click button "Add an allowed app" button, then select option "Recently blocked apps" + - Scroll down and look for the "bootsect.exe" app to add to allow list ### USB won't boot - Check BIOS boot order - Disable Secure Boot @@ -267,11 +261,3 @@ Install WinPE Add-on:
**Important:** Install **ADK first**, then WinPE add-o - [WinPE overview](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/winpe-intro) - [WinPE: Create bootable media](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/winpe-create-usb-bootable-drive) - [Capture and apply Windows (WIM)](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/capture-and-apply-windows-using-a-single-wim) - ---- - -## Summary -This setup uses: -- **ADK + WinPE** -> build bootable environment -- **ISO** -> get Windows image -- **DISM + BCDBoot** -> deploy OS \ No newline at end of file -- cgit v1.3.1 From a161e16e37c65ad538f63d323d418e1917e89a37 Mon Sep 17 00:00:00 2001 From: dunix2000 Date: Fri, 26 Jun 2026 10:25:15 -0700 Subject: Apply suggestion from @5an7y-Microsoft Co-authored-by: 5an7y-Microsoft --- .github/crashdetect/CrashDetectSetupGuide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github/crashdetect/CrashDetectSetupGuide.md') diff --git a/.github/crashdetect/CrashDetectSetupGuide.md b/.github/crashdetect/CrashDetectSetupGuide.md index 77d2a748..88f7a3b7 100644 --- a/.github/crashdetect/CrashDetectSetupGuide.md +++ b/.github/crashdetect/CrashDetectSetupGuide.md @@ -119,8 +119,8 @@ Install WinPE Add-on:
**Important:** Install **ADK first**, then WinPE add-o - Start a `Command Prompt` running as administrator. - Run the script by typing the following line into the Command Prompt. -``` - "C:\WinPE_USB\Scripts\CrashDetectCreateUsb.cmd" +```cmd +C:\WinPE_USB\Scripts\CrashDetectCreateUsb.cmd ``` - The script will display a list of detected disk drives, usually Disk 0 is the OS disk, do not select that disk. - Prompt 1: will ask you to enter the Disk number of your USB drive. -- cgit v1.3.1 From 836b764a6493803928550b20a655eb758ac374b6 Mon Sep 17 00:00:00 2001 From: dunix2000 Date: Fri, 26 Jun 2026 11:21:48 -0700 Subject: - Formatting changes from txt to cmd. - Updated manual USB creation instructions and moved link to the Reference section. --- .github/crashdetect/CrashDetectSetupGuide.md | 90 ++++++++++++++-------------- 1 file changed, 45 insertions(+), 45 deletions(-) (limited to '.github/crashdetect/CrashDetectSetupGuide.md') diff --git a/.github/crashdetect/CrashDetectSetupGuide.md b/.github/crashdetect/CrashDetectSetupGuide.md index 88f7a3b7..fd351487 100644 --- a/.github/crashdetect/CrashDetectSetupGuide.md +++ b/.github/crashdetect/CrashDetectSetupGuide.md @@ -106,8 +106,8 @@ Install WinPE Add-on:
**Important:** Install **ADK first**, then WinPE add-o - **TIP:** It's a good idea to make a backup copy of the original **"winpe.wim"** image file before editing it in the following steps. - `C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\en-us\winpe.wim` -- Plug a USB into the Host Controller. -- Check to make sure drive letters **A:** and **B:** are not currently used by any other drive. If used by the target USB, it's okay. +- Plug a USB drive into the Host Controller. +- Check to make sure drive letters **A:** and **B:** are not currently used by any other drive. If used by the target USB drive, it's okay. - Confirm the folder **`C:\WinPE_USB`** and its subfolders **`Scripts`** and **`Images`** exist. - Confirm the **`Scripts`** subfolder contains the following files that were downloaded from previous steps. - `CrashDetectOsReinstall.cmd` @@ -122,9 +122,9 @@ Install WinPE Add-on:
**Important:** Install **ADK first**, then WinPE add-o ```cmd C:\WinPE_USB\Scripts\CrashDetectCreateUsb.cmd ``` -- The script will display a list of detected disk drives, usually Disk 0 is the OS disk, do not select that disk. +- The script will display a list of detected disk drives, usually Disk 0 is the OS disk, DO NOT select that disk. - Prompt 1: will ask you to enter the Disk number of your USB drive. -- Prompt 2: will confirm one last time before wiping out the USB drive. +- Prompt 2: will ask you to confirm one last time before wiping out the USB drive. - The last step will copy over the `install.wim` OS image to the USB, which could take a while. ### OPTION 2: Follow the steps below to create the USB manually. @@ -134,58 +134,56 @@ C:\WinPE_USB\Scripts\CrashDetectCreateUsb.cmd #### 2. Update the `startnet.cmd` autorun script in the WinPE boot image. - Mount the WinPE boot image (`winpe.wim`) using DISM. -``` - Adds the `CrashDetectOsReinstall.cmd` script to the `startnet.cmd` script. -```text - ( - echo wpeinit - echo. - echo @echo off - echo REM Find USB drive. - echo for %%D in (D E F G H I J K L M N O P Q R S T U V W Y Z^) do ^( - echo if exist %%D:Scripts\CrashDetectOsReinstall.cmd ^( - echo call %%D:Scripts\CrashDetectOsReinstall.cmd - echo goto EOF - echo ^) - echo ^) - ) > "C:\WinPE_USB\WinPE_amd64\mount\Windows\System32\startnet.cmd" +```cmd +( +echo wpeinit +echo. +echo @echo off +echo REM Find USB drive. +echo for %%D in (D E F G H I J K L M N O P Q R S T U V W Y Z^) do ^( +echo if exist %%D:Scripts\CrashDetectOsReinstall.cmd ^( +echo call %%D:Scripts\CrashDetectOsReinstall.cmd +echo goto EOF +echo ^) +echo ^) +) > "C:\WinPE_USB\WinPE_amd64\mount\Windows\System32\startnet.cmd" ``` - Unmount the WinPE image using DISM. -```text - Dism /Unmount-Image /MountDir:"C:\WinPE_USB\WinPE_amd64\mount" /commit +```cmd +Dism /Unmount-Image /MountDir:"C:\WinPE_USB\WinPE_amd64\mount" /commit ``` - Delete folder `C:\WinPE_USB\WinPE_amd64`, else the `copype.cmd` below will fail if the folder is already present. -```text - rmdir /s /q "C:\WinPE_USB\WinPE_amd64" +```cmd +rmdir /s /q "C:\WinPE_USB\WinPE_amd64" ``` #### 3. Create and format a multiple partition USB drive. - - [Create a multiple partition USB drive](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/winpe--use-a-single-usb-key-for-winpe-and-a-wim-file---wim#option-1-create-a-multiple-partition-usb-drive) - Attach a USB large enough for 2GB WinPE partition + WinUSB partition (Win11 WIM 8GB + Memory dump files 16GB-64GB + Scripts). - - Follow instructions for Option 1 on the following website to partition and format your USB drive. -```txt - diskpart - list disk - select disk X (where X is your USB drive) - clean - create partition primary size=2048 - active - format fs=FAT32 quick label="WinPE" - assign letter=A - create partition primary - format fs=NTFS quick label="WinUSB" - assign letter=B - exit + - Enter the following commands into the command prompt. +```cmd +diskpart +list disk +select disk X (where X is your USB drive) +clean +create partition primary size=2048 +active +format fs=FAT32 quick label="WinPE" +assign letter=A +create partition primary +format fs=NTFS quick label="WinUSB" +assign letter=B +exit ``` #### 4. Create a bootable Windows PE USB drive. - Copying WinPE boot files to a working directory. -```txt - copype.cmd amd64 "C:\WinPE_USB\WinPE_amd64" +```cmd +copype.cmd amd64 "C:\WinPE_USB\WinPE_amd64" ``` - Copy the WinPE files to the WinPE partition on USB. -```txt - MakeWinPEMedia.cmd /UFD /F "C:\WinPE_USB\WinPE_amd64" "A:" /bootex +```cmd +MakeWinPEMedia.cmd /UFD /F "C:\WinPE_USB\WinPE_amd64" "A:" /bootex ``` --- @@ -193,12 +191,12 @@ C:\WinPE_USB\Scripts\CrashDetectCreateUsb.cmd #### 5. Copy scripts and OS install image over to WinUSB partition on USB. - Copy Script files over to USB. -```txt - xcopy "C:\WinPE_USB\Scripts\" "B:\Scripts\" /E /I /R /Y +```cmd +xcopy "C:\WinPE_USB\Scripts\" "B:\Scripts\" /E /I /R /Y ``` - Copy Windows 11 OS WIM file over to USB, this could take a while... -```txt - robocopy "C:\WinPE_USB\Images" "B:\Images" install.wim /ETA /J +```cmd +robocopy "C:\WinPE_USB\Images" "B:\Images" install.wim /ETA /J ``` --- @@ -259,5 +257,7 @@ C:\WinPE_USB\Scripts\CrashDetectCreateUsb.cmd ## Reference Documentation - [WinPE overview](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/winpe-intro) +- [Create a USB drive with WinPE and data partitions](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/winpe--use-a-single-usb-key-for-winpe-and-a-wim-file---wim#create-a-usb-drive-with-winpe-and-data-partitions) - [WinPE: Create bootable media](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/winpe-create-usb-bootable-drive) - [Capture and apply Windows (WIM)](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/capture-and-apply-windows-using-a-single-wim) +- [Answer files (unattend.xml)](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/update-windows-settings-and-scripts-create-your-own-answer-file-sxs) \ No newline at end of file -- cgit v1.3.1 From 9b884c1a92cd0d15473f73fb7d103f1b9ffa3144 Mon Sep 17 00:00:00 2001 From: dunix2000 Date: Fri, 26 Jun 2026 11:35:06 -0700 Subject: - Add "OPTIONAL: Add a Custom Script to Windows Setup" to High-level flow section. --- .github/crashdetect/CrashDetectSetupGuide.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to '.github/crashdetect/CrashDetectSetupGuide.md') diff --git a/.github/crashdetect/CrashDetectSetupGuide.md b/.github/crashdetect/CrashDetectSetupGuide.md index fd351487..dc974507 100644 --- a/.github/crashdetect/CrashDetectSetupGuide.md +++ b/.github/crashdetect/CrashDetectSetupGuide.md @@ -3,7 +3,6 @@ --- ## A) Overview - This guide walks through setting up a new bootable WinPE USB drive using: - A **Host Controller** (to build the USB) @@ -11,13 +10,13 @@ This guide walks through setting up a new bootable WinPE USB drive using: - A **target test system** ### High-level flow - 1. Download Windows image (ISO) 2. Install Windows ADK + WinPE add-on 3. Create bootable WinPE USB 4. Copy image + scripts to USB 5. Boot up target system 6. OPTIONAL: Install OS on new Target System +7. OPTIONAL: Add a Custom Script to Windows Setup --- @@ -40,7 +39,6 @@ This guide walks through setting up a new bootable WinPE USB drive using: ## C) Download Required Software and Scripts onto the Host Controller ### Windows OS Image (ISO) - - [Download Windows 11 (official)](https://www.microsoft.com/en-us/software-download/windows11) - Go to section "Download Windows 11 Disk Image (ISO) for x64 devices". - Select the option "Windows 11 (multi-edition ISO for x64 devices)". @@ -65,7 +63,6 @@ Mount ISO: --- ### Windows Assessment and Deployment Kit (Deployment Tools) & Windows PE Add-on - - [Download Windows ADK & WinPE Add-on](https://learn.microsoft.com/en-us/windows-hardware/get-started/adk-install) - Go to section "Download the ADK 10.1.26100.2454 (December 2024)". - Click on the link "Download the Windows ADK 10.1.26100.2454 (December 2024)" to download the `adksetup.exe` installer. @@ -116,7 +113,6 @@ Install WinPE Add-on:
**Important:** Install **ADK first**, then WinPE add-o - `install.wim` ### OPTION 1: Use the `CrashDetectCreateUsb.cmd` script to create the USB automatically. - - Start a `Command Prompt` running as administrator. - Run the script by typing the following line into the Command Prompt. ```cmd @@ -128,7 +124,6 @@ C:\WinPE_USB\Scripts\CrashDetectCreateUsb.cmd - The last step will copy over the `install.wim` OS image to the USB, which could take a while. ### OPTION 2: Follow the steps below to create the USB manually. - #### 1. Make sure your PC has the ADK and ADK Windows PE add-on installed. - Start the `Deployment and Imaging Tools Environment` running as administrator. @@ -189,7 +184,6 @@ MakeWinPEMedia.cmd /UFD /F "C:\WinPE_USB\WinPE_amd64" "A:" /bootex --- #### 5. Copy scripts and OS install image over to WinUSB partition on USB. - - Copy Script files over to USB. ```cmd xcopy "C:\WinPE_USB\Scripts\" "B:\Scripts\" /E /I /R /Y @@ -202,7 +196,6 @@ robocopy "C:\WinPE_USB\Images" "B:\Images" install.wim /ETA /J --- ## E) Boot Up Target System - - Insert USB into target PC - Power on - Enter boot menu (F12 / ESC / DEL depending on vendor) -- cgit v1.3.1