Sync-Patch Command | Vmware PowerCLI Reference


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


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


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
  • 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.



Example 1


Downloads all new patches from the preconfigured metadata download URL address (

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


This cmdlet initializes staging of patches.

This cmdlet retrieves the available patches.

This cmdlet downloads new patches into the Update Manager repository.


This cmdlet retrieves patch baselines.

This cmdlet creates a new patch baseline.

This cmdlet modifies the properties of a patch baseline.