VMware vSphere Update Manager PowerCLI

Download-Patch

Synopsis

Downloads new patches into the Update Manager repository.

Syntax

Download-Patch [-Server <VIServer[]>] [-RunAsync] [<CommonParameters>]

Related Commands

Get-Patch
Stage-Patch

Detailed Description

Downloads new patches into the Update Manager patch repository from the enabled patch download sources.

Parameters

NameDescriptionRequired?Pipeline InputDefault Value
ServerSpecify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers.falsetrue (ByValue)
RunAsyncIndicate that the command returns immediately without waiting for the task to complete. In this mode, the output of the cmdlet is a Task object. For more information about the -RunAsync parameter run "help About_RunAsync" in the vSphere PowerCLI console.falsefalse

Return Type

VMware.VumAutomation.Types.Patch[] or VMware.VimAutomation.Types.Task

Notes

Examples

-------------- Example 1 --------------

Download-Patch

Downloads all new patches from the preconfigured metadata download URL address (www.vmware.com).

-------------- Example 2 --------------

$task = Download-Patch -RunAsync

Initializes download of new patches and returns a Task object. To manage the Task object, use the vSphere PowerCLI cmdlets Get-Task, Wait-Task, and Stop-Task.


Copyright © 1998 - 2013 VMware, Inc. All rights reserved.