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
  • Missing Updates
  • Execution
  • WinPE Phase: Servicing Update
  • WinPE Phase: Cumulative Update
  • WinPE Phase: Setup Sync
  • WinPE Phase: Completing Update
  • Install.wim Phase: Mount
  • Install.wim Phase: Updates
  • Install.wim Phase: Image Cleanup
  • Install.wim Phase: Dismount and Save
  • Complete

Was this helpful?

  1. Module
  2. Functions
  3. OSMedia
  4. Update-OSMedia

Execute

PreviousUpdate-OSMediaNextOSBuild

Last updated 5 years ago

Was this helpful?

When you are ready to update the imported OSMedia, use the Execute parameter

Missing Updates

If you do not have the required updates downloaded, then Execution will be disabled. In this case either download the required Updates using Get-OSBuilderUpdates or Update-OSMedia with the Download parameter

Execution

If the updates aren't a problem, then you are clear to use the Execute parameter. In the example below, the Download parameter was used to ensure that missing Updates were automatically downloaded

The PowerShell Transcript will be started and the Operating System to be updated will be copied to a Working Directory.

After the copy is complete, the WinPE Wims will be mounted

WinPE Phase: Servicing Update

The Servicing Stack Update will be applied to the mounted WinPE Wims

WinPE Phase: Cumulative Update

The Cumulative Update will be applied and DISM Image Cleanup will be performed on the WinPE Wims

WinPE Phase: Setup Sync

Setup.exe and SetupHost.exe from the Setup.wim will be synchronized with the Media. If this step is not completed, then you may receive errors when booting from the updated OSMedia to install the Operating System.

WinPE Phase: Completing Update

Once the updates to WinPE are complete, a Package inventory is created from the mounted WinPE Wims. The Wims are Dismounted, Exported (to compress), and the Boot.wim is rebuilt.

Install.wim Phase: Mount

The Install.wim will be mounted, and the updated WinRE.wim will be injected

Install.wim Phase: Updates

In this phase, any needed Servicing Stacks, Component Update, Cumulative Update, and Adobe Updates will be applied.

Install.wim Phase: Image Cleanup

This step will take an incredible amount of time. Take a break

Auto ExtraFiles will be copied from the mounted Install.wim

Install.wim Phase: Dismount and Save

The Install.wim will be dismounted and exported (to compress). Image information will be captured.

Complete

Information about the Install.wim will be displayed as well as a listing of the installed Packages. The Working Directory will be renamed to match the Windows Image information including the UBR.

This image can now be imported into ConfigMgr or MDT, or you can even customize this as an OSBuild.

​

​