Get-VMHost

Gets a Hyper-V host.

Syntax

Get-VMHost
   [[-ComputerName] <String[]>]
   [<CommonParameters>]

Description

The Get-VMHost cmdlet gets a Hyper-V host.

Examples

Example 1

PS C:\>Get-VMHost

Gets the local Hyper-V host.

Parameters

-ComputerName

Specifies one or more Hyper-V hosts to be retrieved. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer - use "localhost" or a dot (".") to specify the local computer explicitly.

Type:String[]
Position:0
Default value:.
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Outputs

Microsoft.HyperV.PowerShell.Host