Sync-Patch

This cmdlet downloads new patches into the Update Manager patch repository from the enabled patch download sources.

Syntax

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

Parameters

Required Parameter Name Type Position Features Description
optional
RunAsync
SwitchParameter named Indicates 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.
optional
Server
VIServer[] named
  • wildcards
  • pipeline
  • Specifies 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.

    Output

    Examples


    Example 1

    Sync-Patch

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

    Example 2

    $task = Sync-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.

    Related Commands

    Feedback

    Was this page helpful?