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.

Optional 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:.
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False

Outputs

Microsoft.HyperV.PowerShell.Host