< Back

Save-LatestUpdate

Sat Jan 18, 2020 9:41 am

NAME Save-LatestUpdate



SYNOPSIS

Downloads the updates passed from other LatestUpdate Get functions.





SYNTAX

Save-LatestUpdate [-Updates] <PSObject> [[-Path] <String>] [-ForceWebRequest] [-Method <String>] [-Priority

<String>] [-Proxy <String>] [-ProxyCredential <PSCredential>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Downloads the updates passed from other LatestUpdate Get functions to a local folder.



Use functions such as Get-LatestCumulativeUpdate and Get-LatestMonthlyRollup to retrieve the list of updates to

then pass to Save-LatestUpdate to download each update locally.



Do one or more of the following with the downloaded updates:

- Import the update into an MDT share to speed deployment of Windows (new PCs, reference images etc.)

- Apply the update to an offline WIM using DISM

- Deploy the update with ConfigMgr (if not using WSUS)





PARAMETERS

-Updates <PSObject>

Specifies the list of updates from other LatestUpdate functions such as Get-LatestCumulativeUpdate and

Get-LatestMonthlyRollup.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Path <String>

Specifies a path as the destination for the downloaded updates. All updates passed in -Updates will be

downloaded to this path.



Required? false

Position? 2

Default value $PWD

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-ForceWebRequest [<SwitchParameter>]

Forces the use of Invoke-WebRequest instead of Start-BitsTransfer when running under Windows PowerShell.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Method <String>



Required? false

Position? named

Default value BitsTransfer

Accept pipeline input? false

Accept wildcard characters? false



-Priority <String>

Specifies the priority of a BITS transfer job. Defaults to Foreground. Foreground will enforced when proxy

credentials are passed to Save-LatestUpdate



Required? false

Position? named

Default value Foreground

Accept pipeline input? false

Accept wildcard characters? false



-Proxy <String>

Specifies a proxy server address to use when initiating a download.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ProxyCredential <PSCredential>

Specifies a [System.Management.Automation.PSCredential] object to use when the proxy server requires

authentication.



Required? false

Position? named

Default value [System.Management.Automation.PSCredential]::Empty

Accept pipeline input? false

Accept wildcard characters? false



-Force [<SwitchParameter>]

Specifies that existing downloaded updates will be re-downloaded and overwritten.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

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

System.Management.Automation.PSObject





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



PS C:\\>$Updates = Get-LatestCumulativeUpdate



PS C:\\> Save-LatestUpdate -Updates $Updates -Path C:\\Temp\\Updates



This commands reads the the Windows 10 update history feed and returns an object that lists the most recent

Windows 10 Cumulative Updates. Save-LatestUpdate will download each returned update to C:\\Temp\\Updates.









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



PS C:\\>Get-LatestServicingStackUpdate | Save-LatestUpdate



This commands reads the the Windows 10 update history feed and returns an object that lists the most recent

Windows 10 Servicing Stack Updates. The output is then passed to Save-LatestUpdate and each update is downloaded

to the current directory.











RELATED LINKS