LogoLogo
OSDeploy.comTwitterPowerShell GalleryGitHub
  • Overview
  • OSDeploy Home
  • Module
    • Release Information
      • 2019-01
      • 2018-12
      • 2018-11
      • 2018-10
      • 2018-09
      • 2018-08
      • 2018-07
    • Functions
      • Main
        • Get-OSBuilder
          • Set Path
      • Maintenance
        • Repair-OSBuildTask
      • OSBMedia
        • New-OSBMediaISO
        • New-OSBMediaUSB
        • Show-OSBMediaINFO
      • OSBUpdate
        • Get-OSBUpdate
        • New-OSBUpdate
      • OSMedia
        • Get-OSMedia
        • Import-OSMedia
          • Batch Import-OSMedia
        • Update-OSMedia
          • Execute
      • OSBuild
        • New-OSBuildTask
          • Remove Appx Provisioned Package
          • Remove Windows Package
          • Remove Windows Capability
          • Disable Windows Optional Feature
          • Enable Windows Optional Feature
        • New-OSBuildTask (External Content)
          • Features On Demand
          • Language Packs
          • IsoExtract Content
          • Language Interface Packs
          • Language Features On Demand
          • Local Experience Packs
          • PowerShell Scripts
            • Update-OneDriveSetup
        • New-OSBuildTask (WinPE)
          • WinPE DaRT
          • WinPE Drivers
          • WinPE PowerShell Scripts
          • WinPE Extra Files
          • WinPE ADK Packages
        • New-OSBuild
      • PEBuild
        • New-PEBuildTask
          • Recovery
          • WinPE
          • MDT
        • New-PEBuild
    • PowerShell Gallery
    • GitHub
  • Docs
    • Reviews
    • Fan Requests
    • Quick Start
    • Tips
      • Task Naming
      • Verbose Logging
      • OSMedia Archive
      • OSMedia Updating
      • OSMedia Failed UBR Change
      • Windows Setup Wallpaper
    • Articles
      • Latest Latest Cumulative Update (Latest LCU)
      • Update Catalogs
      • Windows Setup with DaRT Remote Connection
      • Offline Servicing
      • Servicing Stacks
      • Work with Languages
      • DISM Cleanup Image Pending Operations
      • Win10 1607 Appx Issues
      • Updating an Updated WIM
      • OSBuilder OS Information
      • What Should I Update?
      • Windows 10 Setup and the ei.cfg
      • Automating Windows Update Downloads
      • Solutions
    • Recycle Bin
      • Instructions
        • Detailed
          • pebuild
            • scripts
              • Set-TimeZone
            • WinPE Types
              • Recovery
              • Recovery DaRT
              • Windows PE
              • MDT
            • Auto ExtraFiles
            • Drivers
              • RegAdd ActivePowerScheme
              • RegAdd AeroLite Theme
              • RegAdd Browse
              • RegAdd PowerShell ExecutionPolicy
            • ExtraFiles
              • Wallpaper
          • Update
      • OSBuilder New-OSBTemplate
      • OSBuild Templates
    • Guides
      • OSBuild Arcade
        • Frogger
      • OSBuild Templates
      • OSBuild Registry
      • Windows 7 SP1
        • Import OSMedia
        • Download Updates
        • NVMe Hotfix
        • Update OSMedia
        • ISO Testing
      • Windows 10 1809 RSAT Capability
      • registry
        • OSBuild Registry REG
          • Certificates
        • OSBuild Registry XML
    • The Basics
      • Requirements
      • Installation
      • Support
      • Get Started
      • Update OSBuilder
      • Import an OS
      • OS Information
      • Update an OS
      • Update an OS (Process)
      • Create External Media
        • Create an ISO
        • Create a USB
      • Create an OSBuild
Powered by GitBook
On this page
  • New-PEBuildTask
  • SourceWim
  • MDT Integration
  • Task JSON
  • Demo

Was this helpful?

  1. Docs
  2. Recycle Bin
  3. Instructions
  4. Detailed
  5. pebuild
  6. WinPE Types

Windows PE

WinPE Boot Images can be used within MDT or as a Configuration Manager Boot Image. The benefit of creating this content in OSBuilder is that you can fully control the integrated Cumulative and Dynamic Updates, adding ADK Packages, and injecting Drivers that are needed. You no longer have to add these Boot Image Drivers to MDT or CM as they are already done.

New-PEBuildTask

You need to start by creating a PEBuild Task. WinRE.wim will be automatically used for this Task. To create WinPE Media, use either of the following PowerShell command:

New-PEBuildTask -SourceWim WinPE -TaskName "Win10 x64 1809" -AutoExtraFiles -ScratchSpace 256New-PEBuildTask -SourceWim WinRE -TaskName "Win10 x64 1809" -AutoExtraFiles -ScratchSpace 256

If you have added MS DaRT to OSBuilder, you will be prompted to add it. When complete, a Task JSON file will be created which can be used with New-PEBuild

The WinPE Prefix will be added automatically to the Task Name, so unless you want 'WinPE WinPE Win10 x64 1809' as your Task Name, just leave it out.

SourceWim

The SourceWim Parameter is the difference between creating Recovery Media and WinPE. Since WinRE is already assumed when creating Recovery Media, specifying it with SourceWim changes the output from Recovery Media to WinPE. Technically the only difference between the two is that winpeshl.ini is not present in WinPE, so Startnet.cmd is used. Winpeshl.ini in Recovery launches the Recovery Environment.

MDT Integration

You can use the generated Boot.wim in MDT by replacing the winpe.wim found in the following locations

C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\en-usC:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\en-us

But I would generally be against this method, and just use OSBuilder to generate the MDT Boot Image instead

Task JSON

{    "TaskName":  "WinPE Win10 x64 1809",    "TaskVersion":  "18.10.15.0",    "TaskType":  "PEBuild",    "AutoExtraFiles":  "True",    "DeploymentShare":  "",    "MediaName":  "Win10 Ent x64 1809 17763.1",    "PEOutput":  "WinPE",    "ScratchSpace":  "256",    "SourceWim":  "WinPE",    "WinPEAddADK":  null,    "WinPEAddDaRT":  "",    "WinPEAddWindowsDriver":  null,    "WinPEInvokeScript":  null,    "WinPERobocopyExtraFiles":  null}

Demo

​

PreviousRecovery DaRTNextMDT

Last updated 5 years ago

Was this helpful?