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
  • Parameters
  • Usage
  • Piping: GridView
  • Piping: Show-OSInfo
  • Where Method: Display only Latest CU
  • Internal Functions

Was this helpful?

  1. Module
  2. Functions
  3. OSMedia

Get-OSMedia

PreviousOSMediaNextImport-OSMedia

Last updated 5 years ago

Was this helpful?

Parameters

  • [switch] FullDetails

    • Displays Update Information (Servicing, Cumulative, Adobe)

  • [switch] GridView

    • Displays results in GridView

Usage

Get-OSMedia will return all as a PowerShell Custom Object

This will determine if the Updates are the Latest available. Cumulative Update information is obtained by parsing an exported Sessions.xml file (exported in OSBuilder 18.12.5 or newer)

Even more detail can be viewed when using the -Verbose parameter. This will display information about the Updates that are validated. This process can take up to a minute for multiple OSMedia

You can display the results in GridView using this parameter. This will allow you to select multiple OSMedia using PassThru

Piping: GridView

As an alternative, you can use the following commands to perform a GridView

Get-OSMedia | Out-GridViewGet-OSMedia -FullDetails | Out-GridView -PassThru

Piping: Show-OSInfo

Get-OSMedia -FullDetails | Out-GridView -PassThru | Show-MediaInfoGet-OSMedia -FullDetails | Where-Object {$_.Cumulative -eq 'Latest'} | Show-MediaInfo(Get-OSMedia -FullDetails).Where({$_.Cumulative -eq 'Latest'}) | Show-MediaInfo
Get-OSMedia | Update-OSMedia -DownloadUpdates

Where Method: Display only Latest CU

You can use the Where Method to display the OSMedia with the Latest Cumulative Update

(Get-OSMedia -FullDetails).Where({$_.Cumulative -eq 'Latest'})

Internal Functions

Get-OSMedia will allow more detailed information in the selection of OSMedia to Update

​

You can also pipe OSMedia to some other OSBuilder functions like using any of the following commands

You can even use Get-OSMedia to download updates for all your existing ​

Get-OSMedia will be used internally in other OSBuilder functions. For example, used to use a simple selection based on Directories contained in OSMedia

Show-MediaInfo
OSMedia
Update-OSMedia
OSMedia