Get-VMHost
Gets a Hyper-V host.
Syntax
Get-VMHost
[[-ComputerName] <String[]>]
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: | 1 |
Default value: | . |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Outputs
Microsoft.Virtualization.Powershell.Host
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for