< Back

Update-OSMedia

Sat Jan 18, 2020 6:13 pm

NAME Update-OSMedia



SYNOPSIS

Applies Adobe, Component, Cumulative, Servicing Stack, and Setup Updates to Windows 10, Windows Server 2016, and

Windows Server 2019 using Offline Servicing





SYNTAX

Update-OSMedia [[-Name] <String[]>] [-CreateISO] [-Download] [-Execute] [-HideCleanupProgress] [-PauseDismountOS]

[-PauseDismountPE] [-SelectUpdates] [-ShowHiddenOSMedia] [-SkipUpdates] [-SkipComponentCleanup]

[<CommonParameters>]





DESCRIPTION

Updates are gathered from the OSDBuilder Update Catalogs





PARAMETERS

-Name <String[]>

The name of the OSMedia to Update



Required? false

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-CreateISO [<SwitchParameter>]

Creates an ISO of the Updated Media

oscdimg.exe from Windows ADK is required



Required? false

Position? named

Default value $global:SetOSDBuilder.UpdateOSMediaCreateISO

Accept pipeline input? false

Accept wildcard characters? false



-Download [<SwitchParameter>]

Automatically download the required updates if they are not present in the Content\\OSDUpdate directory



Required? false

Position? named

Default value $global:SetOSDBuilder.UpdateOSMediaDownload

Accept pipeline input? false

Accept wildcard characters? false



-Execute [<SwitchParameter>]

Executes Update-OSMedia

Without this parameter, Update-OSMedia is in Sandbox Mode where changes will not be made



Required? false

Position? named

Default value $global:SetOSDBuilder.UpdateOSMediaExecute

Accept pipeline input? false

Accept wildcard characters? false



-HideCleanupProgress [<SwitchParameter>]

Hides the Dism Cleanup-Image Progress



Required? false

Position? named

Default value $global:SetOSDBuilder.UpdateOSMediaHideCleanupProgress

Accept pipeline input? false

Accept wildcard characters? false



-PauseDismountOS [<SwitchParameter>]

Pauses the function the Install.wim is dismounted

Useful for Testing



Required? false

Position? named

Default value $global:SetOSDBuilder.UpdateOSMediaPauseDismountOS

Accept pipeline input? false

Accept wildcard characters? false



-PauseDismountPE [<SwitchParameter>]

Pauses the function before WinPE is dismounted

Useful for Testing



Required? false

Position? named

Default value $global:SetOSDBuilder.UpdateOSMediaPauseDismountPE

Accept pipeline input? false

Accept wildcard characters? false



-SelectUpdates [<SwitchParameter>]

Allows you to select Updates to apply in GridView

Useful for Testing



Required? false

Position? named

Default value $global:SetOSDBuilder.UpdateOSMediaSelectUpdates

Accept pipeline input? false

Accept wildcard characters? false



-ShowHiddenOSMedia [<SwitchParameter>]

By default only the OSMedia that needs to be updated is displayed

This parameter includes the hidden OSMedia



Required? false

Position? named

Default value $global:SetOSDBuilder.UpdateOSMediaShowHiddenOSMedia

Accept pipeline input? false

Accept wildcard characters? false



-SkipUpdates [<SwitchParameter>]

Allows you to skip all Updates from being applied

Useful for Testing



Required? false

Position? named

Default value $global:SetOSDBuilder.UpdateOSMediaSkipUpdates

Accept pipeline input? false

Accept wildcard characters? false



-SkipComponentCleanup [<SwitchParameter>]

Skips DISM /Cleanup-Image /StartComponentCleanup /ResetBase

Images created for Citrix PVS require this parameter

Useful for testing to reduce the time

[switch]$OSDInfo



Required? false

Position? named

Default value $global:SetOSDBuilder.UpdateOSMediaSkipComponentCleanup

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





19.10.14 Added HideCleanupProgress

19.10.13 Added SelectUpdates SkipUpdates



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Update-OSMedia -Name 'Win10 Ent x64 1803 17134.345'













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Update-OSMedia -Name 'Win10 Ent x64 1803 17134.345' -Download













-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Update-OSMedia -Name 'Win10 Ent x64 1803 17134.345' -Download -Execute













-------------------------- EXAMPLE 4 --------------------------



PS C:\\>Update-OSMedia -Name 'Win10 Ent x64 1803 17134.345' -Download -Execute -ISO















RELATED LINKS

https://osdbuilder.osdeploy.com/module/ ... te-osmedia