VMware vSphere Update Manager PowerCLI



Scans inventory objects for baselines attached to them.


Scan-Inventory [-Server <VIServer[]>] [-Entity] <InventoryItem[]> [[-UpdateType] <UpdateType[]>] [-RunAsync] [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands


Detailed Description

Scans inventory objects for baselines attached to them. The following object types are supported - Template, VirtualMachine, VMHost, Cluster, Datacenter, and Folder. If the inventory objects are of different types, the cmdlet starts a separate task for each object.


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 Template, VirtualMachine, VMHost, Cluster, Datacenter, Folder, and VApp objects you want to scan for baselines attached to them.truetrue (ByValue)
UpdateTypeSpecify the type of the patches and upgrades you want to scan. The valid values are HostPatch, HostUpgrade, HostDVSUpgrade, VmHardwareUpgrade, VmPatch, VmToolsUpgrade, and VaUpgrade. The VmPatch value is deprecated and will be removed in a following release.falsefalse
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[] or null



-------------- EXAMPLE 1 --------------

Scan-Inventory -Entity VM -RunAsync

Scans the VM virtual machine. Since the -RunAsync parameter is set, the cmdlet runs asynchronously and a Task object is returned.

-------------- EXAMPLE 2 --------------

Get-Inventory -Name VM | Scan-Inventory

Scans the VM virtual machine for baselines attached to it.

-------------- Example 3 --------------

Get-Inventory -Name MyHost | Scan-Inventory -UpdateType HostPatch

Scans virtual machine host for patches running asynchronously.

-------------- Example 4 --------------

Get-Inventory -Name MyVM | Scan-Inventory -UpdateType VmHardwareUpgrade, VmToolsUpgrade

Scan the MyVM virtual machine for upgrades.

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