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: Import a WinPE Root Certificate with a .cer File

Import a WinPE root certificate from a .cer file in the shared WinpeStartup Core main folder.

Place a .cer root certificate in the shared WinpeStartup Core main folder to import it when WinPE starts.

Import the Certificate

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

Copy the .cer File

Copy your verified root certificate into the folder. Replace the source path with the location of your certificate:

Copy-Item -LiteralPath 'C:\Certificates\ContosoRoot.cer' -Destination $MainDirectory
3

Build WinPE Media

Run the build command. OSDeploy includes the shared main folder automatically when it is present:

Build-OSDeployBoot

Boot the resulting media to import the certificate into WinPE's local-machine trusted root certificate store.

Last updated

Was this helpful?