Skip to content
OSDeploy PSModule and site pages are currently in preview until mid-September
For the complete documentation index, see llms.txt. This page is also available as Markdown.

WinpeStartup Core: Create a New Core Profile for Build-OSDeployBoot

Create an optional WinpeStartup Core profile folder that can be selected when building WinPE media.

Create a named folder under winpestartup-core when a customization should be optional. Build-OSDeployBoot displays every folder not named main in the WinpeStartup Core selection window.

Create and Select the Core Profile

1

Create the Profile Folder

Choose a descriptive folder name. This example creates a profile named Contoso:

$CoreProfile = Join-Path $env:ProgramData `
    'OSDeployCore\boot-assets\winpestartup-core\Contoso'

New-Item -Path $CoreProfile -ItemType Directory -Force | Out-Null

Do not name the folder main. The main folder is included automatically and does not appear in the selection window.

2

Add the Customization Files

Add the files required by this profile. For example, create an environment variable:

@'
CONTOSO_SITE=BranchOffice
'@ | Set-Content -LiteralPath (Join-Path $CoreProfile '.env') -Encoding utf8

The folder can also contain .reg registry files and trusted root certificates in .cer format.

3

Select the Profile During the Build

Start an interactive build:

Build-OSDeployBoot

In the Select WinpeStartup Core folders to add to this boot image window, select Contoso, then complete the remaining build prompts. You can select more than one Core profile or cancel to skip all optional profiles.

OSDeploy copies the selected folder to WinpeStartup\core\Contoso in the mounted image. Boot the resulting media to run the selected customizations.

Last updated

Was this helpful?