Syntax
Get-VIObjectByVIView [-VIView] <ViewBase[]> [<CommonParameters>]Related Commands
Online versionDetailed Description
Converts a vSphere .Net View object to a PowerShell VIObject using the object ID provided by the MoRef parameter.Parameters
Return Type
VIObjectNotes
Examples
-------------- Example 1 --------------
$view = Get-VM VM | Stop-VM | Get-View $vm = Get-VIObjectByVIView $view | Start-VM
Gets the VM virtual machine, stops it, and gets its view object. Then, the command gets the virtual machine object using the Get-VIObjectByVIView cmdlet and starts the VM virtual machine.