Syntax
Get-View [-VIObject] <VIObject[]> [-Property <String[]>] [<CommonParameters>]Related Commands
Online versionDetailed Description
Returns the vSphere .Net view objects that correspond to the specified search criteria. The cmdlet retrieves the vSphere .NET view objects specified by their IDs or by their corresponding vSphere inventory objects (VIObject). A view object ID is a <type>-<value> string. For objects with constant names such as AlarmManager and ServiceInstance, the ID format is <type> (see the examples).Parameters
Return Type
VMware.Vim.ViewBase or VMware.Vim.EntityViewBaseNotes
Examples
-------------- Example 1 --------------
$vm = Get-View -ViewType VirtualMachine -Filter @{"Name" = "VM"}
$hostView = Get-View -ID $vm.Runtime.Host
$hostView.Summary.RuntimeGets the VM virtual machine using a filter by name, populates the view object and retrieves the runtime information.