Sync-Patch Command | Vmware PowerCLI Reference

Sync-Patch

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

Syntax

Sync-Patch
[-ProgressAction < ActionPreference > ]
[-RunAsync ]
[-Server < VIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional ProgressAction ActionPreference named
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.

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

Patch

This cmdlet initializes staging of patches.

This cmdlet retrieves the available patches.

This cmdlet downloads new patches into the Update Manager repository.

PatchBaseline

This cmdlet retrieves patch baselines.

This cmdlet creates a new patch baseline.

This cmdlet modifies the properties of a patch baseline.