Skip to content

How to Boot OSD from USB devices

You can boot the CapaInstaller OSD environment from a USB key. This is useful when no network boot service is available to the device that you want to deploy. Images and configurations are still fetched from the OS Deployment server over HTTP. You configure the port for this communication when you set up the OS Deployment Service.

  1. In the CapaInstaller Console, under OS Deployment, right-click your OS Point.

  2. Select Boot Image → Create Boot File….

    OS Point context menu with Boot Image and Create Boot File selected

  3. Select Create Boot Image for 32-bit systems or Create Boot Image for 64-bit UEFI systems.

    Create Boot Image dialog with the 32-bit and 64-bit UEFI options

  4. Make sure that the path to your Windows ADK installation is correct.

    Create Boot File wizard with the Windows ADK path

  5. Select Next three times.

    Create Boot File wizard page with the Next button

  6. Select Commit. The boot file is created.

    Create Boot File wizard with the Commit button

    Create Boot File wizard copying the source files from the Windows ADK

  7. Locate the boot.wim file that was created.

    File Explorer showing the created boot.wim file in the Boot\amd64 folder

  1. Download BuildUSB.ps1 and save it with the .ps1 extension, for example as C:\USBKeyCreater\BuildUSB.ps1.

  2. Open the properties of the downloaded script and make sure that it isn’t blocked.

    Properties of the downloaded PowerShell script with the Unblock option

  1. Run a Deployment and Imaging Tools Environment prompt as administrator.

    Deployment and Imaging Tools Environment in the Start menu with Run as administrator

  2. Run the script from the prompt:

    Powershell -file C:\USBKeyCreater\BuildUSB.ps1
  3. In the Create a USB Key window, enter the values for your environment, and then select Build:

    • Path to Wimfile: the boot.wim file that you created.
    • Processor Architecture (ARCH): the architecture of the boot file, for example amd64.
    • Deployment URL: the URL of the OS Deployment service in the format http://<server>:<port>/ciosdeploy.
    • Temporary Working Folder: a local folder that the script can use while it builds the USB key.

    Create a USB Key window with the Path to Wimfile, Processor Architecture, Deployment URL and Temporary Working Folder fields

  4. If the temporary working folder already exists, you’re prompted to remove it. Press A for Yes to All.

    PowerShell prompt asking to confirm removal of the working folder with Yes to All

  5. Select the USB key in the list, and then select OK in the lower-right corner.

    List of USB drives to select the USB key to format

  6. When you’re prompted to confirm that the USB key is cleared, press Y for Yes.

    PowerShell prompt asking to confirm clearing the USB key with Yes

  7. Verify that the script completed successfully.

    PowerShell output showing that the USB key was created successfully

  8. Verify that the USB key has two partitions: a boot partition with the boot files, and an empty partition named CIREPO.

    File Explorer showing the two partitions on the USB key

You can now boot the device from the USB key and start OS Deployment.