VMware vSphere Update Manager PowerCLI

Stage-Patch

Synopsis

Initializes staging of patches.

Syntax

Stage-Patch [-Server <VIServer[]>] [-Entity] <InventoryItem[]> [-Baseline <PatchBaseline[]>] [-ExcludePatch <Patch[]>] [-RunAsync] [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Get-Patch
Download-Patch

Detailed Description

Initializes staging of patches. Staging allows you to download patches from the Update Manager server to the ESX/ESXi hosts, without applying the patches immediately. This functionality is supported only for VMHost, Cluster, and Datacenter objects.

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.falsefalse
EntitySpecify VMHost, Cluster, and Datacenter objects for which you want to stage patches.truetrue (ByValue)
BaselineSpecify patch baselines you want to stage.falsetrue (ByValue)
ExcludePatchSpecify the patches you want to exclude from staging.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
WhatIfIndicate that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falsefalse
ConfirmIndicate that the cmdlet asks for confirmation before running.falsefalse

Return Type

VMware.VimAutomation.Types.Task

Notes

Examples

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

Stage-Patch -Entity Host

Stages all patches included in baselines attached to the entity named Host.


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