PowerCLI Reference

Sync-Patch

Synopsis

This cmdlet downloads new patches into the Update Manager repository.

Syntax

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

Related Commands

Online version
Copy-Patch
Get-Patch

Detailed Description

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

Parameters

NameDescriptionRequired?Pipeline InputDefault Value
ServerSpecifies 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)
RunAsyncIndicates 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 --------------

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.


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