Gets the virtual machine hypervisor.
Syntax
Get-EmcVirtualMachineHypervisor [-VirtualMachineConfiguration] <VirtualMachineConfiguration> [-Silent] [<CommonParameters>]
Get-EmcVirtualMachineHypervisor [-VirtualMachine] <IHostSystem> [-Silent] [<CommonParameters>]
Parameters
-VirtualMachineConfiguration <VirtualMachineConfiguration>
Attributes: Required, Position: 1
Specifies the ESI virtual machine configuration object, which you can get from the ESI hypervisor host system object VirtualMachinesConfigurations parameter or by using the Get-EmcVirtualMachineConfiguration cmdlet. This cmdlet encapsulates the virtual machine configuration information such as status, MAC addresses, GUID, attached file-based disks, and pass-through disks.
-Silent <SwitchParameter>
Attributes: Optional, Position: named
Turns off all the informational and verbose messages. However, it still displays errors.
<CommonParameters>
This cmdlet supports these common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. Type get-help about_commonparameters for more details.
Examples
-------------- Example 1 --------------
C:\PS>Get-EmcVirtualMachineConfiguration
C:\PS>Get-EmcHostSystem | Update-EmcSystem -Silent
C:\PS>$vm = Get-EmcHostSystem *.148
C:\PS>$vm.model
Virtual Machine
C:\PS>$h = $vm | Get-EmcVirtualMachineHypervisor
C:\PS>$h.Model
Hyper-V, PowerEdge R710
C:\PS>
This example gets the hypervisor from the virtual machine.
------------- Example 2 --------------
C:\PS>Get-EmcVirtualMachineConfiguration
C:\PS>Get-EmcHostSystem | Update-EmcSystem -Silent
C:\PS>$vm = Get-EmcHostSystem *.148
C:\PS>$vm.model
Virtual Machine
C:\PS>$vmconfig = $vm | Get-EmcVirtualMachineConfiguration
C:\PS>$vmconfig.status
Running
C:\PS>$h = $vmconfig | Get-EmcVirtualMachineHypervisor
C:\PS>$h.Model
Hyper-V, PowerEdge R710
C:\PS>
This example gets the hypervisor from the virtual machine configuration and the status of the hypervisor.