Syntax
Scan-Inventory [-Server <VIServer[]>] [-Entity] <InventoryItem[]> [[-UpdateType] <UpdateType[]>] [-RunAsync] [-WhatIf] [-Confirm] [<CommonParameters>]Related Commands
Remediate-InventoryDetailed 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.Parameters
Return Type
VMware.VimAutomation.Types.Task[] or nullNotes
Examples
-------------- 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.