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: Automate Customizations Using the main Folder

Automatically include shared WinpeStartup Core customizations in each OSDeploy WinPE build.

Store shared WinPE startup customizations in the main folder. Build-OSDeployBoot includes this folder automatically when it is present, without requiring a selection in the optional WinpeStartup Core folder picker.

Add Shared Customizations

1

Create the main Folder

Create the shared folder on the OSDeploy build computer:

$MainDirectory = Join-Path $env:ProgramData 'OSDeployCore\boot-assets\winpestartup-core\main'
New-Item -Path $MainDirectory -ItemType Directory -Force | Out-Null
2

Add Your Customization Files

Copy the files WinPE should use into main. For example, add a .env file, a .reg file, or a root certificate in .cer format.

3

Build WinPE Media

Run the build command:

Build-OSDeployBoot

OSDeploy copies the shared main folder into WinpeStartup\core\main in the mounted image. Boot the resulting media to run the customizations.

Last updated

Was this helpful?